73 #ifdef HAVE_ARRAY_ALLOC
74 # define mdp_array_alloc array_alloc
75 # define mdp_safe_free safe_free
84 #define MDP_INT_NOINIT -68361
92 #define MDP_DBL_NOINIT -1.241E11
119 extern int MDP_MP_Nprocs;
120 extern int MDP_MP_myproc;
129 #define MDP_SAFE_DELETE(a) if (a) { delete (a); a = 0; }
134 #define mdp_alloc_struct(x, num) (x *) mdp_array_alloc(1, (num), sizeof(x))
173 extern int*
mdp_alloc_int_1(
int len,
const int defval = MDP_INT_NOINIT);
195 const int defval = MDP_INT_NOINIT);
226 const int defval = MDP_INT_NOINIT);
257 const int defval = MDP_INT_NOINIT);
278 extern double*
mdp_alloc_dbl_1(
int nvalues,
const double val=MDP_DBL_NOINIT);
295 const double val=MDP_DBL_NOINIT);
314 const double defVal=MDP_DBL_NOINIT);
336 extern double**
mdp_alloc_dbl_2(
int ndim1,
int ndim2,
const double val);
358 const double val = MDP_DBL_NOINIT);
392 int ndim1Old,
int ndim2Old,
393 const double defVal=MDP_DBL_NOINIT);
427 const char val =
'\0');
470 int numOldStrings,
int lenString);
518 const void*
const copyFrom,
const int len);
534 extern void**
mdp_dupl_ptr_1(
const void*
const copyFrom,
int len);
558 const char**
const copyFrom,
559 int numStrings,
size_t maxLenString);
601 const double*
const copyFrom,
622 extern void mdp_copy_dbl_2(
double**
const copyTo,
const double**
const copyFrom,
623 const int len1,
const int len2);
636 extern void mdp_copy_int_1(
int*
const copyTo,
const int*
const copyFrom,
653 extern void mdp_copy_int_2(
int**
const copyTo,
const int**
const copyFrom,
654 const int len1,
const int len2);
662 extern void mdp_init_dbl_1(
double*
const v,
const double value,
const int len);
689 const int len1,
const int len2);
697 extern void mdp_init_int_1(
int*
const v,
const int value,
const int len);
737 extern void checkMagnitude(
const double tmp,
const double trigger = 1.0E20);