Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
William Xu
SPINS_main
Commits
03e8f292
Commit
03e8f292
authored
Jun 29, 2017
by
Christopher Subich
Browse files
Instrument MPI for apply_operator
parent
6020f583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/multigrid.cpp
src/multigrid.cpp
+2
-0
No files found.
src/multigrid.cpp
View file @
03e8f292
...
...
@@ -746,12 +746,14 @@ void MG_Solver::apply_operator(Array<double,2> & u, Array<double,2> & f) {
}
/* Now, send left points, and receive right points */
// fprintf(stderr,"%d sending left (%d, %d)\n",myrank,lefty,righty);
timing_push
(
"apply_op_mpi"
);
MPI_Sendrecv
(
&
u
(
u
.
lbound
(
firstDim
),
0
),
size_z
,
MPI_DOUBLE
,
lefty
,
0
,
uin_right
.
data
(),
size_z
,
MPI_DOUBLE
,
righty
,
0
,
my_comm
,
&
ignoreme
);
/* And vice versa -- send right, receive left */
// fprintf(stderr,"%d sending right (%d, %d)\n",myrank,righty,lefty);
MPI_Sendrecv
(
&
u
(
u
.
ubound
(
firstDim
),
0
),
size_z
,
MPI_DOUBLE
,
righty
,
0
,
uin_left
.
data
(),
size_z
,
MPI_DOUBLE
,
lefty
,
0
,
my_comm
,
&
ignoreme
);
timing_pop
();
// fprintf(stderr,"%d received:\n");
// fprintf(stderr,"%d done\n",myrank);
}
...
...
Write
Preview
Markdown
is supported
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