X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARD%2FHomardDriver.cxx;h=12f70941549c1c38e0e45b427ee900987a96cbff;hb=27c6e3b847bd0f6caca399c9d8841ac8d36a8ed1;hp=763965412d303391cbc9728037144d7e64b693d2;hpb=77262fdb4bf42ef5a70a8918f6bb3c86b0f6f3b3;p=modules%2Fhomard.git diff --git a/src/HOMARD/HomardDriver.cxx b/src/HOMARD/HomardDriver.cxx index 76396541..12f70941 100644 --- a/src/HOMARD/HomardDriver.cxx +++ b/src/HOMARD/HomardDriver.cxx @@ -1,6 +1,6 @@ -// HOMARD HOMARD : implementaion of HOMARD idl descriptions +// HOMARD HOMARD : implementation of HOMARD idl descriptions // -// Copyright (C) 2011-2012 CEA/DEN, EDF R&D +// Copyright (C) 2011-2013 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -19,67 +19,102 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -#include +// Pilote l'ecriture du fichier de configuration pour lancer l'execution de HOMARD + +#include +#ifndef WIN32 #include +#endif #include +#include "HomardDriver.hxx" #include "Utils_SALOME_Exception.hxx" #include "utilities.h" -#include "HomardDriver.hxx" //============================================================================= //============================================================================= HomardDriver::HomardDriver(const std::string siter, const std::string siterp1): _HOMARD_Exec( "" ), _NomDir( "" ), _NomFichierConfBase( "HOMARD.Configuration" ), - _NomFichierConf( "" ), _siter( "" ), _siterp1( "" ), + _NomFichierConf( "" ), _NomFichierDonn( "" ), _siter( "" ), _siterp1( "" ), _Texte( "" ), _bLu( false ) { + MESSAGE("siter = "< _HOMARD_Exec ="<<_HOMARD_Exec) ; // _siter = siter ; _siterp1 = siterp1 ; } - //============================================================================= //============================================================================= HomardDriver::~HomardDriver() { } - -////============================================================================= -void HomardDriver::TexteInit( const std::string DirCompute, const std::string DirComputePa, const std::string MessFile ) +//=============================================================================== +// A. Generalites +//=============================================================================== +void HomardDriver::TexteInit( const std::string DirCompute, const std::string LogFile, const std::string Langue ) +{ + MESSAGE("TexteInit, DirCompute ="<= 0 ) { std::stringstream saux1 ; saux1 << Rank ; @@ -541,8 +553,7 @@ void HomardDriver::TexteField( const std::string FieldName, const std::string Fi { std::stringstream saux1 ; saux1 << ThreshR ; - saux2 = saux1.str() ; - _Texte += "Seuil" + saux + " " + saux2 + "\n" ; + _Texte += "Seuil" + saux + " " + saux1.str() + "\n" ; } // saux = " " ; @@ -558,8 +569,7 @@ void HomardDriver::TexteField( const std::string FieldName, const std::string Fi { std::stringstream saux1 ; saux1 << ThreshC ; - saux2 = saux1.str() ; - _Texte += "Seuil" + saux + " " + saux2 + "\n" ; + _Texte += "Seuil" + saux + " " + saux1.str() + "\n" ; } // saux = " " ; @@ -584,8 +594,7 @@ void HomardDriver::TexteField( const std::string FieldName, const std::string Fi _Texte += "CCUsCmpI " + saux + "\n" ; } } - -////============================================================================= +//=============================================================================== void HomardDriver::TexteGroup( const std::string GroupName ) { MESSAGE("TexteGroup, GroupName = "<0 si pas de precision) +// Rank : numero d'ordre retenu +// +void HomardDriver::TexteFieldInterpNameType( int NumeChamp, const std::string FieldName, const std::string TypeInterp, int TimeStep, int Rank) { - MESSAGE("TexteFieldInterpName, NumeChamp = "< 0 ) @@ -825,8 +959,7 @@ void HomardDriver::TexteAdvanced( int Pyram, int NivMax, double DiamMin, int Ada _Texte += "# Diametre minimal\n" ; { std::stringstream saux1 ; saux1 << DiamMin ; - std::string saux2 = saux1.str() ; - _Texte += "DiametMi " + saux2 + "\n" ; + _Texte += "DiametMi " + saux1.str() + "\n" ; } } if ( AdapInit != 0 ) @@ -838,8 +971,7 @@ void HomardDriver::TexteAdvanced( int Pyram, int NivMax, double DiamMin, int Ada _Texte += " des regions sans indicateur\n" ; { std::stringstream saux1 ; saux1 << AdapInit ; - std::string saux2 = saux1.str() ; - _Texte += "AdapInit " + saux2 + "\n" ; + _Texte += "AdapInit " + saux1.str() + "\n" ; } } if ( LevelOutput != 0 ) @@ -848,37 +980,72 @@ void HomardDriver::TexteAdvanced( int Pyram, int NivMax, double DiamMin, int Ada _Texte += "NCNiveau NIVEAU\n" ; } } +//=============================================================================== +// G. Les messages +//=============================================================================== +void HomardDriver::TexteInfoCompute( int MessInfo ) +{ + MESSAGE("TexteAdvanced, MessInfo ="<