Skip to content

Commit

Permalink
Merge pull request #267 from lanl/rberger_eospac_finalize
Browse files Browse the repository at this point in the history
Add missing eosSafeDestroy call
  • Loading branch information
Yurlungur authored Jul 12, 2023
2 parents 2c6d64c + d662479 commit e6f4c6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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)
- [[PR267]](https://github.com/lanl/singularity-eos/pull/267) Add missing eosSafeDestroy call in EOSPAC::Finalize
- [[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.
Expand Down
5 changes: 4 additions & 1 deletion singularity-eos/eos/eos_eospac.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,10 @@ class EOSPAC : public EosBase<EOSPAC> {

static constexpr unsigned long PreferredInput() { return _preferred_input; }
PORTABLE_INLINE_FUNCTION int nlambda() const noexcept { return 0; }
inline void Finalize() {}
inline void Finalize() {
using namespace EospacWrapper;
eosSafeDestroy(NT, tablehandle, Verbosity::Quiet);
}
static std::string EosType() { return std::string("EOSPAC"); }
static std::string EosPyType() { return EosType(); }
inline void PrintParams() const { printf("EOSPAC parameters:\nmatid = %s\n", matid_); }
Expand Down

0 comments on commit e6f4c6d

Please sign in to comment.