/[MITgcm]/MITgcm/model/src/ini_fields.F
ViewVC logotype

Contents of /MITgcm/model/src/ini_fields.F

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


Revision 1.24 - (show annotations) (download)
Fri Dec 11 13:56:28 2009 UTC (14 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62c, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62w, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint62, checkpoint63, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint62b
Changes since 1.23: +7 -2 lines
move ini_pnh.F to ini_nh_fields.F (with more NH var. initialisation and
 called from INI_FIELDS whatever start or restart)

1 C $Header: /u/gcmpack/MITgcm/model/src/ini_fields.F,v 1.23 2009/05/17 20:15:22 jmc Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
8 CBOP
9 C !ROUTINE: INI_FIELDS
10
11 C !INTERFACE:
12 SUBROUTINE INI_FIELDS( myThid )
13
14 C !DESCRIPTION:
15 C Initial conditions of the model state variables are set here. For
16 C continuation runs a restart file will be used. For original runs
17 C custom rules can be included here.
18
19 C !USES:
20 IMPLICIT NONE
21 #include "SIZE.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24
25 C !INPUT PARAMETERS:
26 INTEGER myThid
27 CEOP
28
29 C Set model variables to initial/restart conditions
30 IF ( startTime .EQ. baseTime .AND. nIter0 .EQ. 0
31 & .AND. pickupSuff .EQ. ' ' ) THEN
32 CALL INI_VEL( myThid )
33 CALL INI_THETA( myThid )
34 CALL INI_SALT( myThid )
35 CALL INI_PSURF( myThid )
36 CALL INI_PRESSURE( myThid )
37 #ifdef INCLUDE_EP_FORCING_CODE
38 CALL INI_EP( myThid )
39 #endif
40 ELSEIF ( .NOT.useOffLine ) THEN
41 CALL READ_PICKUP( nIter0, myThid )
42
43 c IF (pickup_write_immed) THEN
44 c CALL WRITE_PICKUP(
45 c I .TRUE., startTime, nIter0, myThid )
46 c ENDIF
47
48 ENDIF
49
50 #ifdef ALLOW_NONHYDROSTATIC
51 IF ( nonHydrostatic ) THEN
52 CALL INI_NH_FIELDS( myThid )
53 ENDIF
54 #endif /* ALLOW_NONHYDROSTATIC */
55
56 RETURN
57 END

  ViewVC Help
Powered by ViewVC 1.1.22