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

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

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


Revision 1.7 - (hide annotations) (download)
Wed Feb 14 22:51:27 2001 UTC (23 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint36
Changes since 1.6: +15 -3 lines
recover (after checkpoint35) time average output

1 jmc 1.7 C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise_varia.F,v 1.6 2001/02/04 14:38:48 cnh Exp $
2     C $Name: checkpoint35 $
3 adcroft 1.1
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 adcroft 1.5 #ifdef ALLOW_OBCS
26     #include "DYNVARS.h"
27     #endif
28 adcroft 1.1
29     C == Routine arguments ==
30     INTEGER myThid
31     CEndOfInterface
32    
33     C == Local variables ==
34 adcroft 1.5 INTEGER bi,bj,K,iMin,iMax,jMin,jMax
35 adcroft 1.1
36 adcroft 1.5 _BARRIER
37 adcroft 1.1 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 adcroft 1.5 C-- Initial conditions are convectively adjusted (for historical reasons)
45 heimbach 1.3 IF ( startTime .EQ. 0. ) THEN
46 adcroft 1.1 DO bj = myByLo(myThid), myByHi(myThid)
47     DO bi = myBxLo(myThid), myBxHi(myThid)
48 adcroft 1.5 iMin=1-Olx
49     iMax=sNx+Olx
50     jMin=1-Oly
51     jMax=sNy+Oly
52     CALL CONVECTIVE_ADJUSTMENT(
53     I bi, bj, iMin, iMax, jMin, jMax,
54 jmc 1.7 I startTime, nIter0, myThid )
55 adcroft 1.1 ENDDO
56     ENDDO
57 adcroft 1.5 _BARRIER
58     END IF
59    
60     C-- Initialize variable data for packages
61     CALL PACKAGES_INIT_VARIABLES( myThid )
62 adcroft 1.1
63     C-- Finally summarise the model state
64     CALL STATE_SUMMARY( myThid )
65    
66 jmc 1.7 #ifdef INCLUDE_DIAGNOSTICS_INTERFACE_CODE
67     C-- initialise time-average arrays with initial state values
68     IF (taveFreq.GT.0.) THEN
69     DO bj=myByLo(myThid),myByHi(myThid)
70     DO bi=myBxLo(myThid),myBxHi(myThid)
71     CALL DO_TIME_AVERAGES(startTime, nIter0, bi, bj, myThid)
72     ENDDO
73     ENDDO
74     ENDIF
75     #endif /* INCLUDE_DIAGNOSTICS_INTERFACE_CODE */
76    
77     RETURN
78 adcroft 1.1 END

  ViewVC Help
Powered by ViewVC 1.1.22