/[MITgcm]/MITgcm/pkg/offline/offline_reset_parms.F
ViewVC logotype

Contents of /MITgcm/pkg/offline/offline_reset_parms.F

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


Revision 1.4 - (show annotations) (download)
Sat Jul 18 21:49:08 2015 UTC (8 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65n, checkpoint65o, HEAD
Changes since 1.3: +1 -10 lines
no needs to switch on staggerTimeStep anymore

1 C $Header: /u/gcmpack/MITgcm/pkg/offline/offline_reset_parms.F,v 1.3 2013/07/11 22:58:25 jmc Exp $
2 C $Name: $
3
4 #include "OFFLINE_OPTIONS.h"
5
6 C !INTERFACE: ==========================================================
7 SUBROUTINE OFFLINE_RESET_PARMS( myThid )
8
9 C !DESCRIPTION:
10 C reset some of the main-code parameters for offline calculation
11
12 C !USES: ===============================================================
13 IMPLICIT NONE
14 #include "SIZE.h"
15 #include "EEPARAMS.h"
16 #include "PARAMS.h"
17 #include "OFFLINE.h"
18
19 C !INPUT PARAMETERS: ===================================================
20 C myThid :: my Thread Id. number
21 INTEGER myThid
22 CEOP
23
24 C !FUNCTIONS:
25 c INTEGER ILNBLNK
26 c EXTERNAL ILNBLNK
27
28 C !LOCAL VARIABLES:
29 C msgBuf :: Informational/error message buffer
30 CHARACTER*(MAX_LEN_MBUF) msgBuf
31
32 _BEGIN_MASTER(myThid)
33
34 C- For off-line calculation, switch off Momentum and Active-tracers (=T,S):
35 WRITE(msgBuf,'(A,A)') ' OFFLINE_RESET_PARMS: ',
36 & '=> turn off Temp,Salt & Mom_Stepping flags'
37 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
38 & SQUEEZE_RIGHT, myThid )
39 tempStepping = .FALSE.
40 saltStepping = .FALSE.
41 momStepping = .FALSE.
42
43 C- Switch off dynstat monitor (but keep one @ the end)
44 c IF ( monitorFreq.GT.0. ) THEN
45 c monitorFreq = endTime
46 c WRITE(msgBuf,'(A,A,1PE18.10)') ' OFFLINE_RESET_PARMS: ',
47 c & '=> reset monitorFreq to:', monitorFreq
48 c CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
49 c & SQUEEZE_RIGHT, myThid )
50 c ENDIF
51
52 IF ( Wvelfile .EQ. ' ' ) THEN
53 C-- Make sure we compute vertical velocity since it is not read from a file
54 IF ( .NOT.exactConserv ) THEN
55 WRITE(msgBuf,'(A,A)') '** WARNING ** OFFLINE_RESET_PARMS: ',
56 & '=> turn on exactConserv to compute wVel'
57 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
58 & SQUEEZE_RIGHT, myThid )
59 CALL PRINT_MESSAGE( msgBuf, errorMessageUnit,
60 & SQUEEZE_RIGHT, myThid )
61 exactConserv = .TRUE.
62 ENDIF
63 ELSE
64 C-- Vertical velocity is read from a file: make sure it is not re-computed
65 IF ( exactConserv ) THEN
66 WRITE(msgBuf,'(A,A)') '** WARNING ** OFFLINE_RESET_PARMS: ',
67 & '=> turn off exactConserv to skip wVel calc'
68 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
69 & SQUEEZE_RIGHT, myThid )
70 CALL PRINT_MESSAGE( msgBuf, errorMessageUnit,
71 & SQUEEZE_RIGHT, myThid )
72 exactConserv = .FALSE.
73 ENDIF
74 ENDIF
75
76 _END_MASTER(myThid)
77
78 RETURN
79 END

  ViewVC Help
Powered by ViewVC 1.1.22