From: eap Date: Mon, 23 Jun 2014 14:50:19 +0000 (+0400) Subject: 22608: [CEA 1158] GHS3DPLUGIN default optimization level X-Git-Tag: V7_5_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=01006d40ddf47987791f02768ed4f2c2f7f1cdb7;p=plugins%2Fghs3dplugin.git 22608: [CEA 1158] GHS3DPLUGIN default optimization level --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx index c792365..646362d 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx @@ -1510,18 +1510,22 @@ std::string GHS3DPlugin_Hypothesis::CommandToRun(const GHS3DPlugin_Hypothesis* h cmd += " -c 1"; } } + const bool toCreateNewNodes = ( p0 && ( !hyp || hyp->myToCreateNewNodes )); // optimization level - if ( o && hyp && !useBndRecovery ) { + if ( o && hyp && !useBndRecovery && toCreateNewNodes ) { if ( hyp->myOptimizationLevel >= 0 && hyp->myOptimizationLevel < 5 ) { const char* level[] = { "none" , "light" , "standard" , "standard+" , "strong" }; cmd += " -o "; cmd += level[ hyp->myOptimizationLevel ]; } } + if ( !toCreateNewNodes ) { + cmd += " -o none"; // issue 22608 + } // to create internal nodes - if ( p0 && hyp && !hyp->myToCreateNewNodes ) { + if ( p0 && !toCreateNewNodes ) { cmd += " -p0"; }