/[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.8 - (show annotations) (download)
Tue Apr 4 23:21:46 2017 UTC (7 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, HEAD
Changes since 1.7: +2 -2 lines
- add specific run-time param to select level of printed plot-field-maps,
  set by default to debugLevel. Remove internal param "printDomain".

1 C $Header: /u/gcmpack/MITgcm/model/src/turnoff_model_io.F,v 1.7 2012/04/17 19:47:25 heimbach 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 plotLevel = 0
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-- Disable layers package
91 useLayers = .FALSE.
92
93 C-- For now, also disable diagnostics output (might need to change
94 C this if we want to use diagnostics to output adjoint-variables)
95 useDiagnostics = .FALSE.
96
97 _END_MASTER( myThid )
98
99 C-- Package specific S/R to turn-off IO flags (all threads do call S/R)
100
101 #ifdef ALLOW_SEAICE
102 IF ( useSEAICE ) THEN
103 CALL SEAICE_TURNOFF_IO( seqFlag, myThid )
104 ENDIF
105 #endif
106
107 #ifdef ALLOW_THSICE
108 IF ( useThSIce ) THEN
109 CALL THSICE_TURNOFF_IO( seqFlag, myThid )
110 ENDIF
111 #endif
112
113 #ifdef ALLOW_PTRACERS
114 IF ( usePTRACERS ) THEN
115 CALL PTRACERS_TURNOFF_IO( seqFlag, myThid )
116 ENDIF
117 #endif
118
119 C-- each thread waits for flags to be reset.
120 _BARRIER
121
122 RETURN
123 END

  ViewVC Help
Powered by ViewVC 1.1.22