std::cout<<"Detecting mesh from file "<<fileName<<" ..."<<std::endl;
namespacefs=std::experimental::filesystem;
std::stringformat=fileFormat;
if(format=="auto"){
format=fs::path(fileName).extension();
if(format.length()>0)
// remove dot from the extension
format=format.substr(1);
}
// TODO: when TNLReader is gone, use the MeshReader type instead of a template parameter in the mesh type resolver (and remove static_casts in this function)