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
09b49763
Commit
09b49763
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Plain Diff
Merge branch 'GhostRename' of gitlab.cosma.dur.ac.uk:swift/swiftsim into GhostRename
parents
7e34aa50
a7776571
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!165
Better names for functions
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
src/engine.c
+2
-3
2 additions, 3 deletions
src/engine.c
src/scheduler.c
+2
-2
2 additions, 2 deletions
src/scheduler.c
src/space.c
+1
-1
1 addition, 1 deletion
src/space.c
src/task.c
+1
-1
1 addition, 1 deletion
src/task.c
src/task.h
+1
-1
1 addition, 1 deletion
src/task.h
with
7 additions
and
8 deletions
src/engine.c
+
2
−
3
View file @
09b49763
...
...
@@ -158,7 +158,7 @@ void engine_make_hierarchical_tasks(struct engine *e, struct cell *c,
if
(
c
->
split
)
for
(
int
k
=
0
;
k
<
8
;
k
++
)
if
(
c
->
progeny
[
k
]
!=
NULL
)
engine_make_
hierarchical
_tasks
(
e
,
c
->
progeny
[
k
],
super
);
engine_make_
ghost
_tasks
(
e
,
c
->
progeny
[
k
],
super
);
}
/**
...
...
@@ -1459,8 +1459,7 @@ void engine_maketasks(struct engine *e) {
engine_make_hierarchical_tasks
(
e
,
&
cells
[
k
],
NULL
);
/* Run through the tasks and make force tasks for each density task.
Each force task depends on the cell hierarchy tasks and unlocks the kick
task
Each force task depends on the cell ghosts and unlocks the kick task
of its super-cell. */
engine_make_extra_hydroloop_tasks
(
e
);
...
...
This diff is collapsed.
Click to expand it.
src/scheduler.c
+
2
−
2
View file @
09b49763
...
...
@@ -916,7 +916,7 @@ void scheduler_reweight(struct scheduler *s) {
}
else
t
->
weight
+=
1
*
wscale
*
t
->
ci
->
count
*
t
->
ci
->
count
;
break
;
case
task_type_
ghost
:
case
task_type_
hierarchy
:
if
(
t
->
ci
==
t
->
ci
->
super
)
t
->
weight
+=
wscale
*
t
->
ci
->
count
;
break
;
case
task_type_kick
:
...
...
@@ -1082,7 +1082,7 @@ void scheduler_enqueue(struct scheduler *s, struct task *t) {
switch
(
t
->
type
)
{
case
task_type_self
:
case
task_type_sort
:
case
task_type_
ghost
:
case
task_type_
hierarchy
:
case
task_type_kick
:
case
task_type_drift
:
case
task_type_init
:
...
...
This diff is collapsed.
Click to expand it.
src/space.c
+
1
−
1
View file @
09b49763
...
...
@@ -350,7 +350,7 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
s
->
cells
[
k
].
count
=
0
;
s
->
cells
[
k
].
gcount
=
0
;
s
->
cells
[
k
].
init
=
NULL
;
s
->
cells
[
k
].
ghost
=
NULL
;
s
->
cells
[
k
].
hierarchy
=
NULL
;
s
->
cells
[
k
].
drift
=
NULL
;
s
->
cells
[
k
].
kick
=
NULL
;
s
->
cells
[
k
].
super
=
&
s
->
cells
[
k
];
...
...
This diff is collapsed.
Click to expand it.
src/task.c
+
1
−
1
View file @
09b49763
...
...
@@ -48,7 +48,7 @@
/* Task type names. */
const
char
*
taskID_names
[
task_type_count
]
=
{
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub"
,
"init"
,
"
ghost
"
,
"drift"
,
"kick"
,
"send"
,
"init"
,
"
hierarchy
"
,
"drift"
,
"kick"
,
"send"
,
"recv"
,
"grav_pp"
,
"grav_mm"
,
"grav_up"
,
"grav_down"
,
"grav_external"
,
"part_sort"
,
"gpart_sort"
,
"split_cell"
,
"rewait"
};
...
...
This diff is collapsed.
Click to expand it.
src/task.h
+
1
−
1
View file @
09b49763
...
...
@@ -39,7 +39,7 @@ enum task_types {
task_type_pair
,
task_type_sub
,
task_type_init
,
task_type_
ghost
,
task_type_
hierarchy
,
task_type_drift
,
task_type_kick
,
task_type_send
,
...
...
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