1 |
cnh |
1.12 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_fields.F,v 1.11 2001/06/29 17:14:49 adcroft Exp $ |
2 |
adcroft |
1.10 |
C $Name: $ |
3 |
cnh |
1.1 |
|
4 |
cnh |
1.4 |
#include "CPP_OPTIONS.h" |
5 |
cnh |
1.1 |
|
6 |
cnh |
1.12 |
CBOP |
7 |
|
|
C !ROUTINE: INI_FIELDS |
8 |
|
|
C !INTERFACE: |
9 |
cnh |
1.1 |
SUBROUTINE INI_FIELDS( myThid ) |
10 |
cnh |
1.12 |
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 |
adcroft |
1.5 |
IMPLICIT NONE |
24 |
cnh |
1.1 |
C === Global variables === |
25 |
|
|
#include "SIZE.h" |
26 |
|
|
#include "EEPARAMS.h" |
27 |
|
|
#include "PARAMS.h" |
28 |
|
|
|
29 |
cnh |
1.12 |
C !INPUT/OUTPUT PARAMETERS: |
30 |
cnh |
1.1 |
C == Routine arguments == |
31 |
|
|
C myThid - Number of this instance of INI_FIELDS |
32 |
|
|
INTEGER myThid |
33 |
cnh |
1.12 |
CEOP |
34 |
cnh |
1.1 |
|
35 |
|
|
C-- Set model variables to initial/restart conditions |
36 |
cnh |
1.4 |
IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0 ) THEN |
37 |
adcroft |
1.10 |
CALL INI_VEL( myThid ) |
38 |
cnh |
1.1 |
CALL INI_THETA( myThid ) |
39 |
|
|
CALL INI_SALT( myThid ) |
40 |
adcroft |
1.6 |
CALL INI_PSURF( myThid ) |
41 |
adcroft |
1.11 |
IF (nonHydrostatic) CALL INI_PNH( myThid ) |
42 |
cnh |
1.1 |
ELSE |
43 |
cnh |
1.3 |
IF ( nIter0 .EQ. 0 ) THEN |
44 |
|
|
nIter0 = INT(startTime/deltaTClock ) |
45 |
|
|
ENDIF |
46 |
|
|
CALL READ_CHECKPOINT( nIter0, myThid ) |
47 |
cnh |
1.1 |
ENDIF |
48 |
|
|
|
49 |
|
|
RETURN |
50 |
|
|
END |