From: michael Date: Wed, 24 Nov 2021 15:20:15 +0000 (+0100) Subject: Improved message displays X-Git-Tag: V9_8_0~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9937a961d206f633ee8e2ca7ea05688fd0cfdc8;p=tools%2Fsolverlab.git Improved message displays --- diff --git a/CoreFlows/Models/src/ProblemCoreFlows.cxx b/CoreFlows/Models/src/ProblemCoreFlows.cxx index 5db6bde..99f8ca9 100755 --- a/CoreFlows/Models/src/ProblemCoreFlows.cxx +++ b/CoreFlows/Models/src/ProblemCoreFlows.cxx @@ -34,7 +34,7 @@ ProblemCoreFlows::ProblemCoreFlows(MPI_Comm comm) } MPI_Comm_rank(PETSC_COMM_WORLD,&_mpi_rank); MPI_Comm_size(PETSC_COMM_WORLD,&_mpi_size); - PetscPrintf(PETSC_COMM_WORLD,"Simulation on %d processors\n",_mpi_size);//Prints to standard out, only from the first processor in the communicator. Calls from other processes are ignored. + PetscPrintf(PETSC_COMM_WORLD,"\n Simulation on %d processors\n",_mpi_size);//Prints to standard out, only from the first processor in the communicator. Calls from other processes are ignored. PetscSynchronizedPrintf(PETSC_COMM_WORLD,"Processor [%d] ready for action\n",_mpi_rank);//Prints synchronized output from several processors. Output of the first processor is followed by that of the second, etc. PetscSynchronizedFlush(PETSC_COMM_WORLD,PETSC_STDOUT); @@ -561,7 +561,7 @@ bool ProblemCoreFlows::run() bool ok; // Is the time interval successfully solved ? _isStationary=false;//in case of a second run with a different physics or cfl - PetscPrintf(PETSC_COMM_WORLD,"Running test case %s\n",_fileName); + PetscPrintf(PETSC_COMM_WORLD,"Running test case %s\n",_fileName.c_str()); _runLogFile->open((_fileName+".log").c_str(), ios::out | ios::trunc);;//for creation of a log file to save the history of the simulation *_runLogFile<< "Running test case "<< _fileName<