remove rarely working hack

This commit is contained in:
Axel Kohlmeyer
2025-04-07 22:48:44 -04:00
parent b6dae216d3
commit c9f25a69e5

View File

@ -21,10 +21,6 @@
#include <mpi.h>
#include <new>
#if defined(LAMMPS_TRAP_FPE) && defined(_GNU_SOURCE)
#include <fenv.h>
#endif
// import MolSSI Driver Interface library
#if defined(LMP_MDI)
#include <mdi.h>
@ -62,17 +58,6 @@ int main(int argc, char **argv)
if (MDI_MPI_get_world_comm(&lammps_comm)) MPI_Abort(MPI_COMM_WORLD, 1);
#endif
#if defined(LAMMPS_TRAP_FPE) && defined(_GNU_SOURCE)
// enable trapping selected floating point exceptions.
// this uses GNU extensions and is only tested on Linux
// therefore we make it depend on -D_GNU_SOURCE, too.
fesetenv(FE_NOMASK_ENV);
fedisableexcept(FE_ALL_EXCEPT);
feenableexcept(FE_DIVBYZERO);
feenableexcept(FE_INVALID);
feenableexcept(FE_OVERFLOW);
#endif
try {
auto lammps = new LAMMPS(argc, argv, lammps_comm);
lammps->input->file();