From: eap Date: Mon, 3 Dec 2018 10:42:01 +0000 (+0300) Subject: 23643: EDF 18321 - Max_memory : wrong argument X-Git-Tag: V9_3_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a3f77f8dceee279ba7a889a1d884481a7b46386;p=plugins%2Fghs3dplugin.git 23643: EDF 18321 - Max_memory : wrong argument max_memory is integer parameter --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx index 6b6cc25..8870c5a 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx @@ -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