Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sten Delos
Gadget4
Commits
83a5629f
Commit
83a5629f
authored
Oct 28, 2020
by
Oliver Zier
Browse files
Fix for OUTPUT_NON_SYNCHRONIZED_ALLOWED
parent
f949cfe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/run.cc
View file @
83a5629f
...
...
@@ -521,9 +521,11 @@ void sim::create_snapshot_if_desired(void)
if
(
Sp
.
P
[
i
].
Ti_Current
!=
All
.
Ti_Current
)
Terminate
(
"P[i].Ti_Current != All.Ti_Current"
);
#ifndef OUTPUT_NON_SYNCHRONIZED_ALLOWED
NgbTree
.
treefree
();
Sp
.
TimeBinsGravity
.
timebins_free
();
Sp
.
TimeBinsHydro
.
timebins_free
();
#endif
#ifdef FOF
mpi_printf
(
"
\n
FOF: We shall first compute a group catalog for this snapshot file
\n
"
);
...
...
@@ -606,6 +608,7 @@ void sim::create_snapshot_if_desired(void)
All
.
SnapshotFileCount
++
;
All
.
Ti_nextoutput
=
find_next_outputtime
(
All
.
Ti_Current
+
1
);
#ifndef OUTPUT_NON_SYNCHRONIZED_ALLOWED
Sp
.
TimeBinsHydro
.
timebins_allocate
();
Sp
.
TimeBinsGravity
.
timebins_allocate
();
...
...
@@ -617,6 +620,7 @@ void sim::create_snapshot_if_desired(void)
NgbTree
.
treeallocate
(
Sp
.
NumGas
,
&
Sp
,
&
Domain
);
NgbTree
.
treebuild
(
Sp
.
NumGas
,
NULL
);
#endif
}
#if defined(LIGHTCONE_PARTICLES)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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