/[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.2 - (show annotations) (download)
Wed Jun 21 19:03:39 2000 UTC (23 years, 11 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint29, checkpoint30
Changes since 1.1: +11 -4 lines
Inserted calls to GMREDI_init and KPP_init as part of packaging effort.

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise_varia.F,v 1.1 2000/04/05 19:04:14 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
25 C == Routine arguments ==
26 INTEGER myThid
27 CEndOfInterface
28
29 C == Local variables ==
30 #ifdef ALLOW_OBCS
31 INTEGER bi,bj,K
32 #endif
33
34 #ifdef ALLOW_GMREDI
35 C-- Initialize GM/Redi parameterization
36 IF (use_GMRedi) CALL GMREDI_INIT( myThid )
37 #endif
38
39 #ifdef ALLOW_KPP
40 C-- Initialize KPP vertical mixing scheme.
41 IF (use_KPPmixing) THEN
42 CALL KPP_INIT( myThid )
43 CALL KPP_OPEN_DIAGS( myThid )
44 ENDIF
45 #endif
46
47 C-- Initialise model fields.
48 C Starting values of U, V, W, temp., salt. and tendency terms
49 C are set here. Fields are either set to default or read from
50 C stored files.
51 CALL INI_FIELDS( myThid )
52 _BARRIER
53
54 C-- Initialise time-stepping (predictor variables are carried in G)
55 IF ( startTime .EQ. 0. )
56 & CALL INI_PREDICTOR( myThid )
57 _BARRIER
58
59 C-- Custom routine to set forcing fields
60 CALL INI_FORCING( myThid )
61
62 #ifdef ALLOW_OBCS
63 C-- Calculate values on open boundaries at iter=nIter0
64 IF (openBoundaries) THEN
65 DO bj = myByLo(myThid), myByHi(myThid)
66 DO bi = myBxLo(myThid), myBxHi(myThid)
67 DO K=1,Nr
68 CALL SET_OBCS( K, bi, bj, startTime, myThid )
69 Caja CALL CYCLE_OBCS( K, bi, bj, myThid )
70 ENDDO
71 ENDDO
72 ENDDO
73 ENDIF
74 #endif
75
76 C-- Finally summarise the model state
77 CALL STATE_SUMMARY( myThid )
78
79 END

  ViewVC Help
Powered by ViewVC 1.1.22