49 |
#include "SIZE.h" |
#include "SIZE.h" |
50 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
51 |
#include "EESUPPORT.h" |
#include "EESUPPORT.h" |
|
INTEGER IFNBLNK |
|
|
EXTERNAL IFNBLNK |
|
|
INTEGER ILNBLNK |
|
|
EXTERNAL ILNBLNK |
|
52 |
|
|
53 |
C !INPUT/OUTPUT PARAMETERS: |
C !INPUT/OUTPUT PARAMETERS: |
54 |
C == Routine arguments == |
C == Routine arguments == |
60 |
CHARACTER*(*) sq |
CHARACTER*(*) sq |
61 |
INTEGER myThid |
INTEGER myThid |
62 |
|
|
63 |
|
C !FUNCTIONS: |
64 |
|
INTEGER IFNBLNK |
65 |
|
EXTERNAL IFNBLNK |
66 |
|
INTEGER ILNBLNK |
67 |
|
EXTERNAL ILNBLNK |
68 |
|
|
69 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
70 |
C == Local variables == |
C == Local variables == |
71 |
C iStart, iEnd :: String indexing variables |
C iStart, iEnd :: String indexing variables |
178 |
#include "SIZE.h" |
#include "SIZE.h" |
179 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
180 |
#include "EESUPPORT.h" |
#include "EESUPPORT.h" |
|
INTEGER IFNBLNK |
|
|
EXTERNAL IFNBLNK |
|
|
INTEGER ILNBLNK |
|
|
EXTERNAL ILNBLNK |
|
181 |
|
|
182 |
C !INPUT/OUTPUT PARAMETERS: |
C !INPUT/OUTPUT PARAMETERS: |
183 |
C == Routine arguments == |
C == Routine arguments == |
186 |
CHARACTER*(*) message |
CHARACTER*(*) message |
187 |
INTEGER myThid |
INTEGER myThid |
188 |
|
|
189 |
|
C !FUNCTIONS: |
190 |
|
c INTEGER IFNBLNK |
191 |
|
c EXTERNAL IFNBLNK |
192 |
|
INTEGER ILNBLNK |
193 |
|
EXTERNAL ILNBLNK |
194 |
|
|
195 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
196 |
C == Local variables == |
C == Local variables == |
197 |
C iStart, iEnd :: Temps. for string indexing |
C iStart, iEnd :: Temps. for string indexing |
198 |
C idString :: Temp. for building message prefix |
C idString :: Temp. for building message prefix |
199 |
INTEGER iStart |
c INTEGER iStart |
200 |
INTEGER iEnd |
INTEGER iEnd |
201 |
CHARACTER*9 idString |
CHARACTER*9 idString |
202 |
CEOP |
CEOP |
203 |
|
|
204 |
C-- Find beginning and end of message |
C-- Find beginning and end of message |
205 |
iStart = IFNBLNK( message ) |
c iStart = IFNBLNK( message ) |
206 |
iEnd = ILNBLNK( message ) |
iEnd = ILNBLNK( message ) |
207 |
C-- Test to see if in multi-process ( or multi-threaded ) mode. |
C-- Test to see if in multi-process ( or multi-threaded ) mode. |
208 |
C If so include process or thread identifier. |
C If so include process or thread identifier. |
209 |
IF ( numberOfProcs .EQ. 0 .AND. nThreads .EQ. 1 ) THEN |
IF ( numberOfProcs .EQ. 0 .AND. nThreads .EQ. 1 ) THEN |
210 |
C-- Write single process format |
C-- Write single process format |
211 |
IF ( message .EQ. ' ' ) THEN |
IF ( iEnd.EQ.0 ) THEN |
212 |
WRITE(errorMessageUnit,'(A,1X,A)') ERROR_HEADER, ' ' |
WRITE(errorMessageUnit,'(A,1X,A)') ERROR_HEADER, ' ' |
213 |
ELSE |
ELSE |
214 |
WRITE(errorMessageUnit,'(A,1X,A)') ERROR_HEADER, |
WRITE(errorMessageUnit,'(A,1X,A)') ERROR_HEADER, |
215 |
& message(iStart:iEnd) |
& message(1:iEnd) |
216 |
|
c & message(iStart:iEnd) |
217 |
ENDIF |
ENDIF |
218 |
ELSE |
ELSE |
219 |
C PRINT_ERROR can be called by several threads simulataneously. |
C PRINT_ERROR can be called by several threads simulataneously. |
238 |
c WRITE(errorMessageUnit,'(A,A,1X,A,A,A,A,A)',ERR=999) |
c WRITE(errorMessageUnit,'(A,A,1X,A,A,A,A,A)',ERR=999) |
239 |
WRITE(errorMessageUnit,'(A,A,1X,A,A,A,A,A)') |
WRITE(errorMessageUnit,'(A,A,1X,A,A,A,A,A)') |
240 |
& '(',PROCESS_HEADER,idString,')',ERROR_HEADER,' ', |
& '(',PROCESS_HEADER,idString,')',ERROR_HEADER,' ', |
241 |
& message(iStart:iEnd) |
& message(1:iEnd) |
242 |
|
c & message(iStart:iEnd) |
243 |
ENDIF |
ENDIF |
244 |
ENDIF |
ENDIF |
245 |
|
|
712 |
C == Global variables == |
C == Global variables == |
713 |
#include "SIZE.h" |
#include "SIZE.h" |
714 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
|
INTEGER IFNBLNK |
|
|
EXTERNAL IFNBLNK |
|
|
INTEGER ILNBLNK |
|
|
EXTERNAL ILNBLNK |
|
715 |
|
|
716 |
C !INPUT/OUTPUT PARAMETERS: |
C !INPUT/OUTPUT PARAMETERS: |
717 |
C == Routine arguments == |
C == Routine arguments == |
742 |
INTEGER bxMin, bxMax, bxStr |
INTEGER bxMin, bxMax, bxStr |
743 |
INTEGER byMin, byMax, byStr |
INTEGER byMin, byMax, byStr |
744 |
|
|
745 |
|
C !FUNCTIONS: |
746 |
|
INTEGER IFNBLNK |
747 |
|
EXTERNAL IFNBLNK |
748 |
|
INTEGER ILNBLNK |
749 |
|
EXTERNAL ILNBLNK |
750 |
|
|
751 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
752 |
C == Local variables == |
C == Local variables == |
753 |
C plotBuf - Buffer for building plot record |
C plotBuf - Buffer for building plot record |
1145 |
C == Global variables == |
C == Global variables == |
1146 |
#include "SIZE.h" |
#include "SIZE.h" |
1147 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
|
INTEGER IFNBLNK |
|
|
EXTERNAL IFNBLNK |
|
|
INTEGER ILNBLNK |
|
|
EXTERNAL ILNBLNK |
|
1148 |
|
|
1149 |
C !INPUT/OUTPUT PARAMETERS: |
C !INPUT/OUTPUT PARAMETERS: |
1150 |
C == Routine arguments == |
C == Routine arguments == |
1175 |
INTEGER bxMin, bxMax, bxStr |
INTEGER bxMin, bxMax, bxStr |
1176 |
INTEGER byMin, byMax, byStr |
INTEGER byMin, byMax, byStr |
1177 |
|
|
1178 |
|
C !FUNCTIONS: |
1179 |
|
INTEGER IFNBLNK |
1180 |
|
EXTERNAL IFNBLNK |
1181 |
|
INTEGER ILNBLNK |
1182 |
|
EXTERNAL ILNBLNK |
1183 |
|
|
1184 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
1185 |
C == Local variables == |
C == Local variables == |
1186 |
C plotBuf - Buffer for building plot record |
C plotBuf - Buffer for building plot record |