these functions do not create errors or throw exceptions

This commit is contained in:
Axel Kohlmeyer
2025-01-14 00:55:48 -05:00
parent a50343077d
commit 783d21c19b

View File

@ -2979,13 +2979,8 @@ double lammps_eval(void *handle, const char *expr)
*/ */
void lammps_compute_clearstep(void * handle) { void lammps_compute_clearstep(void * handle) {
auto lmp = (LAMMPS *) handle; auto lmp = (LAMMPS *) handle;
BEGIN_CAPTURE
{
lmp->modify->clearstep_compute(); lmp->modify->clearstep_compute();
} }
END_CAPTURE
}
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
@ -3007,13 +3002,8 @@ void lammps_compute_clearstep(void * handle) {
*/ */
void lammps_compute_addstep_all(void * handle, bigint newstep) { void lammps_compute_addstep_all(void * handle, bigint newstep) {
auto lmp = (LAMMPS *) handle; auto lmp = (LAMMPS *) handle;
BEGIN_CAPTURE
{
lmp->modify->addstep_compute_all(newstep); lmp->modify->addstep_compute_all(newstep);
} }
END_CAPTURE
}
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
/** Add next timestep to compute if it has been invoked in the current timestep /** Add next timestep to compute if it has been invoked in the current timestep
@ -3033,13 +3023,8 @@ void lammps_compute_addstep_all(void * handle, bigint newstep) {
*/ */
void lammps_compute_addstep(void * handle, bigint newstep) { void lammps_compute_addstep(void * handle, bigint newstep) {
auto lmp = (LAMMPS *) handle; auto lmp = (LAMMPS *) handle;
BEGIN_CAPTURE
{
lmp->modify->addstep_compute(newstep); lmp->modify->addstep_compute(newstep);
} }
END_CAPTURE
}
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// Library functions for scatter/gather operations of data // Library functions for scatter/gather operations of data