]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Do not compute condition number
authormichael <michael@localhost.localdomain>
Sat, 28 Nov 2020 23:07:26 +0000 (00:07 +0100)
committermichael <michael@localhost.localdomain>
Sat, 28 Nov 2020 23:07:26 +0000 (00:07 +0100)
CDMATH/tests/validation/scripts/WaveSystemUpwind/WaveSystemUpwind.py [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index fe364e9..422315c
@@ -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