C $Header: /u/gcmpack/MITgcm/pkg/thsice/thsice_turnoff_io.F,v 1.1 2010/11/23 20:11:42 jmc Exp $ C $Name: $ #include "THSICE_OPTIONS.h" CBOP C !ROUTINE: THSICE_TURNOFF_IO C !INTERFACE: SUBROUTINE THSICE_TURNOFF_IO( seqFlag, myThid ) C !DESCRIPTION: \bv C *==========================================================* C | SUBROUTINE THSICE_TURNOFF_IO C | o Turn off some of the Therm_SeaIce 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 "THSICE_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 thSIce_monFreq = 0. thSIce_diagFreq = 0. thSIce_taveFreq = 0. _END_MASTER( myThid ) RETURN END