Skip to content

Commit

Permalink
Merge pull request #263 from lanl/jmm/singularity-fix-mass-fractions
Browse files Browse the repository at this point in the history
fix interpolation of mass fractions
  • Loading branch information
Yurlungur authored Jun 1, 2023
2 parents c59bb3a + a9b686c commit b2a61fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Current develop

### Fixed (Repair bugs, etc)
- [[PR263]](https://github.com/lanl/singularity-eos/pull/263) Fix stellar collapse mass fraction interpolation
- [[PR258]](https://github.com/lanl/singularity-eos/pull/258) Fix EOSPAC vector performance and add warnings when slower version gets selected.
- [[PR243]](https://github.com/lanl/singularity-eos/pull/243) Remove undefined behavior caused by diagnostic variables. Also fixed some compiler warnings.
- [[PR239]](https://github.com/lanl/singularity-eos/pull/239#issuecomment-1473166925) Add JQuery to dependencies for docs to repair build
Expand Down
12 changes: 6 additions & 6 deletions singularity-eos/eos/eos_stellar_collapse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,12 @@ void StellarCollapse::MassFractionsFromDensityTemperature(
Real &Abar, Real &Zbar, Real *lambda) const {
Real lRho, lT, Ye;
getLogsFromRhoT_(rho, temperature, lambda, lRho, lT, Ye);
Xa = Xa_.interpToReal(Ye, lRho, lT);
Xh = Xh_.interpToReal(Ye, lRho, lT);
Xn = Xn_.interpToReal(Ye, lRho, lT);
Xp = Xp_.interpToReal(Ye, lRho, lT);
Abar = Abar_.interpToReal(Ye, lRho, lT);
Zbar = Zbar_.interpToReal(Ye, lRho, lT);
Xa = Xa_.interpToReal(Ye, lT, lRho);
Xh = Xh_.interpToReal(Ye, lT, lRho);
Xn = Xn_.interpToReal(Ye, lT, lRho);
Xp = Xp_.interpToReal(Ye, lT, lRho);
Abar = Abar_.interpToReal(Ye, lT, lRho);
Zbar = Zbar_.interpToReal(Ye, lT, lRho);
}

PORTABLE_INLINE_FUNCTION
Expand Down

0 comments on commit b2a61fa

Please sign in to comment.