Skip to content

Commit

Permalink
stupid C++ deleting copy constructor for const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Jan 3, 2025
1 parent 38bba46 commit a74bd26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions singularity-eos/eos/eos_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ class EosBase {
DensityEnergyFromPressureTemperature(const Real press, const Real temp,
Indexer_t &&lambda, Real &rho, Real &sie) const {
using RootFinding1D::findRoot; // more robust but slower. Better default.
using RootFinding1D::regula_falsi;
using RootFinding1D::Status;

// Pressure is not monotone in density at low densities, which can
Expand Down
2 changes: 1 addition & 1 deletion singularity-eos/eos/eos_mgusup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class MGUsup : public EosBase<MGUsup> {
private:
static constexpr const unsigned long _preferred_input =
thermalqs::density | thermalqs::specific_internal_energy;
const Real _RHOMINFAC = std::sqrt(robust::EPS());
Real _RHOMINFAC = std::sqrt(robust::EPS());
Real _rho0, _T0, _Cs, _s, _G0, _Cv0, _E0, _S0;
MeanAtomicProperties _AZbar;
};
Expand Down

0 comments on commit a74bd26

Please sign in to comment.