Skip to content

Commit

Permalink
Update CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jan 18, 2025
1 parent b4788fc commit 6a74822
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Examples/Tests/pec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ add_warpx_test(
2 # dims
2 # nprocs
inputs_test_2d_pec_field_insulator_implicit # inputs
analysis_pec_insulator_implicit.py # analysis
diags/diag1000020 # output
"analysis_pec_insulator_implicit.py diags/diag1000020" # analysis
"analysis_default_regression.py --path diags/diag1000020" # checksum
OFF # dependency
)

Expand All @@ -56,7 +56,7 @@ add_warpx_test(
2 # dims
2 # nprocs
inputs_test_2d_pec_field_insulator_implicit_restart # inputs
analysis_pec_insulator_implicit.py # analysis
diags/diag1000020 # output
"analysis_pec_insulator_implicit.py diags/diag1000020" # analysis
"analysis_default_regression.py --path diags/diag1000020" # checksum
OFF # dependency
)
10 changes: 0 additions & 10 deletions Examples/Tests/pec/analysis_pec_insulator_implicit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# should be the same as the amount of energy pushed in from the boundary.
# This is checked using the FieldEnergy and FieldPoyntingFlux reduced
# diagnostics.
import os
import sys

import matplotlib
Expand All @@ -25,9 +24,6 @@
import matplotlib.pyplot as plt
import numpy as np

sys.path.insert(1, "../../../../warpx/Regression/Checksum/")
from checksumAPI import evaluate_checksum

# this will be the name of the plot file
fn = sys.argv[1]

Expand Down Expand Up @@ -59,9 +55,3 @@
print(f"tolerance_rel = {tolerance_rel}")

assert energy_difference_fraction < tolerance_rel

# compare checksums
evaluate_checksum(
test_name=os.path.split(os.getcwd())[1],
output_file=sys.argv[1],
)

0 comments on commit 6a74822

Please sign in to comment.