GADGET-4
pm.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * \copyright This file is part of the GADGET4 N-body/SPH code developed
3  * \copyright by Volker Springel. Copyright (C) 2014-2020 by Volker Springel
4  * \copyright (vspringel@mpa-garching.mpg.de) and all contributing authors.
5  *******************************************************************************/
6 
12 #ifndef PM_H
13 #define PM_H
14 
15 #if defined(PMGRID) || defined(NGENIC)
16 
17 #include <fftw3.h>
18 
19 typedef ptrdiff_t fft_ptrdiff_t;
20 
21 #ifdef DOUBLEPRECISION_FFTW
22 typedef double fft_real;
23 typedef fftw_complex fft_complex;
24 #else
25 typedef float fft_real;
26 typedef fftwf_complex fft_complex;
27 #endif
28 
29 #include "../mpi_utils/setcomm.h"
30 #include "../pm/pm_nonperiodic.h"
31 #include "../pm/pm_periodic.h"
32 
33 class pm : public pm_periodic, public pm_nonperiodic
34 {
35  public:
36  pm(MPI_Comm comm) : setcomm(comm), pm_periodic(comm), pm_nonperiodic(comm) {}
37 };
38 
39 #endif
40 
41 #endif