Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [[PR659]](https://github.com/lanl/singularity-eos/pull/659) Added `sesame2spiner::saveAllMaterials` overloads taking a list of matids instead of a list of input files, with optional per-material `Params` overrides, so host codes can generate an sp5 file without writing input decks to disk. Also added an overload taking an already-open `hid_t`, plus `writeSP5RootAttributes`, so a single sp5 file can be built up one material at a time.

### Fixed (Repair bugs, etc)
- [[PR666]](https://github.com/lanl/singularity-eos/pull/666) Add missing "template" to cast calls for compiler compatibility
- [[PR661]](https://github.com/lanl/singularity-eos/pull/661) Fix bug in InternalEnergyFromDensityPressure where the lambda wasn't threaded all the way through.
- `sesame2spiner` now validates the metadata returned by `eosGetMetadata` before using it. A matid absent from the sesame file previously produced all-zero bounds with no error, which reached `log()` and generated NaN grids; it is now reported and skipped.
- `sesame2spiner` no longer reports an HDF5 failure against every material following the first failed one, and now names the offending matid. Material save status is no longer accumulated by summing `herr_t` values, which could cancel out and report success.
Expand Down
6 changes: 3 additions & 3 deletions python/module.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,17 +489,17 @@ py::class_<T> eos_class(py::module_ & m, std::string name) {
auto param_bitmask = it.second.first;
auto param_ptr = it.second.second;
output |= param_bitmask;
*param_ptr = kwargs[param].cast<Real>();
*param_ptr = kwargs[param].template cast<Real>();
}
}

// override auto-detection
if(kwargs.contains("output")) {
output = kwargs["output"].cast<unsigned long>();
output = kwargs["output"].template cast<unsigned long>();
}

if(kwargs.contains("lmbda")) {
auto lambda = kwargs["lmbda"].cast<py::array_t<Real>>();
auto lambda = kwargs["lmbda"].template cast<py::array_t<Real>>();
self.FillEos(s.density, s.temperature, s.specific_internal_energy, s.pressure, s.specific_heat, s.bulk_modulus, output, lambda.mutable_data());
} else {
self.FillEos(s.density, s.temperature, s.specific_internal_energy, s.pressure, s.specific_heat, s.bulk_modulus, output, np<Real>());
Expand Down
Loading