From 2a3f77f8dceee279ba7a889a1d884481a7b46386 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 3 Dec 2018 13:42:01 +0300 Subject: [PATCH] 23643: EDF 18321 - Max_memory : wrong argument max_memory is integer parameter --- src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2