aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/pass_mpi_communicator/analysis.py
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2022-03-03 14:04:25 -0800
committerGravatar GitHub <noreply@github.com> 2022-03-03 14:04:25 -0800
commit795c872e8087f077fca105129dd44cddd4d16820 (patch)
treeac913a736a4393af9bf90d9320407739a0133e93 /Examples/Tests/pass_mpi_communicator/analysis.py
parent5d5c121c7681ac47595f5681eb014d8197d0217a (diff)
downloadWarpX-795c872e8087f077fca105129dd44cddd4d16820.tar.gz
WarpX-795c872e8087f077fca105129dd44cddd4d16820.tar.zst
WarpX-795c872e8087f077fca105129dd44cddd4d16820.zip
file_min_digits: 5->6 (#2385)
* file_min_digits: 5->6 100k+ step runs are quite common in WarpX. To simplify post-processing scripts, increase the default to pad to 6 digits. This might break some hand-written scripts that use `?????` wild-cards over `*` wildcards in regex and thus need to be updated. But it at the same time simplifies regexes for analysis of data series and listing of such file series. * Update Scripts to Handle New File Names * Fix CI Test pml_x_psatd * Fix CI Test divb_cleaning_3d * Fix CI Tests with EB Support * Fix CI Tests with RZ Support * Fix CI Tests with PICMI Support * Use glob in Analysis of Collision Tests * Use rstrip in Analysis of Collision Tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix CI Tests for Langmuir_multi_1d/psatd * Fix CI Tests for LaserInjection_1d * Checkpoint-Restart Tests: 5 Digits `regtest.py` in `regression_testing` hard-codes 5 digits: ```diff --- a/regtest.py +++ b/regtest.py @@ -734,7 +734,7 @@ def test_suite(argv): shutil.move(test.diffDir, orig_diff_dir) # get the file number to restart from - restart_file = "%s_chk%5.5d" % (test.name, test.restartFileNum) + restart_file = "%s_chk%6.6d" % (test.name, test.restartFileNum) ``` * PICMI Restart Tests: `warpx_file_min_digits = 5` Same as other CI restart tests: hard-coded value in regression suite makes this necessary. X-ref: https://github.com/AMReX-Codes/regression_testing/issues/119 Co-authored-by: Edoardo Zoni <ezoni@lbl.gov> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Examples/Tests/pass_mpi_communicator/analysis.py')
-rwxr-xr-xExamples/Tests/pass_mpi_communicator/analysis.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Examples/Tests/pass_mpi_communicator/analysis.py b/Examples/Tests/pass_mpi_communicator/analysis.py
index db23c7047..9a6229431 100755
--- a/Examples/Tests/pass_mpi_communicator/analysis.py
+++ b/Examples/Tests/pass_mpi_communicator/analysis.py
@@ -17,12 +17,12 @@ sys.path.insert(1, '../../../../warpx/Regression/Checksum/')
import checksum
# this will be the name of the first plot file
-fn1 = "Python_pass_mpi_comm_plt1_00010"
+fn1 = "Python_pass_mpi_comm_plt1_000010"
# second plot file
-fn2 = "Python_pass_mpi_comm_plt2_00010"
+fn2 = "Python_pass_mpi_comm_plt2_000010"
-test_name1 = fn1[:-9]
-test_name2 = fn2[:-9]
+test_name1 = fn1[:-10]
+test_name2 = fn2[:-10]
checksum1 = checksum.Checksum(test_name1, fn1, do_fields=True,