Commit 39c576bd authored by allens's avatar allens
Browse files

Jerry's fix for unsigned ints

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@12775 18c085ea-50e0-402c-830e-de6fd14e8384
parent 9c43067f
......@@ -211,21 +211,23 @@ BaseFileInterface::DataType H5D::getDataType(){
hid_t specific_type = H5Tget_native_type(data_type,H5T_DIR_ASCEND);
BaseFileInterface::DataType answer;
if(H5Tequal(specific_type, H5T_NATIVE_INT32)){
answer = BaseFileInterface::DataType(2);
}
else if(H5Tequal(specific_type, H5T_NATIVE_FLOAT)){
if(H5Tequal(specific_type, H5T_NATIVE_FLOAT)){
answer = BaseFileInterface::DataType(0);
}
else if(H5Tequal(specific_type,H5T_NATIVE_CHAR)){
answer = BaseFileInterface::DataType(4);
}
else if(H5Tequal(specific_type,H5T_NATIVE_DOUBLE)){
answer = BaseFileInterface::DataType(1);
}
else if(H5Tequal(specific_type,H5T_NATIVE_INT64)){
else if(H5Tequal(specific_type,H5T_NATIVE_INT32) ||
H5Tequal(specific_type,H5T_NATIVE_UINT32)){
answer = BaseFileInterface::DataType(2);
}
else if(H5Tequal(specific_type,H5T_NATIVE_INT64) ||
H5Tequal(specific_type,H5T_NATIVE_UINT64)){
answer = BaseFileInterface::DataType(3);
}
else if(H5Tequal(specific_type,H5T_NATIVE_CHAR)){
answer = BaseFileInterface::DataType(4);
}
else {
answer = BaseFileInterface::H5_Error;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment