Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
fcb8e0e0
Commit
fcb8e0e0
authored
Jun 22, 2018
by
Matthieu Schaller
Browse files
Make the long-range gravity task lock/unlock the multipoles and not the gparts.
parent
df729bf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
fcb8e0e0
...
...
@@ -690,7 +690,7 @@ int main(int argc, char *argv[]) {
}
#ifdef WITH_MPI
if
(
periodic
&&
with_self_gravity
)
if
(
periodic
&&
with_self_gravity
)
error
(
"Periodic self-gravity over MPI temporarily disabled."
);
#endif
...
...
@@ -729,7 +729,6 @@ int main(int argc, char *argv[]) {
"ICs."
,
N_total
[
0
],
N_total
[
2
],
N_total
[
1
]);
/* Verify that the fields to dump actually exist */
if
(
myrank
==
0
)
io_check_output_fields
(
params
,
N_total
);
...
...
src/task.c
View file @
fcb8e0e0
...
...
@@ -286,7 +286,6 @@ void task_unlock(struct task *t) {
case
task_type_drift_gpart
:
case
task_type_grav_mesh
:
case
task_type_grav_long_range
:
cell_gunlocktree
(
ci
);
break
;
...
...
@@ -319,6 +318,7 @@ void task_unlock(struct task *t) {
break
;
case
task_type_grav_mm
:
case
task_type_grav_long_range
:
cell_munlocktree
(
ci
);
break
;
...
...
@@ -382,7 +382,6 @@ int task_lock(struct task *t) {
case
task_type_drift_gpart
:
case
task_type_grav_mesh
:
case
task_type_grav_long_range
:
if
(
ci
->
ghold
)
return
0
;
if
(
cell_glocktree
(
ci
)
!=
0
)
return
0
;
break
;
...
...
@@ -444,6 +443,7 @@ int task_lock(struct task *t) {
}
break
;
case
task_type_grav_long_range
:
case
task_type_grav_mm
:
/* Lock the m-poles */
if
(
ci
->
mhold
)
return
0
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment