From 548adf7e5ba09459320513605d1271c26cb18670 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 21 Sep 2021 10:29:06 +0200 Subject: [PATCH] fixed: allow flat dump format --- src/SIM/SIMinput.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SIM/SIMinput.C b/src/SIM/SIMinput.C index 53a8aae1..b0e41b4b 100644 --- a/src/SIM/SIMinput.C +++ b/src/SIM/SIMinput.C @@ -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; }