/[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.7 - (show annotations) (download)
Tue Apr 17 19:47:25 2012 UTC (12 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint64, checkpoint65, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e
Changes since 1.6: +4 -1 lines
Turn off one more pkg at the end of cost_final.F

1 C $Header: /u/gcmpack/MITgcm/model/src/turnoff_model_io.F,v 1.6 2011/05/24 20:25:33 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-- 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