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

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

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


Revision 1.8 - (hide 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 jmc 1.8 C $Header: /u/gcmpack/MITgcm/model/src/turnoff_model_io.F,v 1.7 2012/04/17 19:47:25 heimbach Exp $
2 jmc 1.1 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 jmc 1.2 C | forward sweep) to avoid writing output multiple times (if
19 jmc 1.1 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 jmc 1.2 c#ifdef ALLOW_MNC
30     c# include "MNC_PARAMS.h"
31     c#endif
32     #ifdef ALLOW_EXF
33     # include "EXF_PARAM.h"
34 jmc 1.1 #endif
35 jmc 1.5 #ifdef ALLOW_OBCS
36 jmc 1.6 # include "OBCS_PARAMS.h"
37 jmc 1.5 #endif
38 jmc 1.1
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 jmc 1.2 c CHARACTER*(MAX_LEN_MBUF) msgBuf
49 jmc 1.1 CEOP
50    
51     _BARRIER
52    
53 jmc 1.2 C-- only master-thread resets shared flags (in common block)
54 jmc 1.1 _BEGIN_MASTER( myThid )
55 jmc 1.2
56 jmc 1.1 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 jmc 1.5 diagFreq = 0.
61 jmc 1.1 taveFreq = 0.
62 jmc 1.2 chkPtFreq = 0.
63 jmc 1.1 pChkPtFreq = 0.
64 jmc 1.2 dumpInitAndLast = .FALSE.
65     writePickupAtEnd= .FALSE.
66 jmc 1.8 plotLevel = 0
67 jmc 1.1
68     #ifdef ALLOW_MNC
69 jmc 1.2 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 jmc 1.1 #endif
76    
77 jmc 1.2 #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 jmc 1.1
82 jmc 1.5 #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 jmc 1.1 C-- Disable SBO output
88     useSBO = .FALSE.
89    
90 heimbach 1.7 C-- Disable layers package
91     useLayers = .FALSE.
92    
93 jmc 1.1 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 jmc 1.2 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 jmc 1.3 #ifdef ALLOW_THSICE
108     IF ( useThSIce ) THEN
109     CALL THSICE_TURNOFF_IO( seqFlag, myThid )
110     ENDIF
111     #endif
112    
113 jmc 1.2 #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 jmc 1.1 _BARRIER
121    
122     RETURN
123     END

  ViewVC Help
Powered by ViewVC 1.1.22