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. 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());