From: michael Date: Sat, 28 Nov 2020 23:07:26 +0000 (+0100) Subject: Do not compute condition number X-Git-Tag: V9_7_0~131 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e11250b0e68adab64ac7934144a4fa9be9239451;p=tools%2Fsolverlab.git Do not compute condition number --- diff --git a/CDMATH/tests/validation/scripts/WaveSystemUpwind/WaveSystemUpwind.py b/CDMATH/tests/validation/scripts/WaveSystemUpwind/WaveSystemUpwind.py old mode 100644 new mode 100755 index fe364e9..422315c --- a/CDMATH/tests/validation/scripts/WaveSystemUpwind/WaveSystemUpwind.py +++ b/CDMATH/tests/validation/scripts/WaveSystemUpwind/WaveSystemUpwind.py @@ -132,7 +132,7 @@ def jacobianMatrices(normal, coeff,scaling): A[0,i+1]= c0*normal[i]*coeff A[i+1,0]= c0*normal[i]*coeff - return (A-absA)/2 + return (A-absA)*0.5 def computeDivergenceMatrix(my_mesh,nbVoisinsMax,dt,scaling,test_bc): @@ -294,7 +294,6 @@ def WaveSystemVF(ntmax, tmax, cfl, my_mesh, output_freq, meshName, resolution,sc LS=cdmath.LinearSolver(divMat,Un+S*dt,iterGMRESMax, precision, "GMRES","ILU") else: LS=cdmath.LinearSolver(divMat,Vn+S*dt,iterGMRESMax, precision, "GMRES","ILU") - LS.setComputeConditionNumber() test_desc["Linear_solver_algorithm"]=LS.getNameOfMethod() test_desc["Linear_solver_preconditioner"]=LS.getNameOfPc() @@ -336,7 +335,6 @@ def WaveSystemVF(ntmax, tmax, cfl, my_mesh, output_freq, meshName, resolution,sc test_desc["Linear_system_max_actual_iterations_number"]=max(LS.getNumberOfIter(),test_desc["Linear_system_max_actual_iterations_number"]) test_desc["Linear_system_max_actual_error"]=max(LS.getResidu(),test_desc["Linear_system_max_actual_error"]) - test_desc["Linear_system_max_actual_condition number"]=max(LS.getConditionNumber(),test_desc["Linear_system_max_actual_condition number"]) else: dUn=divMat*Un-S*dt