From 101105c7aecf05f94ff04fe153e4e158c6cea6b5 Mon Sep 17 00:00:00 2001 From: Rex Zhe Li Date: Mon, 13 Sep 2021 06:11:22 -0400 Subject: [PATCH] print out info on what tolerance_method is used --- models/PoissonSolver.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/models/PoissonSolver.cpp b/models/PoissonSolver.cpp index 6d14f671..7c2a9bec 100644 --- a/models/PoissonSolver.cpp +++ b/models/PoissonSolver.cpp @@ -124,6 +124,15 @@ void ScaLBL_Poisson::ReadParams(string filename){ if (rank==0) printf("LB-Poisson Solver: steady-state MaxTimeStep = %i; steady-state tolerance = %.3g \n", timestepMax,tolerance); if (rank==0) printf(" LB relaxation tau = %.5g \n", tau); if (rank==0) printf("***********************************************************************************\n"); + if (tolerance_method.compare("sum")==0){ + if (rank==0) printf("LB-Poisson Solver: Use averaged MSE to check solution convergence.\n"); + } + else if (tolerance_method.compare("max")==0){ + if (rank==0) printf("LB-Poisson Solver: Use maximum MSE to check solution convergence.\n"); + } + else{ + if (rank==0) printf("LB-Poisson Solver: tolerance_method=%s cannot be identified!\n",tolerance_method.c_str()); + } switch (BoundaryConditionSolid){ case 1: