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
d941da3f
Commit
d941da3f
authored
Aug 12, 2017
by
Matthieu Schaller
Browse files
Add more information to the header of the exact gravity files.
parent
afb02ce5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
d941da3f
...
...
@@ -164,8 +164,8 @@ void engine_make_hierarchical_tasks(struct engine *e, struct cell *c) {
/* Add the sort task. */
if
(
is_with_hydro
)
{
c
->
sorts
=
scheduler_addtask
(
s
,
task_type_sort
,
task_subtype_none
,
0
,
0
,
c
,
NULL
);
c
->
sorts
=
scheduler_addtask
(
s
,
task_type_sort
,
task_subtype_none
,
0
,
0
,
c
,
NULL
);
}
/* Local tasks only... */
...
...
@@ -173,8 +173,8 @@ void engine_make_hierarchical_tasks(struct engine *e, struct cell *c) {
/* Add the drift task. */
if
(
is_with_hydro
)
{
c
->
drift_part
=
scheduler_addtask
(
s
,
task_type_drift_part
,
task_subtype_none
,
0
,
0
,
c
,
NULL
);
c
->
drift_part
=
scheduler_addtask
(
s
,
task_type_drift_part
,
task_subtype_none
,
0
,
0
,
c
,
NULL
);
}
/* Add the two half kicks */
...
...
src/gravity.c
View file @
d941da3f
...
...
@@ -559,7 +559,9 @@ void gravity_exact_force_check(struct space *s, const struct engine *e,
fprintf
(
file_exact
,
"# G= %16.8e
\n
"
,
e
->
physical_constants
->
const_newton_G
);
fprintf
(
file_exact
,
"# N= %d
\n
"
,
SWIFT_GRAVITY_FORCE_CHECKS
);
fprintf
(
file_exact
,
"# epsilon=%16.8e
\n
"
,
e
->
gravity_properties
->
epsilon
);
fprintf
(
file_exact
,
"# theta=%16.8e
\n
"
,
e
->
gravity_properties
->
theta_crit
);
fprintf
(
file_exact
,
"# periodic= %d
\n
"
,
s
->
periodic
);
fprintf
(
file_exact
,
"# Git Branch: %s
\n
"
,
git_branch
());
fprintf
(
file_exact
,
"# Git Revision: %s
\n
"
,
git_revision
());
fprintf
(
file_exact
,
"# %16s %16s %16s %16s %16s %16s %16s
\n
"
,
"id"
,
"pos[0]"
,
"pos[1]"
,
"pos[2]"
,
"a_exact[0]"
,
"a_exact[1]"
,
"a_exact[2]"
);
...
...
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