3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterface |
CBOP |
7 |
|
C !ROUTINE: INI_MASKS_ETC |
8 |
|
C !INTERFACE: |
9 |
SUBROUTINE INI_MASKS_ETC( myThid ) |
SUBROUTINE INI_MASKS_ETC( myThid ) |
10 |
C /==========================================================\ |
C !DESCRIPTION: \bv |
11 |
C | SUBROUTINE INI_MASKS_ETC | |
C *==========================================================* |
12 |
C | o Initialise masks and topography factors | |
C | SUBROUTINE INI_MASKS_ETC |
13 |
C |==========================================================| |
C | o Initialise masks and topography factors |
14 |
C | These arrays are used throughout the code and describe | |
C *==========================================================* |
15 |
C | the topography of the domain through masks (0s and 1s) | |
C | These arrays are used throughout the code and describe |
16 |
C | and fractional height factors (0<hFac<1). The latter | |
C | the topography of the domain through masks (0s and 1s) |
17 |
C | distinguish between the lopped-cell and full-step | |
C | and fractional height factors (0<hFac<1). The latter |
18 |
C | topographic representations. | |
C | distinguish between the lopped-cell and full-step |
19 |
C \==========================================================/ |
C | topographic representations. |
20 |
IMPLICIT NONE |
C *==========================================================* |
21 |
|
C \ev |
22 |
|
|
23 |
|
C !USES: |
24 |
|
IMPLICIT NONE |
25 |
C === Global variables === |
C === Global variables === |
26 |
#include "SIZE.h" |
#include "SIZE.h" |
27 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
29 |
#include "GRID.h" |
#include "GRID.h" |
30 |
#include "SURFACE.h" |
#include "SURFACE.h" |
31 |
|
|
32 |
|
C !INPUT/OUTPUT PARAMETERS: |
33 |
C == Routine arguments == |
C == Routine arguments == |
34 |
C myThid - Number of this instance of INI_MASKS_ETC |
C myThid - Number of this instance of INI_MASKS_ETC |
35 |
INTEGER myThid |
INTEGER myThid |
|
CEndOfInterface |
|
36 |
|
|
37 |
|
C !LOCAL VARIABLES: |
38 |
C == Local variables in common == |
C == Local variables in common == |
39 |
C tmpfld - Temporary array used to compute & write Total Depth |
C tmpfld - Temporary array used to compute & write Total Depth |
40 |
C has to be in common for multi threading |
C has to be in common for multi threading |
41 |
COMMON / LOCAL_INI_MASKS_ETC / tmpfld |
COMMON / LOCAL_INI_MASKS_ETC / tmpfld |
42 |
_RS tmpfld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
_RS tmpfld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
|
|
|
43 |
C == Local variables == |
C == Local variables == |
44 |
C bi,bj - Loop counters |
C bi,bj - Loop counters |
45 |
C I,J,K |
C I,J,K |
51 |
#endif |
#endif |
52 |
_RL hFacCtmp |
_RL hFacCtmp |
53 |
_RL hFacMnSz |
_RL hFacMnSz |
54 |
|
CEOP |
55 |
|
|
56 |
C- Calculate lopping factor hFacC : over-estimate the part inside of the domain |
C- Calculate lopping factor hFacC : over-estimate the part inside of the domain |
57 |
C taking into account the lower_R Boundary (Bathymetrie / Top of Atmos) |
C taking into account the lower_R Boundary (Bathymetrie / Top of Atmos) |