-
Notifications
You must be signed in to change notification settings - Fork 148
/
MOM_memory.h
51 lines (45 loc) · 2.51 KB
/
MOM_memory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
!********+*********+*********+*********+*********+*********+*********+*
!* This include file determines the compile-time memory settings *
!* for the Modular Ocean Model (MOM), versions 6 and later. *
!********+*********+*********+*********+*********+*********+*********+*
! Specify the numerical domain.
#define NIGLOBAL_ 44
#define NJGLOBAL_ 40
! NIGLOBAL_ and NJGLOBAL_ are the number of thickness
! grid points in the zonal and meridional
! directions of the physical domain.
#define NK_ 2
! The number of layers.
#define STATIC_MEMORY_
! If STATIC_MEMORY_ is defined, the principle
! variables will have sizes that are statically
! determined at compile time. Otherwise the
! sizes are not determined until run time. The
! STATIC option is substantially faster, but
! does not allow the PE count to be changed at
! run time.
#undef SYMMETRIC_MEMORY_
! If defined, the velocity point data domain
! includes every face of the thickness points.
! In other words, some arrays are larger than
! others, depending on where they are on the
! staggered grid.
#define NIPROC_ 2
! NIPROC_ is the number of processors in the
! x-direction.
#define NJPROC_ 4
! NJPROC_ is the number of processors in the
! y-direction.
#define MAX_FIELDS_ 50
! The maximum permitted number (each) of
! restart variables, time derivatives, etc.
! This is mostly used for the size of pointer
! arrays, so it should be set generously.
#define NIHALO_ 4
#define NJHALO_ 4
! NIHALO_ and NJHALO_ are the sizes of the
! memory halos on each side.
#define BTHALO_ 10
! BTHALO_ is the size of the memory halos in
! the barotropic solver.
#include <MOM_memory_macros.h>