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
3b974424
Commit
3b974424
authored
Mar 09, 2017
by
Matthieu Schaller
Browse files
Lock the cells for init,kick and time-step tasks.
parent
ff6f2ec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/task.c
View file @
3b974424
...
...
@@ -283,6 +283,10 @@ void task_unlock(struct task *t) {
/* Act based on task type. */
switch
(
type
)
{
case
task_type_init
:
case
task_type_kick1
:
case
task_type_kick2
:
case
task_type_timestep
:
case
task_type_drift
:
cell_unlocktree
(
ci
);
cell_gunlocktree
(
ci
);
...
...
@@ -355,6 +359,10 @@ int task_lock(struct task *t) {
#endif
break
;
case
task_type_init
:
case
task_type_kick1
:
case
task_type_kick2
:
case
task_type_timestep
:
case
task_type_drift
:
if
(
ci
->
hold
||
ci
->
ghold
)
return
0
;
if
(
cell_locktree
(
ci
)
!=
0
)
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