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
8aef100f
Commit
8aef100f
authored
Oct 01, 2018
by
Josh Borrow
Browse files
Added check to see if a_begin < a_end
parent
cee4c633
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cosmology.c
View file @
8aef100f
...
...
@@ -487,6 +487,11 @@ void cosmology_init(struct swift_params *params, const struct unit_system *us,
c
->
time_base
=
(
c
->
log_a_end
-
c
->
log_a_begin
)
/
max_nr_timesteps
;
c
->
time_base_inv
=
1
.
/
c
->
time_base
;
/* If a_begin == a_end we hang */
if
(
c
->
a_begin
>=
c
->
a_end
)
error
(
"a_begin must be strictly before (and not equal to) a_end"
);
/* Construct derived quantities */
/* Curvature density (for closure) */
...
...
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