C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/ptracers/ptracers_turnoff_io.F,v 1.1 2010/05/09 22:36:23 jmc Exp $ C $Name: checkpoint63a $ #include "PTRACERS_OPTIONS.h" CBOP C !ROUTINE: PTRACERS_TURNOFF_IO C !INTERFACE: SUBROUTINE PTRACERS_TURNOFF_IO( seqFlag, myThid ) C !DESCRIPTION: \bv C *==========================================================* C | SUBROUTINE PTRACERS_TURNOFF_IO C | o Turn off some of the ptracers output flags C *==========================================================* C | Used in adjoint simulation (and called after the first C | forward sweep) to avoid writing output multiple times (if C | recomputations and/or grdchk) with the same iter number. C *==========================================================* C \ev C !USES: IMPLICIT NONE C === Global variables === #include "SIZE.h" #include "EEPARAMS.h" c#include "PARAMS.h" #include "PTRACERS_SIZE.h" #include "PTRACERS_PARAMS.h" C !INPUT/OUTPUT PARAMETERS: C == Routine arguments == C seqFlag :: flag that indicates where this S/R is called from: C :: =0 called at the end of S/R COST_FINAL C :: =1 called at initialisation when using DIVA C myThid :: My Thread Id number INTEGER seqFlag INTEGER myThid C !LOCAL VARIABLES: C == Local variables == c CHARACTER*(MAX_LEN_MBUF) msgBuf CEOP C-- only master-thread resets shared flags (in common block) _BEGIN_MASTER( myThid ) C-- Set output freq. to zero to avoid re-write of C averaged fields in reverse checkpointing loops PTRACERS_monitorFreq = 0. PTRACERS_dumpFreq = 0. PTRACERS_taveFreq = 0. _END_MASTER( myThid ) RETURN END