Skip to content
Snippets Groups Projects
Commit 608e3451 authored by Tom Fischer's avatar Tom Fischer Committed by GitHub
Browse files

Merge pull request #1623 from TomFischer/CleanupOutputMessages

Cleanup output messages
parents af65aeab 9b8dc9b1
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ bool PETScLinearSolver::solve(PETScMatrix& A, PETScVector &b, PETScVector &x) ...@@ -102,7 +102,7 @@ bool PETScLinearSolver::solve(PETScMatrix& A, PETScVector &b, PETScVector &x)
PetscInt its; PetscInt its;
KSPGetIterationNumber(_solver, &its); KSPGetIterationNumber(_solver, &its);
PetscPrintf(PETSC_COMM_WORLD,"\nConvergence in %d iterations.\n", its); PetscPrintf(PETSC_COMM_WORLD,"\nconverged in %d iterations.", its);
PetscPrintf(PETSC_COMM_WORLD,"\n================================================\n"); PetscPrintf(PETSC_COMM_WORLD,"\n================================================\n");
} }
else if(reason == KSP_DIVERGED_ITS) else if(reason == KSP_DIVERGED_ITS)
...@@ -140,7 +140,7 @@ bool PETScLinearSolver::solve(PETScMatrix& A, PETScVector &b, PETScVector &x) ...@@ -140,7 +140,7 @@ bool PETScLinearSolver::solve(PETScMatrix& A, PETScVector &b, PETScVector &x)
#ifdef TEST_MEM_PETSC #ifdef TEST_MEM_PETSC
PetscMemoryGetCurrentUsage(&mem2); PetscMemoryGetCurrentUsage(&mem2);
PetscPrintf(PETSC_COMM_WORLD, "###Memory usage by solver. Before :%f After:%f Increase:%d\n", mem1, mem2, (int)(mem2 - mem1)); PetscPrintf(PETSC_COMM_WORLD, "###Memory usage by solver. Before: %f After: %f Increase: %d\n", mem1, mem2, (int)(mem2 - mem1));
#endif #endif
_elapsed_ctime += wtimer.elapsed(); _elapsed_ctime += wtimer.elapsed();
......
...@@ -55,9 +55,6 @@ class PETScLinearSolver ...@@ -55,9 +55,6 @@ class PETScLinearSolver
~PETScLinearSolver() ~PETScLinearSolver()
{ {
INFO("Time elapsed in PETSc ksp solver for equation: %g s.\n",
_elapsed_ctime);
KSPDestroy(&_solver); KSPDestroy(&_solver);
} }
......
...@@ -79,18 +79,18 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::read( ...@@ -79,18 +79,18 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::read(
if(!BaseLib::IsFileExisting(fname_new)) // doesn't exist binary file. if(!BaseLib::IsFileExisting(fname_new)) // doesn't exist binary file.
{ {
INFO("-->Reading ASCII mesh file ..."); INFO("Reading ASCII mesh file ...");
mesh = readASCII(file_name_base); mesh = readASCII(file_name_base);
} }
else else
{ {
INFO("-->Reading binary mesh file ..."); INFO("Reading binary mesh file ...");
mesh = readBinary(file_name_base); mesh = readBinary(file_name_base);
} }
INFO("\t\n>>Total elapsed time in reading mesh:%f s\n", timer.elapsed()); INFO("[time] Reading the mesh took %f s.", timer.elapsed());
MPI_Barrier(_mpi_comm); MPI_Barrier(_mpi_comm);
...@@ -353,8 +353,6 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::readASCII( ...@@ -353,8 +353,6 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::readASCII(
std::vector<unsigned long> glb_node_ids; std::vector<unsigned long> glb_node_ids;
std::vector<MeshLib::Element*> mesh_elems; std::vector<MeshLib::Element*> mesh_elems;
INFO("-->Reading partitioned mesh.");
for(int i = 0; i < _mpi_comm_size; i++) for(int i = 0; i < _mpi_comm_size; i++)
{ {
if(_mpi_rank == 0) if(_mpi_rank == 0)
......
...@@ -111,8 +111,7 @@ bool NonlinearSolver<NonlinearSolverTag::Picard>::solve( ...@@ -111,8 +111,7 @@ bool NonlinearSolver<NonlinearSolverTag::Picard>::solve(
case IterationResult::REPEAT_ITERATION: case IterationResult::REPEAT_ITERATION:
INFO( INFO(
"Picard: The postIteration() hook decided that this " "Picard: The postIteration() hook decided that this "
"iteration" "iteration has to be repeated.");
" has to be repeated.");
continue; // That throws the iteration result away. continue; // That throws the iteration result away.
} }
} }
......
...@@ -122,7 +122,8 @@ void Output::doOutputAlways(Process const& process, ...@@ -122,7 +122,8 @@ void Output::doOutputAlways(Process const& process,
process.getSecondaryVariables(), process_output); process.getSecondaryVariables(), process_output);
spd.pvd_file.addVTUFile(output_file_name, t); spd.pvd_file.addVTUFile(output_file_name, t);
INFO("[time] Output took %g s.", time_output.elapsed()); INFO("[time] Output of timestep %d took %g s.", timestep,
time_output.elapsed());
} }
void Output::doOutput(Process const& process, void Output::doOutput(Process const& process,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment