Commit ebca76c3 authored by Cyrille Bonamy's avatar Cyrille Bonamy
Browse files

clean cpp src

parent d0742fedbeae
SINGLE_PREC:=no
OMP:=no
CUDA:=no
PFFT:=yes
PFFT:=no
P3DFFT:=yes
LD:=mpic++
CC:=mpic++
FLAGS:= #-g -O0 -Wall
FLAGS:= -g -O0 -Wall
LDFLAGS:=
LIBS:= -ldl -lhwloc -lm -lgfortran
......
......@@ -37,7 +37,6 @@ FFT3DMPIWithFFTW1D::FFT3DMPIWithFFTW1D(int argN0, int argN1, int argN2):
if (((nX0loc == 0) || (nKxloc == 0)) and (rank == 0))
{
cout << "Warning: number of mpi processus not coherent with dimension of the problem!" << endl;
exit;
}
/* This 3D fft is transposed */
......@@ -186,7 +185,6 @@ myreal FFT3DMPIWithFFTW1D::compute_energy_from_K(mycomplex* fieldK)
myreal energy_loc = 0;
myreal energy_tmp = 0;
myreal energy;
mycomplex toto = 0;
// modes i0 = iKx = 0
i0 = 0;
for (i1=0; i1<nK1; i1++)
......
......@@ -6,9 +6,8 @@ FFT3DMPIWithP3DFFT::FFT3DMPIWithP3DFFT(int argN0, int argN1, int argN2):
{
struct timeval start_time, end_time;
double total_usecs;
int irank;
int ndim, conf;
int conf;
int memsize[3];
int istart[3],isize[3],iend[3];
int fstart[3],fsize[3],fend[3];
......@@ -16,7 +15,6 @@ FFT3DMPIWithP3DFFT::FFT3DMPIWithP3DFFT(int argN0, int argN1, int argN2):
this->_init();
ndim=2;
nz = N0;
ny = N1;
nx = N2;
......
......@@ -106,7 +106,7 @@ int main(int argc, char **argv)
s2.test();
s2.bench(nt, times);
s2.bench(nt, times);
s2.destroy();
// s2.destroy();
#endif
#ifdef PFFT
FFT3DMPIWithPFFT s3(N0, N1, N2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment