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
40e3198b
Commit
40e3198b
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Corrected typo in the normalisation constant of the KS law. Units are kpc^2 not pc^2
parent
1bc5d153
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!705
Star formation following Schaye08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/star_formation/EAGLE/star_formation.h
+5
-3
5 additions, 3 deletions
src/star_formation/EAGLE/star_formation.h
with
5 additions
and
3 deletions
src/star_formation/EAGLE/star_formation.h
+
5
−
3
View file @
40e3198b
...
@@ -443,8 +443,10 @@ INLINE static void starformation_init_backend(
...
@@ -443,8 +443,10 @@ INLINE static void starformation_init_backend(
phys_const
->
const_solar_mass
/
phys_const
->
const_solar_mass
/
(
phys_const
->
const_parsec
*
phys_const
->
const_parsec
);
(
phys_const
->
const_parsec
*
phys_const
->
const_parsec
);
/* Get the SF surface density unit Msun / pc^2 / yr in internal units */
/* Get the SF surface density unit Msun / kpc^2 / yr in internal units */
const
double
Msun_per_pc2_per_year
=
Msun_per_pc2
/
phys_const
->
const_year
;
const
double
kpc
=
1000
.
*
phys_const
->
const_parsec
;
const
double
Msun_per_kpc2_per_year
=
phys_const
->
const_solar_mass
/
(
kpc
*
kpc
)
/
phys_const
->
const_year
;
/* Conversion of number density from cgs */
/* Conversion of number density from cgs */
const
double
number_density_from_cgs
=
const
double
number_density_from_cgs
=
...
@@ -495,7 +497,7 @@ INLINE static void starformation_init_backend(
...
@@ -495,7 +497,7 @@ INLINE static void starformation_init_backend(
/* Convert to internal units */
/* Convert to internal units */
starform
->
KS_normalization
=
starform
->
KS_normalization
=
starform
->
KS_normalization_MSUNpYRpKPC2
*
Msun_per_pc2_per_year
;
starform
->
KS_normalization_MSUNpYRpKPC2
*
Msun_per_
k
pc2_per_year
;
/* Calculate the starformation pre-factor (eq. 12 of Schaye & Dalla Vecchia
/* Calculate the starformation pre-factor (eq. 12 of Schaye & Dalla Vecchia
* 2008) */
* 2008) */
...
...
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