14 if (g3dType == FCELL_TYPE)
30 for (i = 0; i < nElts; i++)
31 dst[i] = (
double)src[i];
45 for (i = 0; i < nElts; i++)
46 dst[i] = (
float)src[i];
53 int offsDst,
int typeDst,
int nElts)
57 if ((typeSrc == FCELL_TYPE) && (typeDst == DCELL_TYPE)) {
62 if ((typeSrc == DCELL_TYPE) && (typeDst == FCELL_TYPE)) {
72 memcpy(dst, src, nElts * eltLength);
85 return sizeof(double);
int G3d_g3dType2cellType(int g3dType)
int G3d_externLength(int t)
void G3d_copyDouble2Float(const double *src, int offsSrc, float *dst, int offsDst, int nElts)
#define G3D_XDR_FLOAT_LENGTH
void * G_incr_void_ptr(const void *ptr, const size_t size)
Advance void pointer.
void G3d_copyValues(const void *src, int offsSrc, int typeSrc, void *dst, int offsDst, int typeDst, int nElts)
#define G3D_IS_CORRECT_TYPE(t)
void G3d_copyFloat2Double(const float *src, int offsSrc, double *dst, int offsDst, int nElts)
#define G3D_XDR_DOUBLE_LENGTH
void G3d_fatalError(const char *,...)
This function prints the error message msg, and terminates the program with an error status...