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

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

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


Revision 1.9 - (show annotations) (download)
Tue Mar 6 17:19:25 2001 UTC (23 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: pre38tag1, checkpoint37
Branch point for: pre38
Changes since 1.8: +4 -4 lines
change Time-Average routine names (new package)

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise_varia.F,v 1.8 2001/02/23 00:30:03 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE INITIALISE_VARIA(myThid)
8 C /==========================================================\
9 C | SUBROUTINE INITIALISE_VARIA |
10 C | o Set the initial conditions for dynamics variables |
11 C | and time dependent arrays |
12 C |==========================================================|
13 C | This routine reads/writes data from an input file and |
14 C | from various binary files. |
15 C | Each thread invokes an instance of this routine as does |
16 C | each process in a multi-process parallel environment like|
17 C | MPI. |
18 C \==========================================================/
19 IMPLICIT NONE
20
21 C == Global variables ==
22 #include "SIZE.h"
23 #include "EEPARAMS.h"
24 #include "PARAMS.h"
25 #ifdef ALLOW_OBCS
26 #include "DYNVARS.h"
27 #endif
28
29 C == Routine arguments ==
30 INTEGER myThid
31 CEndOfInterface
32
33 C == Local variables ==
34 INTEGER bi,bj,K,iMin,iMax,jMin,jMax
35
36 _BARRIER
37 C-- Initialise model fields.
38 C Starting values of U, V, W, temp., salt. and tendency terms
39 C are set here. Fields are either set to default or read from
40 C stored files.
41 CALL INI_FIELDS( myThid )
42 _BARRIER
43
44 C-- IMPORTANT : Need to activate the following call to restart from
45 C a pickup file written by MITgcmUV_checkpoint34 or earlier.
46 C IF ( startTime .NE. 0. ) THEN
47 C CALL THE_CORRECTION_STEP(startTime, nIter0, myThid)
48 C ENDIF
49
50 C-- Initial conditions are convectively adjusted (for historical reasons)
51 IF ( startTime .EQ. 0. ) THEN
52 DO bj = myByLo(myThid), myByHi(myThid)
53 DO bi = myBxLo(myThid), myBxHi(myThid)
54 iMin=1-Olx
55 iMax=sNx+Olx
56 jMin=1-Oly
57 jMax=sNy+Oly
58 CALL CONVECTIVE_ADJUSTMENT(
59 I bi, bj, iMin, iMax, jMin, jMax,
60 I startTime, nIter0, myThid )
61 ENDDO
62 ENDDO
63 _BARRIER
64 END IF
65
66 C-- Initialize variable data for packages
67 CALL PACKAGES_INIT_VARIABLES( myThid )
68
69 C-- Finally summarise the model state
70 CALL STATE_SUMMARY( myThid )
71
72 #ifdef ALLOW_TIMEAVE
73 C-- initialise time-average arrays with initial state values
74 IF (taveFreq.GT.0.) THEN
75 DO bj=myByLo(myThid),myByHi(myThid)
76 DO bi=myBxLo(myThid),myBxHi(myThid)
77 CALL TIMEAVE_STATVARS(startTime, nIter0, bi, bj, myThid)
78 ENDDO
79 ENDDO
80 ENDIF
81 #endif /* ALLOW_TIMEAVE */
82
83 RETURN
84 END

  ViewVC Help
Powered by ViewVC 1.1.22