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
820d9102
Commit
820d9102
authored
Apr 18, 2017
by
Matthieu Schaller
Browse files
Code formatting
parent
7cf23052
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
820d9102
...
...
@@ -3313,8 +3313,8 @@ void engine_step(struct engine *e) {
gravity_exact_force_check
(
e
->
s
,
e
,
1e-1
);
#endif
/* Let's trigger a rebuild every-so-often for good measure */
if
(
!
(
e
->
policy
&
engine_policy_hydro
)
&&
//MATTHIEU improve this
/* Let's trigger a rebuild every-so-often for good measure */
if
(
!
(
e
->
policy
&
engine_policy_hydro
)
&&
//
MATTHIEU improve this
(
e
->
policy
&
engine_policy_self_gravity
)
&&
e
->
step
%
20
==
0
)
e
->
forcerebuild
=
1
;
...
...
src/runner.c
View file @
820d9102
...
...
@@ -501,7 +501,7 @@ void runner_do_init_grav(struct runner *r, struct cell *c, int timer) {
/* Drift the multipole */
cell_drift_multipole
(
c
,
e
);
/* Reset the gravity acceleration tensors */
gravity_field_tensors_init
(
&
c
->
multipole
->
pot
);
...
...
src/task.c
View file @
820d9102
...
...
@@ -47,15 +47,27 @@
#include
"lock.h"
/* Task type names. */
const
char
*
taskID_names
[
task_type_count
]
=
{
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub_self"
,
"sub_pair"
,
"init_grav"
,
"ghost"
,
"extra_ghost"
,
"drift"
,
"kick1"
,
"kick2"
,
"timestep"
,
"send"
,
"recv"
,
"grav_top_level"
,
"grav_long_range"
,
"grav_mm"
,
"grav_down"
,
"cooling"
,
"sourceterms"
};
const
char
*
taskID_names
[
task_type_count
]
=
{
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub_self"
,
"sub_pair"
,
"init_grav"
,
"ghost"
,
"extra_ghost"
,
"drift"
,
"kick1"
,
"kick2"
,
"timestep"
,
"send"
,
"recv"
,
"grav_top_level"
,
"grav_long_range"
,
"grav_mm"
,
"grav_down"
,
"cooling"
,
"sourceterms"
};
/* Sub-task type names. */
const
char
*
subtaskID_names
[
task_subtype_count
]
=
{
...
...
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