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