/[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.20 - (show annotations) (download)
Wed Apr 6 18:29:53 2005 UTC (19 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57g_pre, checkpoint57s_post, checkpoint58b_post, checkpoint57g_post, checkpoint57y_post, checkpoint57r_post, checkpoint57i_post, checkpoint58, checkpoint57n_post, checkpoint58a_post, checkpoint57z_post, checkpoint57l_post, checkpoint57t_post, checkpoint57v_post, checkpoint57f_post, checkpoint57h_pre, checkpoint57h_post, checkpoint57y_pre, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, checkpoint57h_done, checkpoint57j_post, checkpoint57o_post, checkpoint57k_post, checkpoint57w_post, checkpoint57x_post
Changes since 1.19: +5 -5 lines
use baseTime as time origin ; DIFF_BASE_MULTIPLE replaces DIFFERENT_MULTIPLE

1 C $Header: /u/gcmpack/MITgcm/model/src/ini_fields.F,v 1.19 2004/09/10 12:19:29 edhill 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 IF (nonHydrostatic) CALL INI_PNH( myThid )
41 ELSE
42 c IF ( nIter0 .EQ. 0 ) THEN
43 c nIter0 = INT(startTime/deltaTClock )
44 c ENDIF
45 CALL READ_CHECKPOINT( nIter0, myThid )
46
47 CEH3 IF (pickup_write_immed) THEN
48 CEH3 CALL WRITE_CHECKPOINT(
49 CEH3 & .TRUE., myCurrentTime, myCurrentIter, myThid)
50 CEH3 ENDIF
51
52 ENDIF
53
54 RETURN
55 END

  ViewVC Help
Powered by ViewVC 1.1.22