38 |
|
|
39 |
|
|
40 |
CStartofinterface |
CStartofinterface |
41 |
SUBROUTINE WRITE_STATE ( forceOutput, myCurrentTime, |
SUBROUTINE WRITE_STATE ( myCurrentTime, myIter, myThid ) |
|
& myIter, myThid ) |
|
42 |
C /==========================================================\ |
C /==========================================================\ |
43 |
C | SUBROUTINE WRITE_STATE | |
C | SUBROUTINE WRITE_STATE | |
44 |
C | o Controlling routine for IO to dump model state. | |
C | o Controlling routine for IO to dump model state. | |
67 |
C myThid - Thread number for this instance of the routine. |
C myThid - Thread number for this instance of the routine. |
68 |
C myIter - Iteration number |
C myIter - Iteration number |
69 |
C myCurrentTime - Current time of simulation ( s ) |
C myCurrentTime - Current time of simulation ( s ) |
|
LOGICAL forceOutput |
|
70 |
_RL myCurrentTime |
_RL myCurrentTime |
71 |
INTEGER myThid |
INTEGER myThid |
72 |
INTEGER myIter |
INTEGER myIter |
77 |
INTEGER iRec |
INTEGER iRec |
78 |
|
|
79 |
IF ( |
IF ( |
80 |
& ( DIFFERENT_MULTIPLE(dumpFreq,myCurrentTime, |
& DIFFERENT_MULTIPLE(dumpFreq,myCurrentTime, |
81 |
& myCurrentTime-deltaTClock) .AND. myCurrentTime.NE.endTime ) |
& myCurrentTime-deltaTClock) .OR. |
82 |
& .OR. forceOutput |
& myCurrentTime.EQ.endTime .OR. |
83 |
|
& myCurrentTime.EQ.startTime |
84 |
& ) THEN |
& ) THEN |
85 |
iRec = int ( (myCurrentTime-startTime) / dumpFreq +1.5 ) |
iRec = int ( (myCurrentTime-startTime) / dumpFreq +1.5 ) |
86 |
|
|