From: nicolas Date: Thu, 24 Oct 2013 14:41:25 +0000 (+0000) Subject: correction du script produit X-Git-Tag: V7_3_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=63d360b5b10abf4659e3e71f24ab7f75fdab0749;p=modules%2Fhomard.git correction du script produit --- diff --git a/src/HOMARD/HOMARD_Iteration.cxx b/src/HOMARD/HOMARD_Iteration.cxx index 592154ba..322cfaca 100644 --- a/src/HOMARD/HOMARD_Iteration.cxx +++ b/src/HOMARD/HOMARD_Iteration.cxx @@ -41,7 +41,7 @@ */ //============================================================================= HOMARD_Iteration::HOMARD_Iteration(): - _Name( "" ), _Etat( false ), + _Name( "" ), _Etat( 0 ), _NumIter( -1 ), _NomMesh( "" ), _MeshFile( "" ), _FieldFile( "" ), _TimeStep( -1 ), _Rank( -1 ), @@ -147,8 +147,8 @@ std::string HOMARD_Iteration::GetDumpPython() const // Compute MESSAGE (". Compute "); - if (_Etat == true) { aScript << "\tcodret = " <<_Name << ".Compute(1, 1)\n"; } - else { aScript << "\t#codret = " <<_Name << ".Compute(1, 1)\n"; } + if ( _Etat == 2 ) { aScript << "\tcodret = " <<_Name << ".Compute(1, 1)\n"; } + else { aScript << "\t#codret = " <<_Name << ".Compute(1, 1)\n"; } // MESSAGE (". Fin de l ecriture de l iteration " << _Name ); return aScript.str();