Skip to content

Commit

Permalink
update to latest pynucastro
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Oct 12, 2023
1 parent cfbb9a9 commit 7398554
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 125 deletions.
Binary file modified networks/He-C-Fe-group/He-C-Fe-group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions networks/He-C-Fe-group/actual_rhs.H
Original file line number Diff line number Diff line change
Expand Up @@ -1675,8 +1675,8 @@ void actual_rhs (burn_t& state, Array1D<Real, 1, neqs>& ydot)
// Get the thermal neutrino losses

Real sneut, dsneutdt, dsneutdd, dsnuda, dsnudz;

sneut5(state.T, state.rho, state.abar, state.zbar, sneut, dsneutdt, dsneutdd, dsnuda, dsnudz);
constexpr int do_derivatives{0};
sneut5<do_derivatives>(state.T, state.rho, state.abar, state.zbar, sneut, dsneutdt, dsneutdd, dsnuda, dsnudz);

// Append the energy equation (this is erg/g/s)

Expand Down Expand Up @@ -2684,7 +2684,8 @@ void actual_jac(const burn_t& state, MatrixType& jac)
// Account for the thermal neutrino losses

Real sneut, dsneutdt, dsneutdd, dsnuda, dsnudz;
sneut5(state.T, state.rho, state.abar, state.zbar, sneut, dsneutdt, dsneutdd, dsnuda, dsnudz);
constexpr int do_derivatives{1};
sneut5<do_derivatives>(state.T, state.rho, state.abar, state.zbar, sneut, dsneutdt, dsneutdd, dsnuda, dsnudz);

for (int j = 1; j <= NumSpec; ++j) {
Real b1 = (-state.abar * state.abar * dsnuda + (zion[j-1] - state.zbar) * state.abar * dsnudz);
Expand Down
Loading

0 comments on commit 7398554

Please sign in to comment.