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
a14ed8e1
Commit
a14ed8e1
authored
Feb 04, 2019
by
Matthieu Schaller
Browse files
Correct initial guess for the Newton scheme in the EAGLE cooling code.
parent
05dbff45
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cooling/EAGLE/cooling.c
View file @
a14ed8e1
...
...
@@ -57,7 +57,7 @@ static const float newton_tolerance = 1.0e-4;
static
const
float
bisection_tolerance
=
1.0e-6
;
static
const
float
rounding_tolerance
=
1.0e-4
;
static
const
double
bracket_factor
=
1
.
04
88088481701515
;
/* sqrt(1.1) */
static
const
double
newton_log_u_guess_cgs
=
1
.414213562e6
;
/* log10(2e12) */
static
const
double
newton_log_u_guess_cgs
=
1
2
.
30103
;
/* log10(2e12) */
/**
* @brief Find the index of the current redshift along the redshift dimension
...
...
Matthieu Schaller
@matthieu
mentioned in issue
#527 (closed)
·
Feb 04, 2019
mentioned in issue
#527 (closed)
mentioned in issue #527
Toggle commit list
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