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
SWIFT
SWIFTsim
Commits
11ffdf27
Commit
11ffdf27
authored
Jul 06, 2020
by
Stuart McAlpine
Committed by
Matthieu Schaller
Jul 06, 2020
Browse files
Special case for when you have an outputlist entry on the final step
parent
e0d70e55
Changes
7
Hide whitespace changes
Inline
Side-by-side
examples/SmallCosmoVolume/SmallCosmoVolume_DM/small_cosmo_volume_dm.yml
View file @
11ffdf27
...
...
@@ -22,7 +22,7 @@ TimeIntegration:
# Parameters for the self-gravity scheme
Gravity
:
eta
:
0.025
MAC
:
ad
p
ative
MAC
:
ada
p
tive
theta_cr
:
0.7
epsilon_fmm
:
0.001
comoving_DM_softening
:
0.0889
# 1/25th of the mean inter-particle separation: 88.9 kpc
...
...
@@ -35,7 +35,7 @@ Snapshots:
delta_time
:
1.0816
# Only every second VELOCIraptor invoke gets a full snapshot dump.
scale_factor_first
:
0.1
# z = 9
compression
:
4
# Parameters governing the conserved quantities statistics
Statistics
:
delta_time
:
1.02
...
...
examples/SmallCosmoVolume/SmallCosmoVolume_Snipshots/small_cosmo_volume.yml
View file @
11ffdf27
...
...
@@ -22,7 +22,7 @@ TimeIntegration:
# Parameters for the self-gravity scheme
Gravity
:
eta
:
0.025
MAC
:
ad
p
ative
MAC
:
ada
p
tive
theta_cr
:
0.7
epsilon_fmm
:
0.001
comoving_DM_softening
:
0.0889
# 1/25th of the mean inter-particle separation: 88.9 kpc
...
...
examples/SmallCosmoVolume/SmallCosmoVolume_VELOCIraptor/small_cosmo_volume.yml
View file @
11ffdf27
...
...
@@ -22,7 +22,7 @@ TimeIntegration:
# Parameters for the self-gravity scheme
Gravity
:
eta
:
0.025
MAC
:
ad
p
ative
MAC
:
ada
p
tive
theta_cr
:
0.7
epsilon_fmm
:
0.001
comoving_DM_softening
:
0.0889
# 1/25th of the mean inter-particle separation: 88.9 kpc
...
...
examples/SmallCosmoVolume/SmallCosmoVolume_cooling/small_cosmo_volume.yml
View file @
11ffdf27
...
...
@@ -22,7 +22,7 @@ TimeIntegration:
# Parameters for the self-gravity scheme
Gravity
:
eta
:
0.025
MAC
:
ad
p
ative
MAC
:
ada
p
tive
theta_cr
:
0.7
epsilon_fmm
:
0.001
comoving_DM_softening
:
0.0889
# 1/25th of the mean inter-particle separation: 88.9 kpc
...
...
examples/SmallCosmoVolume/SmallCosmoVolume_hydro/small_cosmo_volume.yml
View file @
11ffdf27
...
...
@@ -22,7 +22,7 @@ TimeIntegration:
# Parameters for the self-gravity scheme
Gravity
:
eta
:
0.025
MAC
:
ad
p
ative
MAC
:
ada
p
tive
theta_cr
:
0.7
epsilon_fmm
:
0.001
comoving_DM_softening
:
0.0889
# 1/25th of the mean inter-particle separation: 88.9 kpc
...
...
src/output_list.c
View file @
11ffdf27
...
...
@@ -243,7 +243,8 @@ void output_list_read_next_time(struct output_list *t, const struct engine *e,
* or a=1 is found in output_list.txt set the flag `final_step_dump`
* to 1 - this is not special behaviour that is controlled by a
* parameter file flag. */
if
(
time
==
time_end
)
{
if
(
time
==
time_end
||
(
time
>
time_end
&&
time
-
time_end
<
OUTPUT_LIST_EPS_TIME_END
))
{
t
->
final_step_dump
=
1
;
if
(
e
->
verbose
)
{
if
(
is_cosmo
)
{
...
...
src/output_list.h
View file @
11ffdf27
...
...
@@ -33,6 +33,9 @@ struct engine;
/*! Maximal number of output lists */
#define OUTPUT_LIST_MAX_NUM_OF_SELECT_OUTPUT_STYLES 8
/*! How far past time_end do we check for an output time? */
#define OUTPUT_LIST_EPS_TIME_END 1e-4
/**
* @brief the different output_list type
*/
...
...
Write
Preview
Supports
Markdown
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