From: yoann.audouin Date: Tue, 16 Jan 2024 14:01:02 +0000 (+0100) Subject: Adding missing save for hdf X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fyan%2Fverbosity;p=plugins%2Fgmshplugin.git Adding missing save for hdf --- diff --git a/src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx b/src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx index 7e99d35..9a77eda 100644 --- a/src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx +++ b/src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx @@ -232,7 +232,8 @@ std::ostream & GMSHPlugin_Hypothesis::SaveTo(std::ostream & save) " " << _maxSize << " " << _minSize << " " << (int)_secondOrder << - " " << (int)_useIncomplElem ; + " " << (int)_useIncomplElem << + " " << (int)_verbLvl ; save << " " << "__COMPOUNDS_BEGIN__"; for (TCompound::const_iterator it = _compounds.begin(); it != _compounds.end(); ++it ) @@ -343,6 +344,12 @@ std::istream & GMSHPlugin_Hypothesis::LoadFrom(std::istream & load) else load.clear(ios::badbit | load.rdstate()); + isOK = static_cast(load >> is); + if (isOK) + _verbLvl = (Verbosity)is; + else + load.clear(ios::badbit | load.rdstate()); + std::string entry; isOK = static_cast(load >> entry);