OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
allocate3d.h
Go to the documentation of this file.
1 
6 #ifndef OEL_UTIL_LIBGENUTILS_ALLOCATE3D_H_
7 #define OEL_UTIL_LIBGENUTILS_ALLOCATE3D_H_
8 
9 #include <stddef.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
29 short ***allocate3d_short(size_t nz, size_t ny, size_t nx);
34 void free3d_short(short ***p);
35 
50 int ***allocate3d_int(size_t nz, size_t ny, size_t nx);
55 void free3d_int(int ***p);
56 
71 float ***allocate3d_float(size_t nz, size_t ny, size_t nx);
76 void free3d_float(float ***p);
77 
92 double ***allocate3d_double(size_t nz, size_t ny, size_t nx);
97 void free3d_double(double ***p);
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif /* OEL_UTIL_LIBGENUTILS_ALLOCATE3D_H_ */
short *** allocate3d_short(size_t nz, size_t ny, size_t nx)
Allocate a three-dimensional array of type short of a given size.
Definition: allocate3d.c:13
float *** allocate3d_float(size_t nz, size_t ny, size_t nx)
Allocate a three-dimensional array of type float of a given size.
Definition: allocate3d.c:77
void free3d_double(double ***p)
Free a three-dimensional array created by allocate3d_double.
Definition: allocate3d.c:135
void free3d_float(float ***p)
Free a three-dimensional array created by allocate3d_float.
Definition: allocate3d.c:103
void free3d_int(int ***p)
Free a three-dimensional array created by allocate3d_int.
Definition: allocate3d.c:71
double *** allocate3d_double(size_t nz, size_t ny, size_t nx)
Allocate a three-dimensional array of type double of a given size.
Definition: allocate3d.c:109
void free3d_short(short ***p)
Free a three-dimensional array created by allocate3d_short.
Definition: allocate3d.c:39
int *** allocate3d_int(size_t nz, size_t ny, size_t nx)
Allocate a three-dimensional array of type int of a given size.
Definition: allocate3d.c:45
float p[MODELMAX]
Definition: atrem_corl1.h:131