Salome HOME
23643: EDF 18321 - Max_memory : wrong argument
authoreap <eap@opencascade.com>
Mon, 3 Dec 2018 10:42:01 +0000 (13:42 +0300)
committereap <eap@opencascade.com>
Mon, 3 Dec 2018 10:42:01 +0000 (13:42 +0300)
 max_memory is integer parameter

src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx

index 6b6cc2534547655efea7993b52750b22dc839976..8870c5a03fa6c15a3e9d3bf1121da37b6e476942 100644 (file)
@@ -1487,13 +1487,13 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h
   if ( max_memory ) {
     float aMaximumMemory = hyp ? hyp->myMaximumMemory : -1;
     cmd += " --max_memory ";
-    if ( aMaximumMemory < 0 ) cmd += SMESH_Comment( DefaultMaximumMemory() );
-    else                      cmd += SMESH_Comment( aMaximumMemory );
+    if ( aMaximumMemory < 0 ) cmd += SMESH_Comment( int( DefaultMaximumMemory() ));
+    else                      cmd += SMESH_Comment( int( aMaximumMemory ));
   }
   if ( auto_memory && !useBndRecovery ) {
     float aInitialMemory = hyp ? hyp->myInitialMemory : -1;
     cmd += " --automatic_memory ";
-    if ( aInitialMemory > 0 ) cmd += SMESH_Comment( aInitialMemory );
+    if ( aInitialMemory > 0 ) cmd += SMESH_Comment( int( aInitialMemory ));
     else                      cmd += "100";
   }
   // component to mesh