Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TurTLE
TurTLE
Commits
c9992383
Commit
c9992383
authored
Feb 26, 2021
by
Cristian Lalescu
Browse files
uses long double for p2p cutoff computations
parent
2c918198
Changes
1
Hide whitespace changes
Inline
Side-by-side
cpp/particles/p2p/p2p_distr_mpi.hpp
View file @
c9992383
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment