From 11a5bf5d56b38ed9d09fa12493bd513e5d5bee47 Mon Sep 17 00:00:00 2001 From: "Kevin Z. Zhu" <86268612+KZhu-ME@users.noreply.github.com> Date: Tue, 30 Nov 2021 09:02:58 -0800 Subject: 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> --- Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Examples/Tests/restart/PICMI_inputs_runtime_component_analyze.py') 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) -- cgit v1.2.3