Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
139fe38b
Commit
139fe38b
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Only need to update h_max on the receiving side if the cell is active.
parent
253defb4
No related branches found
No related tags found
2 merge requests
!305
Add another communication sub-type for the gparts. Send the gparts when these tasks get enqueued.
,
!303
MPI send/recv fixes for inactive cells
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/runner.c
+3
-0
3 additions, 0 deletions
src/runner.c
src/scheduler.c
+7
-7
7 additions, 7 deletions
src/scheduler.c
with
10 additions
and
7 deletions
src/runner.c
+
3
−
0
View file @
139fe38b
...
...
@@ -1537,6 +1537,9 @@ void *runner_main(void *data) {
free
(
t
->
buff
);
}
else
if
(
t
->
subtype
==
task_subtype_xv
)
{
runner_do_recv_part
(
r
,
ci
,
1
);
/* Only need to update h_max if the cell has active particles */
}
else
if
(
t
->
subtype
==
task_subtype_rho
&&
cell_is_active
(
ci
,
e
))
{
runner_do_recv_part
(
r
,
ci
,
1
);
}
else
if
(
t
->
subtype
==
task_subtype_gpart
)
{
runner_do_recv_gpart
(
r
,
ci
,
1
);
}
...
...
This diff is collapsed.
Click to expand it.
src/scheduler.c
+
7
−
7
View file @
139fe38b
...
...
@@ -1202,9 +1202,9 @@ void scheduler_enqueue(struct scheduler *s, struct task *t) {
t
->
subtype
==
task_subtype_rho
)
{
err
=
MPI_Irecv
(
t
->
ci
->
parts
,
t
->
ci
->
count
,
part_mpi_type
,
t
->
ci
->
nodeID
,
t
->
flags
,
MPI_COMM_WORLD
,
&
t
->
req
);
// message( "receiving %i parts with tag=%i from %i to %i." ,
// t->ci->count , t->flags , t->ci->nodeID , s->nodeID );
// fflush(stdout);
// message( "receiving %i parts with tag=%i from %i to %i." ,
// t->ci->count , t->flags , t->ci->nodeID , s->nodeID );
// fflush(stdout);
}
else
if
(
t
->
subtype
==
task_subtype_gpart
)
{
err
=
MPI_Irecv
(
t
->
ci
->
gparts
,
t
->
ci
->
gcount
,
gpart_mpi_type
,
t
->
ci
->
nodeID
,
t
->
flags
,
MPI_COMM_WORLD
,
&
t
->
req
);
...
...
@@ -1237,10 +1237,10 @@ void scheduler_enqueue(struct scheduler *s, struct task *t) {
err
=
MPI_Isend
(
t
->
ci
->
parts
,
t
->
ci
->
count
,
part_mpi_type
,
t
->
cj
->
nodeID
,
t
->
flags
,
MPI_COMM_WORLD
,
&
t
->
req
);
// message( "sending %i parts with tag=%i from %i to %i." ,
// t->ci->count , t->flags , s->nodeID , t->cj->nodeID );
// fflush(stdout);
}
else
if
(
t
->
subtype
==
task_subtype_gpart
)
{
// message( "sending %i parts with tag=%i from %i to %i." ,
// t->ci->count , t->flags , s->nodeID , t->cj->nodeID );
// fflush(stdout);
}
else
if
(
t
->
subtype
==
task_subtype_gpart
)
{
err
=
MPI_Isend
(
t
->
ci
->
gparts
,
t
->
ci
->
gcount
,
gpart_mpi_type
,
t
->
cj
->
nodeID
,
t
->
flags
,
MPI_COMM_WORLD
,
&
t
->
req
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment