14 |
C | an "execution environment" input parameter file holding | |
C | an "execution environment" input parameter file holding | |
15 |
C | information about the number of threads at run-time. | |
C | information about the number of threads at run-time. | |
16 |
C \==========================================================/ |
C \==========================================================/ |
17 |
|
IMPLICIT NONE |
18 |
|
|
19 |
C === Global variables === |
C === Global variables === |
20 |
#include "SIZE.h" |
#include "SIZE.h" |
44 |
C and computation. |
C and computation. |
45 |
usingSyncMessages = .TRUE. |
usingSyncMessages = .TRUE. |
46 |
|
|
47 |
|
C-- Text map plots of fields ignore exact zero values |
48 |
|
printMapIncludesZeros = .FALSE. |
49 |
|
|
50 |
C-- The remaining parameters here are set to default values. |
C-- The remaining parameters here are set to default values. |
51 |
C-- and then any different values are read from an input |
C-- and then any different values are read from an input |
52 |
C-- file called "eedata". |
C-- file called "eedata". |
75 |
notUsingXPeriodicity = .FALSE. |
notUsingXPeriodicity = .FALSE. |
76 |
notUsingYPeriodicity = .FALSE. |
notUsingYPeriodicity = .FALSE. |
77 |
usingMPI = .FALSE. |
usingMPI = .FALSE. |
78 |
nTx = 2 |
nTx = 1 |
79 |
nTy = 2 |
nTy = 1 |
80 |
|
|
81 |
C-- Read in data from eedata file |
C-- Read in data from eedata file |
82 |
C We really ought to be using our environment file reading |
C We really ought to be using our environment file reading |
83 |
C package - but we haven't written it yet. |
C package - but we have not written it yet. |
84 |
|
|
85 |
C Make scratch copies of input data file with and without comments |
C Make scratch copies of input data file with and without comments |
86 |
OPEN(UNIT=scrUnit1,STATUS='SCRATCH') |
OPEN(UNIT=scrUnit1,STATUS='SCRATCH') |
87 |
OPEN(UNIT=scrUnit2,STATUS='SCRATCH') |
OPEN(UNIT=scrUnit2,STATUS='SCRATCH') |
88 |
OPEN(UNIT=eeDataUnit,FILE='eedata',STATUS='OLD',err=1,IOSTAT=errIO) |
OPEN(UNIT=eeDataUnit,FILE='eedata',STATUS='OLD', |
89 |
|
& err=1,IOSTAT=errIO) |
90 |
IF ( errIO .GE. 0 ) GOTO 2 |
IF ( errIO .GE. 0 ) GOTO 2 |
91 |
1 CONTINUE |
1 CONTINUE |
92 |
WRITE(msgBuf,'(A)') |
WRITE(msgBuf,'(A)') |
111 |
1001 CONTINUE |
1001 CONTINUE |
112 |
CLOSE(eeDataUnit) |
CLOSE(eeDataUnit) |
113 |
C-- Report contents of parameter file |
C-- Report contents of parameter file |
114 |
WRITE(msgBuf,'(A)') '// =======================================================' |
WRITE(msgBuf,'(A)') |
115 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1) |
& '// =======================================================' |
116 |
WRITE(msgBuf,'(A)') '// Execution Environment parameter file "eedata"' |
CALL PRINT_MESSAGE(msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1) |
117 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1) |
WRITE(msgBuf,'(A)') |
118 |
WRITE(msgBuf,'(A)') '// =======================================================' |
& '// Execution Environment parameter file "eedata"' |
119 |
|
CALL PRINT_MESSAGE(msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1) |
120 |
|
WRITE(msgBuf,'(A)') |
121 |
|
& '// =======================================================' |
122 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
123 |
& SQUEEZE_RIGHT , 1) |
& SQUEEZE_RIGHT , 1) |
124 |
|
|
128 |
READ(UNIT=iUnit,FMT='(A)',END=2001) RECORD |
READ(UNIT=iUnit,FMT='(A)',END=2001) RECORD |
129 |
IL = MAX(ILNBLNK(RECORD),1) |
IL = MAX(ILNBLNK(RECORD),1) |
130 |
WRITE(msgBuf,'(A,A)') '>',RECORD(:IL) |
WRITE(msgBuf,'(A,A)') '>',RECORD(:IL) |
131 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, SQUEEZE_RIGHT , 1) |
CALL PRINT_MESSAGE(msgBuf,standardMessageUnit, SQUEEZE_RIGHT , 1) |
132 |
GOTO 2000 |
GOTO 2000 |
133 |
2001 CONTINUE |
2001 CONTINUE |
134 |
CLOSE(iUnit) |
CLOSE(iUnit) |