Commit c9992383 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

uses long double for p2p cutoff computations

parent 2c918198
......@@ -96,9 +96,9 @@ protected:
std::array<real_number,3> spatial_box_width;
std::array<real_number,3> spatial_box_offset;
const real_number cutoff_radius_compute;
const long double cutoff_radius_compute;
const int nb_cells_factor;
const real_number cutoff_radius;
const long double cutoff_radius;
std::array<long int,3> nb_cell_levels;
template <class DataType, int sizeElement>
......@@ -570,8 +570,14 @@ public:
MPI_INT,
0,
MPI_COMM_WORLD);
MPI_Gather(willsend.data(), nb_processes_involved, MPI_INT, willsendall.data(),
nb_processes_involved, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Gather(willsend.data(),
nb_processes_involved,
MPI_INT,
willsendall.data(),
nb_processes_involved,
MPI_INT,
0,
MPI_COMM_WORLD);
for(int idxproc = 0 ; idxproc < nb_processes_involved ; ++idxproc){
for(int idxtest = 0 ; idxtest < nb_processes_involved ; ++idxtest){
......@@ -581,10 +587,22 @@ public:
}
}
else{
MPI_Gather(willrecv.data(), nb_processes_involved, MPI_INT, nullptr,
0, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Gather(willsend.data(), nb_processes_involved, MPI_INT, nullptr,
0, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Gather(willrecv.data(),
nb_processes_involved,
MPI_INT,
nullptr,
0,
MPI_INT,
0,
MPI_COMM_WORLD);
MPI_Gather(willsend.data(),
nb_processes_involved,
MPI_INT,
nullptr,
0,
MPI_INT,
0,
MPI_COMM_WORLD);
}
}
#endif
......
Supports Markdown
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