Commit e7913d9d authored by Kenneth Leiter's avatar Kenneth Leiter

ENH: Allow XdmfArrayType to correctly read old xdmf files containing...

ENH: Allow XdmfArrayType to correctly read old xdmf files containing "NumberType" XML attribute, which is the same as DataType.
parent 9cf33fdc
......@@ -82,6 +82,10 @@ XdmfArrayType::~XdmfArrayType()
boost::shared_ptr<const XdmfArrayType> XdmfArrayType::New(const std::map<std::string, std::string> & itemProperties)
{
std::map<std::string, std::string>::const_iterator type = itemProperties.find("DataType");
if(type == itemProperties.end())
{
type = itemProperties.find("NumberType");
}
std::map<std::string, std::string>::const_iterator precision = itemProperties.find("Precision");
if(type != itemProperties.end() && precision != itemProperties.end())
{
......
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