From 45e90ac2f86ae083a8582676bbc0f8af84b879e0 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 8 Aug 2024 04:37:59 -0400 Subject: [PATCH] must not access thermo class, if not yet created --- src/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.cpp b/src/input.cpp index 826b1821d5..c3409f13ff 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -884,7 +884,7 @@ int Input::execute_command() void Input::clear() { if (narg > 0) error->all(FLERR,"Illegal clear command: unexpected arguments but found {}", narg); - output->thermo->set_line(-1); + if (output->thermo) output->thermo->set_line(-1); lmp->destroy(); lmp->create(); lmp->post_create();