mirror of https://github.com/lammps/lammps.git
drop fftw_cleanup() completely
This commit is contained in:
parent
6f0a56c176
commit
fa7319e626
|
@ -19,9 +19,6 @@
|
|||
#include <cctype>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#ifdef FFT_FFTW3
|
||||
#include <fftw3.h>
|
||||
#endif
|
||||
#include "style_angle.h" // IWYU pragma: keep
|
||||
#include "style_atom.h" // IWYU pragma: keep
|
||||
#include "style_bond.h" // IWYU pragma: keep
|
||||
|
@ -1318,15 +1315,3 @@ void LAMMPS::print_config(FILE *fp)
|
|||
}
|
||||
fputs("\n\n",fp);
|
||||
}
|
||||
|
||||
void LAMMPS::cleanup() {
|
||||
#ifdef FFT_FFTW3
|
||||
// tell fftw3 to delete its global memory pool
|
||||
// and thus avoid bogus valgrind memory leak reports
|
||||
#ifdef FFT_SINGLE
|
||||
fftwf_cleanup();
|
||||
#else
|
||||
fftw_cleanup();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -79,7 +79,6 @@ class LAMMPS {
|
|||
void post_create();
|
||||
void init();
|
||||
void destroy();
|
||||
void cleanup();
|
||||
void print_config(FILE *); // print compile time settings
|
||||
|
||||
private:
|
||||
|
|
|
@ -59,7 +59,6 @@ int main(int argc, char **argv)
|
|||
#else
|
||||
LAMMPS *lammps = new LAMMPS(argc,argv,MPI_COMM_WORLD);
|
||||
lammps->input->file();
|
||||
lammps->cleanup();
|
||||
delete lammps;
|
||||
#endif
|
||||
MPI_Barrier(MPI_COMM_WORLD);
|
||||
|
|
Loading…
Reference in New Issue