OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
allocate4d.h
Go to the documentation of this file.
1 
6 #ifndef OEL_UTIL_LIBGENUTILS_ALLOCATE4D_H_
7 #define OEL_UTIL_LIBGENUTILS_ALLOCATE4D_H_
8 
9 #include <stddef.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
29 int ****allocate4d_int(size_t nr,size_t nz, size_t ny, size_t nx);
30 
35 void free4d_int(int ****p);
36 
51 float ****allocate4d_float(size_t nr,size_t nz, size_t ny, size_t nx);
52 
57 void free4d_float(float ****p);
58 
73 double ****allocate4d_double(size_t nr,size_t nz, size_t ny, size_t nx);
74 
79 void free4d_double(double ****p);
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif /* OEL_UTIL_LIBGENUTILS_ALLOCATE4D_H_ */
int **** allocate4d_int(size_t nr, size_t nz, size_t ny, size_t nx)
Allocate a four-dimensional array of type int of a given size.
Definition: allocate4d.c:12
void free4d_int(int ****p)
Free a four-dimensional array created by allocate4d_int.
Definition: allocate4d.c:49
void free4d_float(float ****p)
Free a four-dimensional array created by allocate4d_float.
Definition: allocate4d.c:93
double **** allocate4d_double(size_t nr, size_t nz, size_t ny, size_t nx)
Allocate a four-dimensional array of type double of a given size.
Definition: allocate4d.c:100
float **** allocate4d_float(size_t nr, size_t nz, size_t ny, size_t nx)
Allocate a four-dimensional array of type float of a given size.
Definition: allocate4d.c:56
void free4d_double(double ****p)
Free a four-dimensional array created by allocate4d_double.
Definition: allocate4d.c:137
float p[MODELMAX]
Definition: atrem_corl1.h:131