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,12 +2979,7 @@ 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;
lmp->modify->clearstep_compute();
BEGIN_CAPTURE
{
lmp->modify->clearstep_compute();
}
END_CAPTURE
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
@ -3007,12 +3002,7 @@ 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;
lmp->modify->addstep_compute_all(newstep);
BEGIN_CAPTURE
{
lmp->modify->addstep_compute_all(newstep);
}
END_CAPTURE
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
@ -3033,12 +3023,7 @@ 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;
lmp->modify->addstep_compute(newstep);
BEGIN_CAPTURE
{
lmp->modify->addstep_compute(newstep);
}
END_CAPTURE
} }
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------