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
3896d2bc
Commit
3896d2bc
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Also add the Gadget-2 value of the constant H_0/h
parent
dc6e5620
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/physical_constants_cgs.h
+10
-0
10 additions, 0 deletions
src/physical_constants_cgs.h
with
10 additions
and
0 deletions
src/physical_constants_cgs.h
+
10
−
0
View file @
3896d2bc
...
...
@@ -130,10 +130,20 @@ const double const_T_CMB_0_cgs = 2.7255;
/*! Primordial Helium fraction (from WMAP7) [-] */
const
double
const_primordial_He_fraction_cgs
=
0
.
248
;
#ifdef SWIFT_USE_GADGET2_PHYSICAL_CONSTANTS
/*! Reduced Hubble constant units (i.e. H_0 / h == 100 km / s / Mpc in CGS)
* [s^-1] */
const
double
const_reduced_hubble_cgs
=
3.2407789e-18
;
#else
/*! Reduced Hubble constant units (i.e. H_0 / h == 100 km / s / Mpc in CGS)
* [s^-1] */
const
double
const_reduced_hubble_cgs
=
3.2407792894458e-18
;
#endif
/*! Case B recombination coefficient for hydrogen at 10^4 K [cm^3 s^-1] */
const
double
const_caseb_recomb_cgs
=
2.6e-13
;
...
...
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