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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
5b12e402
Commit
5b12e402
authored
May 24, 2019
by
Folkert Nobels
Browse files
Options
Downloads
Patches
Plain Diff
Code formatting
parent
78019f2c
No related branches found
No related tags found
1 merge request
!825
EAGLE star formation: Change the over density criteria
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cosmology.h
+4
-2
4 additions, 2 deletions
src/cosmology.h
src/star_formation/EAGLE/star_formation.h
+2
-1
2 additions, 1 deletion
src/star_formation/EAGLE/star_formation.h
with
6 additions
and
3 deletions
src/cosmology.h
+
4
−
2
View file @
5b12e402
...
...
@@ -72,7 +72,8 @@ struct cosmology {
/*! Hubble constant at the current redshift (in internal units) */
double
H
;
/*! The critical density at the current redshift (in internal physical units) */
/*! The critical density at the current redshift (in internal physical units)
*/
double
critical_density
;
/*! The critical density at redshift 0 (in internal physical units) */
...
...
@@ -81,7 +82,8 @@ struct cosmology {
/*! The mean density at the current redshift (in internal physical units) */
double
mean_density
;
/*! The mean baryonic density at the current redshift (in internal physical units) */
/*! The mean baryonic density at the current redshift (in internal physical
* units) */
double
mean_density_Omega_b
;
/*! Conversion factor from internal time-step size to cosmological step */
...
...
This diff is collapsed.
Click to expand it.
src/star_formation/EAGLE/star_formation.h
+
2
−
1
View file @
5b12e402
...
...
@@ -212,7 +212,8 @@ INLINE static int star_formation_is_star_forming(
const
struct
cooling_function_data
*
restrict
cooling
,
const
struct
entropy_floor_properties
*
restrict
entropy_floor_props
)
{
/* Minimal density (converted from mean baryonic density) for star formation */
/* Minimal density (converted from mean baryonic density) for star formation
*/
const
double
rho_mean_b_times_min_over_den
=
cosmo
->
mean_density_Omega_b
*
starform
->
min_over_den
;
...
...
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
sign in
to comment