1 |
C $Header: /u/gcmpack/MITgcm/pkg/cost/cost_final.F,v 1.21 2010/04/19 15:21:49 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 outputmultiple 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 |
#ifdef ALLOW_MNC |
30 |
# include "MNC_PARAMS.h" |
31 |
#endif |
32 |
c#ifdef ALLOW_EXF |
33 |
c# include "EXF_PARAM.h" |
34 |
c#endif |
35 |
c#ifdef ALLOW_SEAICE |
36 |
c# include "SEAICE_PARAMS.h" |
37 |
c#endif |
38 |
|
39 |
|
40 |
C !INPUT/OUTPUT PARAMETERS: |
41 |
C == Routine arguments == |
42 |
C seqFlag :: flag that indicates where this S/R is called from: |
43 |
C :: =0 called at the end of S/R COST_FINAL |
44 |
C :: =1 called at initialisation when using DIVA |
45 |
C myThid :: My Thread Id number |
46 |
INTEGER seqFlag |
47 |
INTEGER myThid |
48 |
|
49 |
C !LOCAL VARIABLES: |
50 |
C == Local variables == |
51 |
INTEGER bi,bj |
52 |
INTEGER i,j,k |
53 |
INTEGER ks |
54 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
55 |
CEOP |
56 |
|
57 |
_BARRIER |
58 |
|
59 |
_BEGIN_MASTER( myThid ) |
60 |
C-- Set output freq. to zero to avoid re-write of |
61 |
C averaged fields in reverse checkpointing loops |
62 |
monitorFreq = 0. |
63 |
dumpFreq = 0. |
64 |
taveFreq = 0. |
65 |
c chkPtFreq = 0. |
66 |
pChkPtFreq = 0. |
67 |
c dumpInitAndLast = .FALSE. |
68 |
|
69 |
#ifdef ALLOW_MNC |
70 |
monitor_mnc = .FALSE. |
71 |
snapshot_mnc = .FALSE. |
72 |
timeave_mnc = .FALSE. |
73 |
#endif |
74 |
|
75 |
c#ifdef ALLOW_EXF |
76 |
c exf_monFreq = 0. |
77 |
c#endif |
78 |
c#ifdef ALLOW_SEAICE |
79 |
c SEAICE_monFreq = 0. |
80 |
c SEAICE_dumpFreq = 0. |
81 |
c SEAICE_taveFreq = 0. |
82 |
c#endif |
83 |
|
84 |
C-- Disable SBO output |
85 |
useSBO = .FALSE. |
86 |
|
87 |
C-- For now, also disable diagnostics output (might need to change |
88 |
C this if we want to use diagnostics to output adjoint-variables) |
89 |
useDiagnostics = .FALSE. |
90 |
|
91 |
_END_MASTER( myThid ) |
92 |
|
93 |
_BARRIER |
94 |
|
95 |
RETURN |
96 |
END |