1 |
C $Header$ |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
|
#include "PACKAGES_CONFIG.h" |
5 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
6 |
|
|
7 |
CStartOfInterface |
CBOP |
8 |
|
C !ROUTINE: INI_FIELDS |
9 |
|
C !INTERFACE: |
10 |
SUBROUTINE INI_FIELDS( myThid ) |
SUBROUTINE INI_FIELDS( myThid ) |
11 |
C /==========================================================\ |
C !DESCRIPTION: \bv |
12 |
C | SUBROUTINE INI_FIELDS | |
C *==========================================================* |
13 |
C | o Initialise model fields | |
C | SUBROUTINE INI_FIELDS |
14 |
C |==========================================================| |
C | o Initialise model fields |
15 |
C | Initial conditions of the model state variables are | |
C *==========================================================* |
16 |
C | set here. For continuation runs a restart file will be | |
C | Initial conditions of the model state variables are |
17 |
C | used. For original runs custom rules can be included | |
C | set here. For continuation runs a restart file will be |
18 |
C | here. | |
C | used. For original runs custom rules can be included |
19 |
C \==========================================================/ |
C | here. |
20 |
IMPLICIT NONE |
C *==========================================================* |
21 |
|
C \ev |
22 |
|
|
23 |
|
C !USES: |
24 |
|
IMPLICIT NONE |
25 |
C === Global variables === |
C === Global variables === |
26 |
#include "SIZE.h" |
#include "SIZE.h" |
27 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
28 |
#include "PARAMS.h" |
#include "PARAMS.h" |
29 |
|
|
30 |
|
C !INPUT/OUTPUT PARAMETERS: |
31 |
C == Routine arguments == |
C == Routine arguments == |
32 |
C myThid - Number of this instance of INI_FIELDS |
C myThid - Number of this instance of INI_FIELDS |
33 |
INTEGER myThid |
INTEGER myThid |
34 |
CEndOfInterface |
CEOP |
35 |
|
|
36 |
C-- Set model variables to initial/restart conditions |
C-- Set model variables to initial/restart conditions |
37 |
IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0 ) THEN |
IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0 |
38 |
CALL INI_UVEL( myThid ) |
& .AND. pickupSuff .EQ. ' ' ) THEN |
39 |
CALL INI_VVEL( myThid ) |
CALL INI_VEL( myThid ) |
40 |
CALL INI_THETA( myThid ) |
CALL INI_THETA( myThid ) |
41 |
CALL INI_SALT( myThid ) |
CALL INI_SALT( myThid ) |
42 |
|
CALL INI_PSURF( myThid ) |
43 |
|
CALL INI_PRESSURE( myThid ) |
44 |
|
#ifdef ALLOW_CD_CODE |
45 |
|
IF (useCDscheme) |
46 |
|
& CALL CD_CODE_INI_VARS( myThid ) |
47 |
|
#endif |
48 |
|
#ifdef INCLUDE_EP_FORCING_CODE |
49 |
|
CALL INI_EP( myThid ) |
50 |
|
#endif |
51 |
|
IF (nonHydrostatic) CALL INI_PNH( myThid ) |
52 |
ELSE |
ELSE |
53 |
IF ( nIter0 .EQ. 0 ) THEN |
IF ( nIter0 .EQ. 0 ) THEN |
54 |
nIter0 = INT(startTime/deltaTClock ) |
nIter0 = INT(startTime/deltaTClock ) |
55 |
ENDIF |
ENDIF |
56 |
CALL READ_CHECKPOINT( nIter0, myThid ) |
CALL READ_CHECKPOINT( nIter0, myThid ) |
57 |
|
#ifdef ALLOW_CD_CODE |
58 |
|
IF (useCDscheme) |
59 |
|
& CALL CD_CODE_READ_CHECKPOINT( nIter0, myThid ) |
60 |
|
#endif |
61 |
ENDIF |
ENDIF |
62 |
|
|
63 |
RETURN |
RETURN |