/[MITgcm]/MITgcm/model/src/turnoff_model_io.F
ViewVC logotype

Contents of /MITgcm/model/src/turnoff_model_io.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Tue May 24 20:25:33 2011 UTC (12 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63l, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint63, checkpoint62z, checkpoint62y
Changes since 1.5: +2 -2 lines
split "OBCS.h" into 4 separated header files (OBCS_PARAMS,GRID,FIELDS,SEAICE)

1 C $Header: /u/gcmpack/MITgcm/model/src/turnoff_model_io.F,v 1.5 2011/05/17 22:14:43 jmc Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: TURNOFF_MODEL_IO
9 C !INTERFACE:
10 SUBROUTINE TURNOFF_MODEL_IO( seqFlag, myThid )
11
12 C !DESCRIPTION: \bv
13 C *==========================================================*
14 C | SUBROUTINE TURNOFF_MODEL_IO
15 C | o Turn off some of the model output flags
16 C *==========================================================*
17 C | Used in adjoint simulation (and called after the first
18 C | forward sweep) to avoid writing output multiple times (if
19 C | recomputations and/or grdchk) with the same iter number.
20 C *==========================================================*
21 C \ev
22
23 C !USES:
24 IMPLICIT NONE
25 C === Global variables ===
26 #include "SIZE.h"
27 #include "EEPARAMS.h"
28 #include "PARAMS.h"
29 c#ifdef ALLOW_MNC
30 c# include "MNC_PARAMS.h"
31 c#endif
32 #ifdef ALLOW_EXF
33 # include "EXF_PARAM.h"
34 #endif
35 #ifdef ALLOW_OBCS
36 # include "OBCS_PARAMS.h"
37 #endif
38
39 C !INPUT/OUTPUT PARAMETERS:
40 C seqFlag :: flag that indicates where this S/R is called from:
41 C :: =0 called at the end of S/R COST_FINAL
42 C :: =1 called at initialisation when using DIVA
43 C myThid :: My Thread Id number
44 INTEGER seqFlag
45 INTEGER myThid
46
47 C !LOCAL VARIABLES:
48 c CHARACTER*(MAX_LEN_MBUF) msgBuf
49 CEOP
50
51 _BARRIER
52
53 C-- only master-thread resets shared flags (in common block)
54 _BEGIN_MASTER( myThid )
55
56 C-- Set output freq. to zero to avoid re-write of
57 C averaged fields in reverse checkpointing loops
58 monitorFreq = 0.
59 dumpFreq = 0.
60 diagFreq = 0.
61 taveFreq = 0.
62 chkPtFreq = 0.
63 pChkPtFreq = 0.
64 dumpInitAndLast = .FALSE.
65 writePickupAtEnd= .FALSE.
66 printDomain = .FALSE.
67
68 #ifdef ALLOW_MNC
69 C-- Not the best solution to fix some MNC output, since it is likely
70 C that the same problem exists when we do not use MNC. A better fix
71 C is to switch off the specific output freq; leave this commented out.
72 c monitor_mnc = .FALSE.
73 c snapshot_mnc = .FALSE.
74 c timeave_mnc = .FALSE.
75 #endif
76
77 #ifdef ALLOW_EXF
78 C- should call a S/R EXF_TURNOFF_IO (like SEAICE) to reset this flag
79 IF ( useEXF ) exf_monFreq = 0.
80 #endif
81
82 #ifdef ALLOW_OBCS
83 C- should call a S/R OBCS_TURNOFF_IO (like SEAICE) to reset this flag
84 IF ( useOBCS ) OBCS_monitorFreq = 0.
85 #endif
86
87 C-- Disable SBO output
88 useSBO = .FALSE.
89
90 C-- For now, also disable diagnostics output (might need to change
91 C this if we want to use diagnostics to output adjoint-variables)
92 useDiagnostics = .FALSE.
93
94 _END_MASTER( myThid )
95
96 C-- Package specific S/R to turn-off IO flags (all threads do call S/R)
97
98 #ifdef ALLOW_SEAICE
99 IF ( useSEAICE ) THEN
100 CALL SEAICE_TURNOFF_IO( seqFlag, myThid )
101 ENDIF
102 #endif
103
104 #ifdef ALLOW_THSICE
105 IF ( useThSIce ) THEN
106 CALL THSICE_TURNOFF_IO( seqFlag, myThid )
107 ENDIF
108 #endif
109
110 #ifdef ALLOW_PTRACERS
111 IF ( usePTRACERS ) THEN
112 CALL PTRACERS_TURNOFF_IO( seqFlag, myThid )
113 ENDIF
114 #endif
115
116 C-- each thread waits for flags to be reset.
117 _BARRIER
118
119 RETURN
120 END

  ViewVC Help
Powered by ViewVC 1.1.22