/[MITgcm]/MITgcm_contrib/natl_12/code/ini_fields.F
ViewVC logotype

Contents of /MITgcm_contrib/natl_12/code/ini_fields.F

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


Revision 1.1 - (show annotations) (download)
Thu Aug 7 15:51:47 2003 UTC (20 years, 9 months ago) by cnh
Branch: MAIN
CVS Tags: HEAD
Naughty hack to set thetaref and saltref (the 3d sponge layer relaxation profiles)
when doing a pickup.

1 C $Header: /u/gcmpack/MITgcm/model/src/ini_fields.F,v 1.15 2003/06/05 16:03:05 adcroft Exp $
2 C $Name: checkpoint51c_post $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: INI_FIELDS
8 C !INTERFACE:
9 SUBROUTINE INI_FIELDS( myThid )
10 C !DESCRIPTION: \bv
11 C *==========================================================*
12 C | SUBROUTINE INI_FIELDS
13 C | o Initialise model fields
14 C *==========================================================*
15 C | Initial conditions of the model state variables are
16 C | set here. For continuation runs a restart file will be
17 C | used. For original runs custom rules can be included
18 C | here.
19 C *==========================================================*
20 C \ev
21
22 C !USES:
23 IMPLICIT NONE
24 C === Global variables ===
25 #include "SIZE.h"
26 #include "EEPARAMS.h"
27 #include "PARAMS.h"
28
29 C !INPUT/OUTPUT PARAMETERS:
30 C == Routine arguments ==
31 C myThid - Number of this instance of INI_FIELDS
32 INTEGER myThid
33 CEOP
34
35 C-- Set model variables to initial/restart conditions
36 IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0
37 & .AND. pickupSuff .EQ. ' ' ) THEN
38 CALL INI_VEL( myThid )
39 CALL INI_THETA( myThid )
40 CALL INI_SALT( myThid )
41 CALL INI_PSURF( myThid )
42 CALL INI_PRESSURE( myThid )
43 #ifdef INCLUDE_EP_FORCING_CODE
44 CALL INI_EP( myThid )
45 #endif
46 IF (nonHydrostatic) CALL INI_PNH( myThid )
47 ELSE
48
49 CcnhTemporaryFixStarts
50 C Call ini_theta and salt so that sponge thetaRef and saltRef get set
51 C for pickup. Values of theta and salt are overwritten from pickup
52 C 'CALL READ_CHECKPOINT' immediately below
53 CALL INI_THETA( myThid )
54 CALL INI_SALT( myThid )
55 CcnhTemporaryFixEnds
56 IF ( nIter0 .EQ. 0 ) THEN
57 nIter0 = INT(startTime/deltaTClock )
58 ENDIF
59 CALL READ_CHECKPOINT( nIter0, myThid )
60 ENDIF
61
62 RETURN
63 END

  ViewVC Help
Powered by ViewVC 1.1.22