From: michael Date: Fri, 10 Dec 2021 13:40:43 +0000 (+0100) Subject: Improved message display X-Git-Tag: V9_8_0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9bb102848d337ac23224c4edabb87bb38eaacfad;p=tools%2Fsolverlab.git Improved message display --- diff --git a/CoreFlows/Models/src/SinglePhase.cxx b/CoreFlows/Models/src/SinglePhase.cxx index acf6566..759182d 100755 --- a/CoreFlows/Models/src/SinglePhase.cxx +++ b/CoreFlows/Models/src/SinglePhase.cxx @@ -49,10 +49,13 @@ SinglePhase::SinglePhase(phaseType fluid, pressureEstimate pEstimate, int dim, b _fluides[0]= new StiffenedGas(594.,_Pref,_Tref,1.6e6, 621.,3100.); //stiffened gas law for water at pressure 155 bar, and temperature 345°C } } + + _fileName = "SolverlabSinglePhase"; + PetscPrintf(PETSC_COMM_WORLD,"\n Navier-Stokes equations for single phase flow\n"); } void SinglePhase::initialize(){ - cout<<"Initialising the Navier-Stokes model"<(_nVar,0);//Not to be confused with _GravityField3d (size _Ndim). _gravite (size _Nvar) is usefull for dealing with source term and implicitation of gravity vector @@ -2729,6 +2732,9 @@ void SinglePhase::getDensityDerivatives( double pressure, double temperature, do } } void SinglePhase::save(){ + PetscPrintf(PETSC_COMM_WORLD,"Saving numerical results at time step number %d \n\n", _nbTimeStep); + *_runLogFile<< "Saving numerical results at time step number "<< _nbTimeStep << endl<(_nVar,0);//Not to be confused with _GravityField3d (size _Ndim). _gravite (size _Nvar) is usefull for dealing with source term and implicitation of gravity vector @@ -1222,6 +1222,9 @@ void SinglePhaseStaggered::getDensityDerivatives( double pressure, double temper } } void SinglePhaseStaggered::save(){ + PetscPrintf(PETSC_COMM_WORLD,"Saving numerical results at time step number %d \n\n", _nbTimeStep); + *_runLogFile<< "Saving numerical results at time step number "<< _nbTimeStep << endl<