aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
diff options
context:
space:
mode:
authorGravatar Kevin Z. Zhu <86268612+KZhu-ME@users.noreply.github.com> 2021-11-30 09:02:58 -0800
committerGravatar GitHub <noreply@github.com> 2021-11-30 09:02:58 -0800
commit11a5bf5d56b38ed9d09fa12493bd513e5d5bee47 (patch)
treef12987aa07b8cced7a5a5d821c21e9a5598102a5 /Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
parent42737176f91c4dec9a3861f5a0a7b0f3aeaa0440 (diff)
downloadWarpX-11a5bf5d56b38ed9d09fa12493bd513e5d5bee47.tar.gz
WarpX-11a5bf5d56b38ed9d09fa12493bd513e5d5bee47.tar.zst
WarpX-11a5bf5d56b38ed9d09fa12493bd513e5d5bee47.zip
Fix segfault when importing _libwarpx without initializing WarpX (#2580)
* Added check for if warpx was initialized when calling finalize * Renamed to be warpx_initialized * Fixed reference to global variable Co-authored-by: Peter Scherpelz <31747262+peterscherpelz@users.noreply.github.com> * Changed global variable to member of libwarpx * Fixed syntax errors * Remove custom arg from argv to avoid parmparse error Co-authored-by: Peter Scherpelz <31747262+peterscherpelz@users.noreply.github.com>
Diffstat (limited to 'Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py')
-rw-r--r--Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py b/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
index b170c8808..a0402fec8 100644
--- a/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
+++ b/Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py
@@ -97,6 +97,7 @@ for arg in sys.argv:
if arg.startswith("amr.restart"):
restart_file_name = arg.split("=")[1]
sim.amr_restart = restart_file_name
+ sys.argv.remove(arg)
sim.add_diagnostic(field_diag)
sim.add_diagnostic(checkpoint)