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
4b497bd7
Commit
4b497bd7
authored
Feb 16, 2017
by
Matthieu Schaller
Browse files
Drift all particles to end point before dumping the final snapshot
parent
ed288f25
Changes
3
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
4b497bd7
...
...
@@ -676,6 +676,7 @@ int main(int argc, char *argv[]) {
#endif
/* Write final output. */
engine_drift_all
(
&
e
);
engine_dump_snapshot
(
&
e
);
#ifdef WITH_MPI
...
...
src/engine.c
View file @
4b497bd7
...
...
@@ -2613,12 +2613,6 @@ void engine_rebuild(struct engine *e) {
* @brief Prepare the #engine by re-building the cells and tasks.
*
* @param e The #engine to prepare.
* @param drift_all Whether to drift particles before rebuilding or not. Will
* not be necessary if all particles have already been
* drifted (before repartitioning for instance).
* @param postrepart If we have just repartitioned, if so we need to defer the
* skip until after the rebuild and not check the if all
* cells have been drifted.
*/
void
engine_prepare
(
struct
engine
*
e
)
{
...
...
src/space.c
View file @
4b497bd7
...
...
@@ -2557,12 +2557,12 @@ void space_link_cleanup(struct space *s) {
}
/**
* @brief Checks that all cells have been drifted to
the curr
en
t
point in time
* @brief Checks that all cells have been drifted to
a giv
en point in time
*
* Expensive function. Should only be used for debugging purposes.
*
* @param s The #space to check.
* @param ti_
curren
t The (integer) time.
* @param ti_
drif
t The (integer) time.
*/
void
space_check_drift_point
(
struct
space
*
s
,
integertime_t
ti_drift
)
{
...
...
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