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

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

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


Revision 1.1 - (show annotations) (download)
Fri Jun 29 17:14:49 2001 UTC (22 years, 10 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre3, checkpoint40pre2, checkpoint40pre1, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, checkpoint40pre4, checkpoint40pre5, checkpoint40
Moved cg3d_x into DYNVARS.h and renamed it to phi_nh.
 - cg3d and cg2d now look more similar
 - output formatted to fit Chris's tastes (I think)

1 C $Header: $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 SUBROUTINE INI_PNH( myThid )
7 C /==========================================================\
8 C | SUBROUTINE INI_PNH |
9 C | o Set model initial non-hydrostatic pressure. |
10 C |==========================================================|
11 C | There are several options for setting the initial |
12 C | surface displacement (r unit) field. |
13 C | 1. Inline code |
14 C | 2. Two-dimensional data from a file. |
15 C \==========================================================/
16 IMPLICIT NONE
17
18 C === Global variables ===
19 #include "SIZE.h"
20 #include "EEPARAMS.h"
21 #include "PARAMS.h"
22 #include "GRID.h"
23 #include "DYNVARS.h"
24
25 C == Routine arguments ==
26 C myThid - Number of this instance of INI_PSURF
27 INTEGER myThid
28
29 C == Local variables ==
30 INTEGER bi,bj,I,J,K
31
32 #ifdef ALLOW_NONHYDROSTATIC
33
34 C-- Initialise surface position anomaly to zero
35 DO bj = myByLo(myThid), myByHi(myThid)
36 DO bi = myBxLo(myThid), myBxHi(myThid)
37 DO K = 1, NR
38 DO J=1-Oly,sNy+Oly
39 DO I=1-Olx,sNx+Olx
40 phi_nh(I,J,K,bi,bj) = 0. _d 0
41 ENDDO
42 ENDDO
43 ENDDO
44 ENDDO
45 ENDDO
46 C Read an initial state
47 c IF (pnhInitFile .NE. ' ') THEN
48 c _BEGIN_MASTER( myThid )
49 c CALL READ_FLD_XY_RL( pnhInitFile, ' ', phi_nh, 0, myThid )
50 c _END_MASTER(myThid)
51 c ENDIF
52 C
53 _EXCH_XYZ_R8(phi_nh, myThid)
54
55 #endif /* ALLOW_NONHYDROSTATIC */
56 RETURN
57 END

  ViewVC Help
Powered by ViewVC 1.1.22