Cloudy & Associates
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cloudy
cloudy
Commits
4ed0781e
Commit
4ed0781e
authored
Oct 22, 2021
by
Chatzikos, Marios
Browse files
Merge branch 'GA08_bug' into 'master'
Fix bug in H2 line cooling See merge request
!25
parents
48e62422
8a621374
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/cool_eval.cpp
View file @
4ed0781e
...
...
@@ -1293,9 +1293,9 @@ STATIC double CoolH2_GA08 ( double Temp )
{
DEBUG_ENTRY
(
"CoolH2_GA08()"
);
double
x_para
=
h2
.
para_density
/
dense
.
gas_phase
[
ipHYDROGEN
];
double
x_ortho
=
h2
.
ortho_density
/
dense
.
gas_phase
[
ipHYDROGEN
];
double
f_para
=
h2
.
para_density
/
(
h2
.
para_density
+
h2
.
ortho_density
);
double
x_para
=
safe_div
(
h2
.
para_density
,
double
(
dense
.
gas_phase
[
ipHYDROGEN
]
)
)
;
double
x_ortho
=
safe_div
(
h2
.
ortho_density
,
double
(
dense
.
gas_phase
[
ipHYDROGEN
]
)
)
;
double
f_para
=
safe_div
(
h2
.
para_density
,
h2
.
para_density
+
h2
.
ortho_density
);
double
f_ortho
=
1.
-
f_para
;
/* Collisions with atomic H */
...
...
@@ -1354,14 +1354,8 @@ STATIC double CoolH2_GA08 ( double Temp )
}
}
/* NB NB NB
*
* The interpolation below will fail if the high density cooling is 0,
* that is, the total cooling will be 0, even if the low-density cooling
* is not. This may happen if permitted by the function that computes
* LTE cooling, and/or the tabulated data (see definition of
* interpolate_LTE_Cooling() and associated data file). */
return
cooling_high
/
(
1.
+
cooling_high
/
cooling_low
);
// originally cooling_high / (1. + cooling_high / cooling_low)
return
safe_div
(
cooling_low
*
cooling_high
,
cooling_low
+
cooling_high
);
}
STATIC
void
CoolHyperfine
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment