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
52bc0d78
Commit
52bc0d78
authored
Jan 09, 2019
by
Matthieu Schaller
Browse files
Make the ghost task lock/unlock its part of the tree.
parent
5b0ffaf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/task.c
View file @
52bc0d78
...
@@ -340,6 +340,7 @@ void task_unlock(struct task *t) {
...
@@ -340,6 +340,7 @@ void task_unlock(struct task *t) {
case
task_type_drift_part
:
case
task_type_drift_part
:
case
task_type_sort
:
case
task_type_sort
:
case
task_type_ghost
:
case
task_type_timestep_limiter
:
case
task_type_timestep_limiter
:
cell_unlocktree
(
ci
);
cell_unlocktree
(
ci
);
break
;
break
;
...
@@ -466,6 +467,7 @@ int task_lock(struct task *t) {
...
@@ -466,6 +467,7 @@ int task_lock(struct task *t) {
case
task_type_drift_part
:
case
task_type_drift_part
:
case
task_type_sort
:
case
task_type_sort
:
case
task_type_ghost
:
case
task_type_timestep_limiter
:
case
task_type_timestep_limiter
:
if
(
ci
->
hydro
.
hold
)
return
0
;
if
(
ci
->
hydro
.
hold
)
return
0
;
if
(
cell_locktree
(
ci
)
!=
0
)
return
0
;
if
(
cell_locktree
(
ci
)
!=
0
)
return
0
;
...
...
Peter W. Draper
@pdraper
mentioned in issue
#528 (closed)
·
Jan 30, 2019
mentioned in issue
#528 (closed)
mentioned in issue #528
Toggle commit list
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