3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterface |
CBOP |
7 |
|
C !ROUTINE: INI_GRID |
8 |
|
C !INTERFACE: |
9 |
SUBROUTINE INI_GRID( myThid ) |
SUBROUTINE INI_GRID( myThid ) |
10 |
C /==========================================================\ |
C !DESCRIPTION: \bv |
11 |
C | SUBROUTINE INI_GRID | |
C *==========================================================* |
12 |
C | o Initialise model grid | |
C | SUBROUTINE INI_GRID |
13 |
C |==========================================================| |
C | o Initialise model grid |
14 |
C | These arrays are used throughout the code in evaluating | |
C *==========================================================* |
15 |
C | gradients, integrals and spatial avarages. This routine | |
C | These arrays are used throughout the code in evaluating |
16 |
C | is called separately by each thread and initialise only | |
C | gradients, integrals and spatial avarages. This routine |
17 |
C | the region of the domain it is "responsible" for. | |
C | is called separately by each thread and initialise only |
18 |
C | Notes: | |
C | the region of the domain it is "responsible" for. |
19 |
C | Two examples are shown in this code. One illustrates the | |
C | Notes: |
20 |
C | initialisation of a cartesian grid. The other shows the | |
C | Two examples are shown in this code. One illustrates the |
21 |
C | inialisation of a spherical polar grid. Other orthonormal| |
C | initialisation of a cartesian grid. The other shows the |
22 |
C | grids can be fitted into this design. In this case | |
C | inialisation of a spherical polar grid. Other orthonormal |
23 |
C | custom metric terms also need adding to account for the | |
C | grids can be fitted into this design. In this case |
24 |
C | projections of velocity vectors onto these grids. | |
C | custom metric terms also need adding to account for the |
25 |
C | The structure used here also makes it possible to | |
C | projections of velocity vectors onto these grids. |
26 |
C | implement less regular grid mappings. In particular | |
C | The structure used here also makes it possible to |
27 |
C | o Schemes which leave out blocks of the domain that are | |
C | implement less regular grid mappings. In particular |
28 |
C | all land could be supported. | |
C | o Schemes which leave out blocks of the domain that are |
29 |
C | o Multi-level schemes such as icosohedral or cubic | |
C | all land could be supported. |
30 |
C | grid projectedions onto a sphere can also be fitted | |
C | o Multi-level schemes such as icosohedral or cubic |
31 |
C | within the strategy we use. | |
C | grid projectedions onto a sphere can also be fitted |
32 |
C | Both of the above also require modifying the support | |
C | within the strategy we use. |
33 |
C | routines that map computational blocks to simulation | |
C | Both of the above also require modifying the support |
34 |
C | domain blocks. | |
C | routines that map computational blocks to simulation |
35 |
C \==========================================================/ |
C | domain blocks. |
36 |
IMPLICIT NONE |
C *==========================================================* |
37 |
|
C \ev |
38 |
|
|
39 |
|
C !USES: |
40 |
|
IMPLICIT NONE |
41 |
C === Global variables === |
C === Global variables === |
42 |
#include "SIZE.h" |
#include "SIZE.h" |
43 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
44 |
#include "PARAMS.h" |
#include "PARAMS.h" |
45 |
#include "GRID.h" |
#include "GRID.h" |
46 |
|
|
47 |
|
C !INPUT/OUTPUT PARAMETERS: |
48 |
C == Routine arguments == |
C == Routine arguments == |
49 |
C myThid - Number of this instance of INI_GRID |
C myThid - Number of this instance of INI_GRID |
50 |
INTEGER myThid |
INTEGER myThid |
|
CEndOfInterface |
|
51 |
|
|
52 |
|
C !LOCAL VARIABLES: |
53 |
C == Local variables == |
C == Local variables == |
54 |
C msgBuf - Used for informational I/O. |
C msgBuf - Used for informational I/O. |
55 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
56 |
|
CEOP |
57 |
|
|
58 |
C-- Set up vertical grid and coordinate system |
C-- Set up vertical grid and coordinate system |
59 |
CALL INI_VERTICAL_GRID( myThid ) |
CALL INI_VERTICAL_GRID( myThid ) |