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
cb0b3c77
Commit
cb0b3c77
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Lock the gparts and not the multipoles when calling the gravity long-range task.
parent
f53ba862
No related branches found
No related tags found
2 merge requests
!566
Periodic gravity calculation
,
!565
Mesh force task
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/task.c
+3
-3
3 additions, 3 deletions
src/task.c
with
3 additions
and
3 deletions
src/task.c
+
3
−
3
View file @
cb0b3c77
...
...
@@ -173,7 +173,6 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
case
task_type_init_grav
:
case
task_type_grav_top_level
:
case
task_type_grav_long_range
:
case
task_type_grav_mm
:
return
task_action_multipole
;
break
;
...
...
@@ -181,6 +180,7 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on(
case
task_type_drift_gpart
:
case
task_type_grav_down
:
case
task_type_grav_mesh
:
case
task_type_grav_long_range
:
return
task_action_gpart
;
break
;
...
...
@@ -292,6 +292,7 @@ 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
;
...
...
@@ -323,7 +324,6 @@ void task_unlock(struct task *t) {
cell_munlocktree
(
ci
);
break
;
case
task_type_grav_long_range
:
case
task_type_grav_mm
:
cell_munlocktree
(
ci
);
break
;
...
...
@@ -388,6 +388,7 @@ 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
;
...
...
@@ -449,7 +450,6 @@ 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
;
...
...
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