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
4abcd8a7
Commit
4abcd8a7
authored
8 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
run format.sh
parent
755ac20b
No related branches found
No related tags found
1 merge request
!186
Set the super-cell to the first cell with interactions.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+14
-6
14 additions, 6 deletions
src/engine.c
with
14 additions
and
6 deletions
src/engine.c
+
14
−
6
View file @
4abcd8a7
...
...
@@ -66,11 +66,19 @@
#include
"timers.h"
#include
"units.h"
const
char
*
engine_policy_names
[
13
]
=
{
"none"
,
"rand"
,
"steal"
,
"keep"
,
"block"
,
"fix_dt"
,
"cpu_tight"
,
"mpi"
,
"numa_affinity"
,
"hydro"
,
"self_gravity"
,
"external_gravity"
,
"cosmology_integration"
};
const
char
*
engine_policy_names
[
13
]
=
{
"none"
,
"rand"
,
"steal"
,
"keep"
,
"block"
,
"fix_dt"
,
"cpu_tight"
,
"mpi"
,
"numa_affinity"
,
"hydro"
,
"self_gravity"
,
"external_gravity"
,
"cosmology_integration"
};
/** The rank of the engine as a global variable (for messages). */
int
engine_rank
;
...
...
@@ -120,7 +128,7 @@ void engine_make_hierarchical_tasks(struct engine *e, struct cell *c,
engine_policy_external_gravity
;
const
int
is_fixdt
=
(
e
->
policy
&
engine_policy_fixdt
)
==
engine_policy_fixdt
;
/* Is this the super-cell?
/* Is this the super-cell?
TODO(pedro): Add a condition for gravity tasks as well. */
if
(
super
==
NULL
&&
(
c
->
density
!=
NULL
||
(
!
c
->
split
&&
(
c
->
count
>
0
||
c
->
gcount
>
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