From 2a7deccdb92c35850508bc6d79cfeb402bebdb52 Mon Sep 17 00:00:00 2001 From: Boris Kaus <61824822+boriskaus@users.noreply.github.com> Date: Thu, 11 Jan 2024 17:52:22 +0100 Subject: [PATCH] Delete test/t4_Loc/test_4_localization.py no longer needed as we use a Julia testing frame --- test/t4_Loc/test_4_localization.py | 82 ------------------------------ 1 file changed, 82 deletions(-) delete mode 100644 test/t4_Loc/test_4_localization.py diff --git a/test/t4_Loc/test_4_localization.py b/test/t4_Loc/test_4_localization.py deleted file mode 100644 index 9d49f9eb..00000000 --- a/test/t4_Loc/test_4_localization.py +++ /dev/null @@ -1,82 +0,0 @@ - -import os -import pyTestHarness.unittest as pth -import pyTestHarness.launcher as launch -import re - - -def test_a(): - - # Test visco-elasto-plastic localization case on 4 cores, using optimized LaMEM - ranks = 4 - launch = '../bin/opt/LaMEM -ParamFile ./t4_Loc/localization.dat -nstep_max 20' # This must be a relative path with respect to runLaMEM_Tests.py - expected_file = 't4_Loc/Loc1_a_MUMPS_VEP_opt-p4.expected' - - def comparefunc(unittest): - - key = re.escape("|Div|_inf") - unittest.compareFloatingPoint(key,1e-7) - - key = re.escape("|Div|_2") - unittest.compareFloatingPoint(key,1e-5) - - key = re.escape("|mRes|_2") - unittest.compareFloatingPoint(key,1e-4) - - # Create unit test object - ex1 = pth.pthUnitTest('t4_Loc1_a_MUMPS_VEP_opt',ranks,launch,expected_file) - ex1.setVerifyMethod(comparefunc) - ex1.appendKeywords('@') - - return(ex1) - -def test_b(): - - # Test visco-plastic localization case with regulariation on 4 cores, using optimized LaMEM - ranks = 4 - launch = '../bin/opt/LaMEM -ParamFile ./t4_Loc/localization_eta_min_reg.dat -nstep_max 20' # This must be a relative path with respect to runLaMEM_Tests.py - expected_file = 't4_Loc/Loc1_b_MUMPS_VEP_Reg_opt-p4.expected' - - def comparefunc(unittest): - - key = re.escape("|Div|_inf") - unittest.compareFloatingPoint(key,1e-7) - - key = re.escape("|Div|_2") - unittest.compareFloatingPoint(key,1e-5) - - key = re.escape("|mRes|_2") - unittest.compareFloatingPoint(key,1e-4) - - # Create unit test object - ex1 = pth.pthUnitTest('t4_Loc1_b_MUMPS_VEP_Reg_opt',ranks,launch,expected_file) - ex1.setVerifyMethod(comparefunc) - ex1.appendKeywords('@') - - return(ex1) - - -def test_c(): - - # Test visco-elasto-plastic localization case on 1 core, using optimized LaMEM - ranks = 1 - launch = '../bin/opt/LaMEM -ParamFile ./t4_Loc/localization.dat -nstep_max 20' # This must be a relative path with respect to runLaMEM_Tests.py - expected_file = 't4_Loc/Loc1_c_Direct_VEP_opt-p1.expected' - - def comparefunc(unittest): - - key = re.escape("|Div|_inf") - unittest.compareFloatingPoint(key,1e-7) - - key = re.escape("|Div|_2") - unittest.compareFloatingPoint(key,1e-5) - - key = re.escape("|mRes|_2") - unittest.compareFloatingPoint(key,1e-4) - - # Create unit test object - ex1 = pth.pthUnitTest('t4_Loc1_c_Direct_VEP_opt',ranks,launch,expected_file) - ex1.setVerifyMethod(comparefunc) - ex1.appendKeywords('@') - - return(ex1)