1 |
adcroft |
1.5 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_fields.F,v 1.4 1998/11/06 22:44:47 cnh Exp $ |
2 |
cnh |
1.1 |
|
3 |
cnh |
1.4 |
#include "CPP_OPTIONS.h" |
4 |
cnh |
1.1 |
|
5 |
|
|
CStartOfInterface |
6 |
|
|
SUBROUTINE INI_FIELDS( myThid ) |
7 |
|
|
C /==========================================================\ |
8 |
|
|
C | SUBROUTINE INI_FIELDS | |
9 |
|
|
C | o Initialise model fields | |
10 |
|
|
C |==========================================================| |
11 |
|
|
C | Initial conditions of the model state variables are | |
12 |
|
|
C | set here. For continuation runs a restart file will be | |
13 |
|
|
C | used. For original runs custom rules can be included | |
14 |
|
|
C | here. | |
15 |
|
|
C \==========================================================/ |
16 |
adcroft |
1.5 |
IMPLICIT NONE |
17 |
cnh |
1.1 |
|
18 |
|
|
C === Global variables === |
19 |
|
|
#include "SIZE.h" |
20 |
|
|
#include "EEPARAMS.h" |
21 |
|
|
#include "PARAMS.h" |
22 |
|
|
|
23 |
|
|
C == Routine arguments == |
24 |
|
|
C myThid - Number of this instance of INI_FIELDS |
25 |
|
|
INTEGER myThid |
26 |
|
|
CEndOfInterface |
27 |
|
|
|
28 |
|
|
C-- Set model variables to initial/restart conditions |
29 |
cnh |
1.4 |
IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0 ) THEN |
30 |
cnh |
1.1 |
CALL INI_UVEL( myThid ) |
31 |
|
|
CALL INI_VVEL( myThid ) |
32 |
|
|
CALL INI_THETA( myThid ) |
33 |
|
|
CALL INI_SALT( myThid ) |
34 |
|
|
ELSE |
35 |
cnh |
1.3 |
IF ( nIter0 .EQ. 0 ) THEN |
36 |
|
|
nIter0 = INT(startTime/deltaTClock ) |
37 |
|
|
ENDIF |
38 |
|
|
CALL READ_CHECKPOINT( nIter0, myThid ) |
39 |
cnh |
1.1 |
ENDIF |
40 |
|
|
|
41 |
|
|
RETURN |
42 |
|
|
END |