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
acfb1d45
Commit
acfb1d45
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary parameter in the quick Lyman-alpha cooling model
parent
fad25194
No related branches found
No related tags found
1 merge request
!1036
Quick lyman alpha module
Changes
3
Hide 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
...
...
@@ -36,17 +36,17 @@
*
* The quick Lyman-alpha chemistry model does not track any elements.
* We use the primordial H and He to fill in the element abundance
* array.
* array.
*
* We also re-order the elements such that they match the order of the
* tables. This is [H, He, C, N, O, Ne, Mg, Si, S, Ca, Fe].
*
*
* The solar abundances table (from the cooling struct) is arranged as
* [H, He, C, N, O, Ne, Mg, Si, S, Ca, Fe].
*
* @param p Pointer to #part struct.
* @param cooling #cooling_function_data struct.
* @param phys_const the physical constants in internal units
* @param phys_const the physical constants in internal units
* @param ratio_solar (return) Array of ratios to solar abundances.
*/
__attribute__
((
always_inline
))
INLINE
static
void
abundance_ratio_to_solar
(
...
...
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
register
or
sign in
to comment