Back to home page

MITgcm

 
 

    


File indexing completed on 2018-03-02 18:43:02 UTC

view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
55966bc737 Mart*0001 #include "PTRACERS_OPTIONS.h"
                0002 
                0003 CBOP
                0004 C     !ROUTINE: PTRACERS_OUTPUT
                0005 
                0006 C     !INTERFACE:
0a278985fd Jean*0007       SUBROUTINE PTRACERS_OUTPUT(
55966bc737 Mart*0008      I     myTime, myIter, myThid )
                0009 
                0010 C     !DESCRIPTION:
                0011 C     This is the controlling routine for PTRACERS output. It is
                0012 C     called from DO_THE_MODEL_IO.
                0013 
                0014 C     !USES:
                0015       IMPLICIT NONE
                0016 #include "SIZE.h"
                0017 #include "EEPARAMS.h"
                0018 #include "PARAMS.h"
                0019 #include "PTRACERS_SIZE.h"
0a278985fd Jean*0020 #include "PTRACERS_PARAMS.h"
55966bc737 Mart*0021 
                0022 C     !INPUT PARAMETERS:
                0023 C     myIter    :: time-step number
                0024 C     myTime    :: model time
                0025 C     myThid    :: thread number
                0026       INTEGER myIter
                0027       INTEGER myThid
                0028       _RL myTime
                0029 CEOP
                0030 
                0031 #ifdef ALLOW_PTRACERS
                0032 C     !LOCAL VARIABLES:
                0033 
                0034 C     Write snapshot output
0676f3988d Jean*0035       CALL PTRACERS_WRITE_STATE( myTime, myIter, myThid )
                0036 
55966bc737 Mart*0037 #ifdef ALLOW_TIMEAVE
                0038 C     Write time average output
fb9cc826c0 Mart*0039       IF ( PTRACERS_taveFreq.GT.0. .AND. myIter.NE.nIter0 ) THEN
55966bc737 Mart*0040        CALL PTRACERS_WRITE_TIMEAVE( myTime, myIter, myThid )
                0041       ENDIF
                0042 #endif /* ALLOW_TIMEAVE */
0676f3988d Jean*0043 
55966bc737 Mart*0044 #ifdef ALLOW_MONITOR
                0045 C     Compute and print monitor statistics
                0046       CALL PTRACERS_MONITOR( myIter, myTime, myThid )
                0047 #endif /* ALLOW_MONITOR */
5d1aafd341 Jean*0048 
55966bc737 Mart*0049 #endif /* ALLOW_PTRACERS */
                0050 
                0051       RETURN
                0052       END