aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/PML
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Tests/PML')
-rwxr-xr-xExamples/Tests/PML/analysis_pml_ckc.py6
-rwxr-xr-xExamples/Tests/PML/analysis_pml_psatd.py7
-rwxr-xr-xExamples/Tests/PML/analysis_pml_yee.py7
3 files changed, 14 insertions, 6 deletions
diff --git a/Examples/Tests/PML/analysis_pml_ckc.py b/Examples/Tests/PML/analysis_pml_ckc.py
index 74faab3d7..c4b9d5464 100755
--- a/Examples/Tests/PML/analysis_pml_ckc.py
+++ b/Examples/Tests/PML/analysis_pml_ckc.py
@@ -8,11 +8,13 @@
# License: BSD-3-Clause-LBNL
+import os
import sys
-import yt ; yt.funcs.mylog.setLevel(0)
+
import numpy as np
-import os
import scipy.constants as scc
+
+import yt ; yt.funcs.mylog.setLevel(0)
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
import checksumAPI
diff --git a/Examples/Tests/PML/analysis_pml_psatd.py b/Examples/Tests/PML/analysis_pml_psatd.py
index 9710ee4e9..287ce1e29 100755
--- a/Examples/Tests/PML/analysis_pml_psatd.py
+++ b/Examples/Tests/PML/analysis_pml_psatd.py
@@ -7,11 +7,13 @@
#
# License: BSD-3-Clause-LBNL
+import os
import sys
-import yt ; yt.funcs.mylog.setLevel(0)
+
import numpy as np
-import os
import scipy.constants as scc
+
+import yt ; yt.funcs.mylog.setLevel(0)
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
import checksumAPI
@@ -67,6 +69,7 @@ assert(reflectivity < reflectivity_max)
# Check restart data v. original data
sys.path.insert(0, '../../../../warpx/Examples/')
from analysis_default_restart import check_restart
+
check_restart(filename)
test_name = os.path.split(os.getcwd())[1]
diff --git a/Examples/Tests/PML/analysis_pml_yee.py b/Examples/Tests/PML/analysis_pml_yee.py
index 61527ef2d..f10b281c5 100755
--- a/Examples/Tests/PML/analysis_pml_yee.py
+++ b/Examples/Tests/PML/analysis_pml_yee.py
@@ -8,11 +8,13 @@
# License: BSD-3-Clause-LBNL
+import os
import sys
-import yt ; yt.funcs.mylog.setLevel(0)
+
import numpy as np
-import os
import scipy.constants as scc
+
+import yt ; yt.funcs.mylog.setLevel(0)
sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
import checksumAPI
@@ -55,6 +57,7 @@ assert( error_rel < tolerance_rel )
# Check restart data v. original data
sys.path.insert(0, '../../../../warpx/Examples/')
from analysis_default_restart import check_restart
+
check_restart(filename)
test_name = os.path.split(os.getcwd())[1]