From 63d360b5b10abf4659e3e71f24ab7f75fdab0749 Mon Sep 17 00:00:00 2001 From: nicolas Date: Thu, 24 Oct 2013 14:41:25 +0000 Subject: [PATCH] correction du script produit --- src/HOMARD/HOMARD_Iteration.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.2