/[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.5 - (show annotations) (download)
Fri Feb 2 21:04:48 2001 UTC (23 years, 4 months ago) by adcroft
Branch: MAIN
Changes since 1.4: +19 -21 lines
Merged changes from branch "branch-atmos-merge" into MAIN (checkpoint34)
 - substantial modifications to algorithm sequence (dynamics.F)
 - packaged OBCS, Shapiro filter, Zonal filter, Atmospheric Physics

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

  ViewVC Help
Powered by ViewVC 1.1.22