1 |
C $Header$ |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterface |
CBOP |
7 |
|
C !ROUTINE: INI_FIELDS |
8 |
|
C !INTERFACE: |
9 |
SUBROUTINE INI_FIELDS( myThid ) |
SUBROUTINE INI_FIELDS( myThid ) |
10 |
C /==========================================================\ |
C !DESCRIPTION: \bv |
11 |
C | SUBROUTINE INI_FIELDS | |
C *==========================================================* |
12 |
C | o Initialise model fields | |
C | SUBROUTINE INI_FIELDS |
13 |
C |==========================================================| |
C | o Initialise model fields |
14 |
C | Initial conditions of the model state variables are | |
C *==========================================================* |
15 |
C | set here. For continuation runs a restart file will be | |
C | Initial conditions of the model state variables are |
16 |
C | used. For original runs custom rules can be included | |
C | set here. For continuation runs a restart file will be |
17 |
C | here. | |
C | used. For original runs custom rules can be included |
18 |
C \==========================================================/ |
C | here. |
19 |
IMPLICIT NONE |
C *==========================================================* |
20 |
|
C \ev |
21 |
|
|
22 |
|
C !USES: |
23 |
|
IMPLICIT NONE |
24 |
C === Global variables === |
C === Global variables === |
25 |
#include "SIZE.h" |
#include "SIZE.h" |
26 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
27 |
#include "PARAMS.h" |
#include "PARAMS.h" |
28 |
|
|
29 |
|
C !INPUT/OUTPUT PARAMETERS: |
30 |
C == Routine arguments == |
C == Routine arguments == |
31 |
C myThid - Number of this instance of INI_FIELDS |
C myThid - Number of this instance of INI_FIELDS |
32 |
INTEGER myThid |
INTEGER myThid |
33 |
CEndOfInterface |
CEOP |
34 |
|
|
35 |
C-- Set model variables to initial/restart conditions |
C-- Set model variables to initial/restart conditions |
36 |
IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0 ) THEN |
IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0 ) THEN |
37 |
CALL INI_UVEL( myThid ) |
CALL INI_VEL( myThid ) |
|
CALL INI_VVEL( myThid ) |
|
38 |
CALL INI_THETA( myThid ) |
CALL INI_THETA( myThid ) |
39 |
CALL INI_SALT( myThid ) |
CALL INI_SALT( myThid ) |
40 |
|
CALL INI_PSURF( myThid ) |
41 |
|
IF (nonHydrostatic) CALL INI_PNH( myThid ) |
42 |
ELSE |
ELSE |
43 |
IF ( nIter0 .EQ. 0 ) THEN |
IF ( nIter0 .EQ. 0 ) THEN |
44 |
nIter0 = INT(startTime/deltaTClock ) |
nIter0 = INT(startTime/deltaTClock ) |