Salome HOME
Adding missing save for hdf yan/verbosity 5/head
authoryoann.audouin <yoann.audouin@edf.fr>
Tue, 16 Jan 2024 14:01:02 +0000 (15:01 +0100)
committeryoann.audouin <yoann.audouin@edf.fr>
Tue, 16 Jan 2024 14:01:02 +0000 (15:01 +0100)
src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx

index 7e99d354d31a819a12a71c0409c1107801aec67a..9a77eda52a4d82902f43f7ba491f1a295247bbf4 100644 (file)
@@ -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<bool>(load >> is);
+  if (isOK)
+    _verbLvl = (Verbosity)is;
+  else
+    load.clear(ios::badbit | load.rdstate());
+
 
   std::string entry;
   isOK = static_cast<bool>(load >> entry);