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
abce7331
Commit
abce7331
authored
Aug 11, 2016
by
Matthieu Schaller
Browse files
Dump the 0th snapshot after particle initialisation not before
parent
3ad59a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
abce7331
...
...
@@ -455,9 +455,6 @@ int main(int argc, char *argv[]) {
fflush
(
stdout
);
}
/* Write the state of the system before starting time integration. */
if
(
!
dry_run
)
engine_dump_snapshot
(
&
e
);
/* Init the runner history. */
#ifdef HIST
for
(
k
=
0
;
k
<
runner_hist_N
;
k
++
)
runner_hist_bins
[
k
]
=
0
;
...
...
@@ -493,6 +490,9 @@ int main(int argc, char *argv[]) {
/* Initialise the particles */
engine_init_particles
(
&
e
,
flag_entropy_ICs
);
/* Write the state of the system before starting time integration. */
engine_dump_snapshot
(
&
e
);
/* Legend */
if
(
myrank
==
0
)
printf
(
"# %6s %14s %14s %10s %10s %16s [%s]
\n
"
,
"Step"
,
"Time"
,
"Time-step"
,
...
...
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