MOM6
MOM_memory.h
Go to the documentation of this file.
1 !/*! \brief Compile-time memory settings */
2 !/*! \details This include file determines the compile-time memory settings. There are several variants of this file and only one should be in the search path for compilation. */
3 !/*! \file MOM_memory.h */
4 
5 !/*! The number of thickness grid points in the i-direction of the global domain. */
6 #define NIGLOBAL_ NONSENSE_NIGLOBAL
7 !/*! The number of thickness grid points in the j-direction of the global domain. */
8 #define NJGLOBAL_ NONSENSE_NJGLOBAL
9 !/*! The number of layers in the vertical direction. */
10 #define NK_ NONSENSE_NK
11 
12 !/*! \def 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. */
13 #undef STATIC_MEMORY_
14 
15 !/*! If SYMMETRIC_MEMORY_ is 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. */
16 #define SYMMETRIC_MEMORY_
17 
18 !/*! The number of processors in the i-direction. */
19 #define NIPROC_ NONSENSE_NIPROC
20 
21 !/*! The number of processors in the j-direction. */
22 #define NJPROC_ NONSENSE_NJPROC
23 
24 !/*! 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. */
25 #define MAX_FIELDS_ 50
26 
27 !/*! The number of memory halo cells on each side of the computational domain in the i-direction */
28 #define NIHALO_ 2
29 
30 !/*! The number of memory halo cells on each side of the computational domain in the j-direction */
31 #define NJHALO_ 2
32 
33 #include <MOM_memory_macros.h>
Memory macros.