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
1be7f08b
Commit
1be7f08b
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Better choice of bracketing constant in the EAGLE cooling bisection code.
parent
5bf1cecf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/CoolingRates/README
+3
-2
3 additions, 2 deletions
examples/CoolingRates/README
src/cooling/EAGLE/cooling.c
+1
-1
1 addition, 1 deletion
src/cooling/EAGLE/cooling.c
with
4 additions
and
3 deletions
examples/CoolingRates/README
+
3
−
2
View file @
1be7f08b
...
@@ -11,8 +11,9 @@ The test may be run by:
...
@@ -11,8 +11,9 @@ The test may be run by:
python plot_cooling_rates.py
python plot_cooling_rates.py
where X is the redshift at which the cooling rates are evaluated and Y
where X is the redshift at which the cooling rates are evaluated and Y
is the base 10 logarithm of the hydrogen number density. Different
is the base 10 logarithm of the hydrogen number density expressed in
metallicities may be specified in testCooling.yml
cgs (i.e. cm^-3). Different metallicities may be specified in
testCooling.yml
Running with -z 3 -d -4 should reproduce the Fig.4 of Wiersma+09 with
Running with -z 3 -d -4 should reproduce the Fig.4 of Wiersma+09 with
the added Compton cooling contribution.
the added Compton cooling contribution.
This diff is collapsed.
Click to expand it.
src/cooling/EAGLE/cooling.c
+
1
−
1
View file @
1be7f08b
...
@@ -56,7 +56,7 @@ static const float explicit_tolerance = 0.05;
...
@@ -56,7 +56,7 @@ static const float explicit_tolerance = 0.05;
static
const
float
newton_tolerance
=
1.0e-4
;
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
8808848170151
5
;
/* sqrt(1.1) */
static
const
double
bracket_factor
=
1
.
5
;
/* sqrt(1.1) */
static
const
double
newton_log_u_guess_cgs
=
12
.
30103
;
/* log10(2e12) */
static
const
double
newton_log_u_guess_cgs
=
12
.
30103
;
/* log10(2e12) */
/**
/**
...
...
This diff is collapsed.
Click to expand it.
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