From 783d21c19b2b988c16a91dcadf294a885026c89a Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 14 Jan 2025 00:55:48 -0500 Subject: [PATCH] these functions do not create errors or throw exceptions --- src/library.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/library.cpp b/src/library.cpp index 71243611a2..17225fec40 100644 --- a/src/library.cpp +++ b/src/library.cpp @@ -2979,12 +2979,7 @@ double lammps_eval(void *handle, const char *expr) */ void lammps_compute_clearstep(void * handle) { auto lmp = (LAMMPS *) handle; - - BEGIN_CAPTURE - { - lmp->modify->clearstep_compute(); - } - END_CAPTURE + lmp->modify->clearstep_compute(); } /* ---------------------------------------------------------------------- */ @@ -3007,12 +3002,7 @@ void lammps_compute_clearstep(void * handle) { */ void lammps_compute_addstep_all(void * handle, bigint newstep) { auto lmp = (LAMMPS *) handle; - - BEGIN_CAPTURE - { - lmp->modify->addstep_compute_all(newstep); - } - END_CAPTURE + lmp->modify->addstep_compute_all(newstep); } /* ---------------------------------------------------------------------- */ @@ -3033,12 +3023,7 @@ void lammps_compute_addstep_all(void * handle, bigint newstep) { */ void lammps_compute_addstep(void * handle, bigint newstep) { auto lmp = (LAMMPS *) handle; - - BEGIN_CAPTURE - { - lmp->modify->addstep_compute(newstep); - } - END_CAPTURE + lmp->modify->addstep_compute(newstep); } // ----------------------------------------------------------------------