[cig-commits] r4399 - mc/3D/CitcomS/trunk/lib
luis at geodynamics.org
luis at geodynamics.org
Tue Aug 22 11:24:20 PDT 2006
Author: luis
Date: 2006-08-22 11:24:20 -0700 (Tue, 22 Aug 2006)
New Revision: 4399
Modified:
mc/3D/CitcomS/trunk/lib/Output_h5.c
mc/3D/CitcomS/trunk/lib/hdf5_related.h
Log:
Data buffer in field_t struct should be a float.
Modified: mc/3D/CitcomS/trunk/lib/Output_h5.c
===================================================================
--- mc/3D/CitcomS/trunk/lib/Output_h5.c 2006-08-22 15:30:52 UTC (rev 4398)
+++ mc/3D/CitcomS/trunk/lib/Output_h5.c 2006-08-22 18:24:20 UTC (rev 4399)
@@ -733,7 +733,7 @@
(*field)->n *= (*field)->block[dim];
/* finally, allocate buffer */
- (*field)->data = (double *)malloc((*field)->n * sizeof(double));
+ (*field)->data = (float *)malloc((*field)->n * sizeof(float));
return 0;
}
@@ -989,7 +989,7 @@
{
herr_t status;
- status = h5write_dataset(dset_id, H5T_NATIVE_DOUBLE, field->data,
+ status = h5write_dataset(dset_id, H5T_NATIVE_FLOAT, field->data,
field->rank, field->block, field->offset,
field->stride, field->count, field->block);
return status;
Modified: mc/3D/CitcomS/trunk/lib/hdf5_related.h
===================================================================
--- mc/3D/CitcomS/trunk/lib/hdf5_related.h 2006-08-22 15:30:52 UTC (rev 4398)
+++ mc/3D/CitcomS/trunk/lib/hdf5_related.h 2006-08-22 18:24:20 UTC (rev 4399)
@@ -70,7 +70,7 @@
/* number of data points in buffer */
int n;
- double *data;
+ float *data;
} field_t;
More information about the cig-commits
mailing list