[cig-commits] r18654 - short/3D/PyLith/trunk/libsrc/pylith/meshio
brad at geodynamics.org
brad at geodynamics.org
Tue Jun 21 09:52:38 PDT 2011
Author: brad
Date: 2011-06-21 09:52:38 -0700 (Tue, 21 Jun 2011)
New Revision: 18654
Modified:
short/3D/PyLith/trunk/libsrc/pylith/meshio/HDF5.cc
Log:
Removed overly-strict requirement that datatype for attribute in read in file matches the variable. Allow HDF5 automatic conversions.
Modified: short/3D/PyLith/trunk/libsrc/pylith/meshio/HDF5.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/meshio/HDF5.cc 2011-06-20 07:40:10 UTC (rev 18653)
+++ short/3D/PyLith/trunk/libsrc/pylith/meshio/HDF5.cc 2011-06-21 16:52:38 UTC (rev 18654)
@@ -454,9 +454,6 @@
if (dtype < 0)
throw std::runtime_error("Could not get datatype of");
- if (H5Tequal(dtype, datatype) <= 0)
- throw std::runtime_error("Wrong datatype specified for");
-
hid_t err = H5Aread(attribute, dtype, value);
if (err < 0)
throw std::runtime_error("Could not read");
More information about the CIG-COMMITS
mailing list