]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Force the float expression for the max memory parameter to avoid exponential form...
authorFlorian BRUNET <FB15EB3N@dsp0657834.(none)>
Wed, 8 Apr 2015 09:48:32 +0000 (11:48 +0200)
committerFlorian BRUNET <FB15EB3N@dsp0657834.(none)>
Wed, 8 Apr 2015 14:37:26 +0000 (16:37 +0200)
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx

index e1eb1edb7875103c06a583ad47dbed8e06dcdc17..f8a7c6908652a254649e027acdc9878063d15330 100644 (file)
@@ -1481,11 +1481,13 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h
   // so allow to use about all available memory
   if ( m ) {
     double aMaximumMemory = hyp ? hyp->myMaximumMemory : -1;
+    ostringstream tmpMaximumMemory;
     cmd += " -m ";
     if ( aMaximumMemory < 0 )
-      cmd += DefaultMaximumMemory();
+      tmpMaximumMemory << std::fixed << std::setprecision(0) << DefaultMaximumMemory();
     else
-      cmd += aMaximumMemory;
+      tmpMaximumMemory << std::fixed << std::setprecision(0) << aMaximumMemory;
+    cmd += tmpMaximumMemory.str().c_str();
   }
   if ( M && !useBndRecovery ) {
     double aInitialMemory = hyp ? hyp->myInitialMemory : -1;