Using the mesh file without expansion tag
Using the xml
output results in a mesh file that has no expansion tag. E.g.: FieldConvert geom.xml geom2.xml
will produce an uncompressed mesh without the Expansion tag. Using the output mesh with a solution file (.chk, .fld ...) results in FieldConvert crashing with an error:
Unable to find EXPANSIONS tag in file.
Still the solution file has a valid expansion that is used if one does FieldConvert geom.xml geom.fld geom.dat
Could there be a default expansion to be created in case no expansion is given in the mesh file. I tried adding something like this in the MeshGraph::ReadExpansions(TiXmlDocument &doc), around line 1076
else //apparently there is no expansion defined in the xml file, but is it a bad thing?
{
auto expansionMap = SetUpExpansionMap();
for(auto &ex : *expansionMap)
{
ex.second->m_basisKeyVector = MeshGraph::DefineBasisKeyFromExpansionType(ex.second->m_geomShPtr,ExpansionType::eModified,m_meshDimension);
}
m_expansionMapShPtrMap["DefaultVar"] = expansionMap;
}
But this causes in the output (.vtu files) to be displayed with the the "DefaultVar"
expansion instead of the one defined in the .fld file.
Could this be easily fixed / improved?