Skip to content

Commit

Permalink
Fix spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Mullen committed Jan 16, 2025
1 parent 64f970d commit 21ca6f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct FermiDiracDistributionNoMu {
return ThermalNumberDistributionOfT(temp, type, lambda) / pc::c;
}
template <typename Emissivity>
PORTABLE_INLINE_FUNCTION Real AbsorptionCoefficientFromKirkhoff(
PORTABLE_INLINE_FUNCTION Real AbsorptionCoefficientFromKirchhoff(
const Emissivity &J, const Real rho, const Real temp, const Real Ye,
const RadiationType type, const Real nu, Real *lambda = nullptr) const {
const Real Bnu =
Expand All @@ -91,7 +91,7 @@ struct FermiDiracDistributionNoMu {
return singularity_opac::robust::ratio(jnu, Bnu);
}
template <typename Emissivity>
PORTABLE_INLINE_FUNCTION Real AngleAveragedAbsorptionCoefficientFromKirkhoff(
PORTABLE_INLINE_FUNCTION Real AngleAveragedAbsorptionCoefficientFromKirchhoff(
const Emissivity &J, const Real rho, const Real temp, const Real Ye,
const RadiationType type, const Real nu, Real *lambda = nullptr) const {
const Real Bnu =
Expand Down
4 changes: 2 additions & 2 deletions singularity-opac/neutrinos/tophat_emissivity_neutrinos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TophatEmissivity {
Real AbsorptionCoefficient(const Real rho, const Real temp, const Real Ye,
const RadiationType type, const Real nu,
Real *lambda = nullptr) const {
return dist_.AbsorptionCoefficientFromKirkhoff(*this, rho, temp, Ye, type,
return dist_.AbsorptionCoefficientFromKirchhoff(*this, rho, temp, Ye, type,
nu, lambda) /
(4. * M_PI);
}
Expand All @@ -78,7 +78,7 @@ class TophatEmissivity {
const RadiationType type,
const Real nu,
Real *lambda = nullptr) const {
return dist_.AngleAveragedAbsorptionCoefficientFromKirkhoff(
return dist_.AngleAveragedAbsorptionCoefficientFromKirchhoff(
*this, rho, temp, Ye, type, nu, lambda);
}

Expand Down
4 changes: 2 additions & 2 deletions singularity-opac/photons/epbremsstrahlung_opacity_photons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class EPBremsstrahlungOpacity {
PORTABLE_INLINE_FUNCTION
Real AbsorptionCoefficient(const Real rho, const Real temp, const Real nu,
Real *lambda = nullptr) const {
return dist_.AbsorptionCoefficientFromKirkhoff(*this, rho, temp, nu,
return dist_.AbsorptionCoefficientFromKirchhoff(*this, rho, temp, nu,
lambda);
}

Expand All @@ -71,7 +71,7 @@ class EPBremsstrahlungOpacity {
Real AngleAveragedAbsorptionCoefficient(const Real rho, const Real temp,
const Real nu,
Real *lambda = nullptr) const {
return dist_.AngleAveragedAbsorptionCoefficientFromKirkhoff(
return dist_.AngleAveragedAbsorptionCoefficientFromKirchhoff(
*this, rho, temp, nu, lambda);
}

Expand Down
4 changes: 2 additions & 2 deletions singularity-opac/photons/thermal_distributions_photons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ struct PlanckDistribution {
return ThermalNumberDistributionOfT(temp, lambda) / pc::c;
}
template <typename Emissivity>
PORTABLE_INLINE_FUNCTION Real AbsorptionCoefficientFromKirkhoff(
PORTABLE_INLINE_FUNCTION Real AbsorptionCoefficientFromKirchhoff(
const Emissivity &J, const Real rho, const Real temp, const Real nu,
Real *lambda = nullptr) const {
Real Bnu = ThermalDistributionOfTNu(temp, nu, lambda);
Real jnu = J.EmissivityPerNuOmega(rho, temp, nu, lambda);
return singularity_opac::robust::ratio(jnu, Bnu);
}
template <typename Emissivity>
PORTABLE_INLINE_FUNCTION Real AngleAveragedAbsorptionCoefficientFromKirkhoff(
PORTABLE_INLINE_FUNCTION Real AngleAveragedAbsorptionCoefficientFromKirchhoff(
const Emissivity &J, const Real rho, const Real temp, const Real nu,
Real *lambda = nullptr) const {
Real Bnu = ThermalDistributionOfTNu(temp, nu, lambda);
Expand Down

0 comments on commit 21ca6f0

Please sign in to comment.