3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterface |
CBOP |
7 |
|
C !ROUTINE: INI_DEPTHS |
8 |
|
C !INTERFACE: |
9 |
SUBROUTINE INI_DEPTHS( myThid ) |
SUBROUTINE INI_DEPTHS( myThid ) |
10 |
C /==========================================================\ |
C !DESCRIPTION: \bv |
11 |
C | SUBROUTINE INI_DEPTHS | |
C *==========================================================* |
12 |
C | o define R_position of Lower and Surface Boundaries | |
C | SUBROUTINE INI_DEPTHS |
13 |
C |==========================================================| |
C | o define R_position of Lower and Surface Boundaries |
14 |
C |atmosphere orography: | |
C *==========================================================* |
15 |
C | define either in term of P_topo or converted from Z_topo | |
C |atmosphere orography: |
16 |
C |ocean bathymetry: | |
C | define either in term of P_topo or converted from Z_topo |
17 |
C | The depths of the bottom of the model is specified in | |
C |ocean bathymetry: |
18 |
C | terms of an XY map with one depth for each column of | |
C | The depths of the bottom of the model is specified in |
19 |
C | grid cells. Depths do not have to coincide with the | |
C | terms of an XY map with one depth for each column of |
20 |
C | model levels. The model lopping algorithm makes it | |
C | grid cells. Depths do not have to coincide with the |
21 |
C | possible to represent arbitrary depths. | |
C | model levels. The model lopping algorithm makes it |
22 |
C | The mode depths map also influences the models topology | |
C | possible to represent arbitrary depths. |
23 |
C | By default the model domain wraps around in X and Y. | |
C | The mode depths map also influences the models topology |
24 |
C | This default doubly periodic topology is "supressed" | |
C | By default the model domain wraps around in X and Y. |
25 |
C | if a depth map is defined which closes off all wrap | |
C | This default doubly periodic topology is "supressed" |
26 |
C | around flow. | |
C | if a depth map is defined which closes off all wrap |
27 |
C \==========================================================/ |
C | around flow. |
28 |
IMPLICIT NONE |
C *==========================================================* |
29 |
|
C \ev |
30 |
|
|
31 |
|
C !USES: |
32 |
|
IMPLICIT NONE |
33 |
C === Global variables === |
C === Global variables === |
34 |
#include "SIZE.h" |
#include "SIZE.h" |
35 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
36 |
#include "PARAMS.h" |
#include "PARAMS.h" |
37 |
#include "GRID.h" |
#include "GRID.h" |
38 |
|
|
39 |
|
C !INPUT/OUTPUT PARAMETERS: |
40 |
C == Routine arguments == |
C == Routine arguments == |
41 |
C myThid - Number of this instance of INI_DEPTHS |
C myThid - Number of this instance of INI_DEPTHS |
42 |
INTEGER myThid |
INTEGER myThid |
43 |
CEndOfInterface |
CEndOfInterface |
44 |
|
|
45 |
|
C !LOCAL VARIABLES: |
46 |
C == Local variables in common == |
C == Local variables in common == |
47 |
C Hloc - Temporary array used to read surface topography |
C Hloc - Temporary array used to read surface topography |
48 |
C has to be in common for multi threading |
C has to be in common for multi threading |
49 |
COMMON / LOCAL_INI_DEPTHS / Hloc |
COMMON / LOCAL_INI_DEPTHS / Hloc |
50 |
_RS Hloc(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
_RS Hloc(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
|
|
|
51 |
C == Local variables == |
C == Local variables == |
52 |
C iG, jG - Global coordinate index |
C iG, jG - Global coordinate index |
53 |
C bi,bj - Loop counters |
C bi,bj - Loop counters |
58 |
INTEGER bi, bj |
INTEGER bi, bj |
59 |
INTEGER I, J |
INTEGER I, J |
60 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
61 |
|
CEOP |
62 |
|
|
63 |
IF (groundAtK1 .AND. bathyFile .NE. ' ' |
IF (groundAtK1 .AND. bathyFile .NE. ' ' |
64 |
& .AND. topoFile .NE. ' ' ) THEN |
& .AND. topoFile .NE. ' ' ) THEN |