Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing weak rate energy to NSE update #1483

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions integration/nse_update_sdc.H
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ void nse_derivs(const amrex::Real rho0, const amrex::Real rhoe0, const amrex::Re
} else {
rhoe_source = -rho0 * snu;
}
rhoe_source += C::n_A * (C::m_n - (C::m_p + C::m_e)) * C::c_light * C::c_light * rho0 * dyedt0;

amrex::Real rhoaux_source[NumAux];
rhoaux_source[iye] = rho0 * dyedt0;
Expand Down Expand Up @@ -149,6 +150,7 @@ void nse_derivs(const amrex::Real rho0, const amrex::Real rhoe0, const amrex::Re
amrex::Real rho_dabar = rho_abar_tilde - rho0 * abar0_out; // this is MeV / nucleon * g / cm**3

drhoedt = rho_dBEA * C::MeV2eV * C::ev2erg * C::n_A / tau;
drhoedt += C::n_A * (C::m_n - (C::m_p + C::m_e)) * C::c_light * C::c_light * rho0 * dyedt0;
if (integrator_rp::nse_include_enu_weak == 1) {
drhoedt -= rho0 * (nse_state.e_nu + snu);
} else {
Expand Down