From fb8a4a2b8f2846e4033d7d6cce28e0528aad705e Mon Sep 17 00:00:00 2001 From: Jonah Maxwell Miller Date: Sat, 31 Oct 2026 16:43:02 -0400 Subject: [PATCH 1/2] fix template call in python/module.hpp --- python/module.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/module.hpp b/python/module.hpp index 89d1a6a4ff4..95c4881e652 100644 --- a/python/module.hpp +++ b/python/module.hpp @@ -489,17 +489,17 @@ py::class_ 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(); + *param_ptr = kwargs[param].template cast(); } } // override auto-detection if(kwargs.contains("output")) { - output = kwargs["output"].cast(); + output = kwargs["output"].template cast(); } if(kwargs.contains("lmbda")) { - auto lambda = kwargs["lmbda"].cast>(); + auto lambda = kwargs["lmbda"].template cast>(); 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()); From 1dd0b6d1ede7bab002b2571b4e93be86f35361d2 Mon Sep 17 00:00:00 2001 From: Jonah Maxwell Miller Date: Sat, 31 Oct 2026 16:46:49 -0400 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cbf869e823..fa1a313868d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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.