Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
a14ed8e1
Commit
a14ed8e1
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Correct initial guess for the Newton scheme in the EAGLE cooling code.
parent
05dbff45
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cooling/EAGLE/cooling.c
+1
-1
1 addition, 1 deletion
src/cooling/EAGLE/cooling.c
with
1 addition
and
1 deletion
src/cooling/EAGLE/cooling.c
+
1
−
1
View file @
a14ed8e1
...
@@ -57,7 +57,7 @@ static const float newton_tolerance = 1.0e-4;
...
@@ -57,7 +57,7 @@ static const float newton_tolerance = 1.0e-4;
static
const
float
bisection_tolerance
=
1.0e-6
;
static
const
float
bisection_tolerance
=
1.0e-6
;
static
const
float
rounding_tolerance
=
1.0e-4
;
static
const
float
rounding_tolerance
=
1.0e-4
;
static
const
double
bracket_factor
=
1
.
04
88088481701515
;
/* sqrt(1.1) */
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
* @brief Find the index of the current redshift along the redshift dimension
...
...
This diff is collapsed.
Click to expand it.
Matthieu Schaller
@matthieu
mentioned in issue
#527 (closed)
·
6 years ago
mentioned in issue
#527 (closed)
mentioned in issue #527
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment