fixed: allow flat dump format

This commit is contained in:
Arne Morten Kvarving 2021-09-21 10:29:06 +02:00
parent dba0163a5b
commit 548adf7e5b

View File

@ -683,7 +683,7 @@ bool SIMinput::parseOutputTag (const TiXmlElement* elem)
{
IntVec steps;
DumpData dmp;
std::string format;
std::string format = "flat";
utl::getAttribute(elem,"format",format);
utl::getAttribute(elem,"step",steps);
utl::getAttribute(elem,"eps",dmp.eps);
@ -692,7 +692,7 @@ bool SIMinput::parseOutputTag (const TiXmlElement* elem)
dmp.format = LinAlg::MATLAB;
else if (format == "matrix_market")
dmp.format = LinAlg::MATRIX_MARKET;
else {
else if (format != "flat" && format != "plain") {
std::cerr << " ** SIMinput::parseOutputTag: Unknown matrix dump format \"" << format << "\", ignored" << std::endl;
return true;
}