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
acfb1d45
Commit
acfb1d45
authored
Mar 7, 2020
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary parameter in the quick Lyman-alpha cooling model
parent
fad25194
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1036
Quick lyman alpha module
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cooling/QLA/cooling.c
+3
-7
3 additions, 7 deletions
src/cooling/QLA/cooling.c
src/cooling/QLA/cooling_rates.h
+3
-3
3 additions, 3 deletions
src/cooling/QLA/cooling_rates.h
src/cooling/QLA/cooling_struct.h
+0
-6
0 additions, 6 deletions
src/cooling/QLA/cooling_struct.h
with
6 additions
and
16 deletions
src/cooling/QLA/cooling.c
+
3
−
7
View file @
acfb1d45
...
...
@@ -718,12 +718,6 @@ void cooling_init_backend(struct swift_params *parameter_file,
cooling
->
He_reion_heat_cgs
=
parser_get_param_float
(
parameter_file
,
"QLACooling:He_reion_eV_p_H"
);
/* Optional parameters to correct the abundances */
cooling
->
Ca_over_Si_ratio_in_solar
=
parser_get_opt_param_float
(
parameter_file
,
"QLACooling:Ca_over_Si_in_solar"
,
1
.
f
);
cooling
->
S_over_Si_ratio_in_solar
=
parser_get_opt_param_float
(
parameter_file
,
"QLACooling:S_over_Si_in_solar"
,
1
.
f
);
/* Convert H_reion_heat_cgs and He_reion_heat_cgs to cgs
* (units used internally by the cooling routines). This is done by
* multiplying by 'eV/m_H' in internal units, then converting to cgs units.
...
...
@@ -832,7 +826,9 @@ void cooling_restore_tables(struct cooling_function_data *cooling,
*/
void
cooling_print_backend
(
const
struct
cooling_function_data
*
cooling
)
{
message
(
"Cooling function is 'Quick Lyman-alpha (EAGLE with primordial Z)'."
);
message
(
"Cooling function is 'Quick Lyman-alpha (EAGLE with primordial Z "
"only)'."
);
}
/**
...
...
...
...
This diff is collapsed.
Click to expand it.
src/cooling/QLA/cooling_rates.h
+
3
−
3
View file @
acfb1d45
File changed. Contains only whitespace changes.
Show whitespace changes.
This diff is collapsed.
Click to expand it.
src/cooling/QLA/cooling_struct.h
+
0
−
6
View file @
acfb1d45
...
...
@@ -83,12 +83,6 @@ struct cooling_function_data {
/*! Have we already done H reioisation? */
int
H_reion_done
;
/*! Ca over Si abundance divided by the solar ratio for these elements */
float
Ca_over_Si_ratio_in_solar
;
/*! S over Si abundance divided by the solar ratio for these elements */
float
S_over_Si_ratio_in_solar
;
/*! Redshift of He reionization */
float
He_reion_z_centre
;
...
...
...
...
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