diff --git a/xolotl/core/include/xolotl/core/network/ReactionNetwork.h b/xolotl/core/include/xolotl/core/network/ReactionNetwork.h index 03050c4d..f0d4845e 100644 --- a/xolotl/core/include/xolotl/core/network/ReactionNetwork.h +++ b/xolotl/core/include/xolotl/core/network/ReactionNetwork.h @@ -140,6 +140,8 @@ class ReactionNetwork : public ReactionNetworkInterface::Type ReactionNetwork(const std::vector& maxSpeciesAmounts, IndexType gridSize, const options::IOptions& opts); + ~ReactionNetwork(); + KOKKOS_INLINE_FUNCTION static constexpr std::size_t getNumberOfSpecies() noexcept diff --git a/xolotl/core/include/xolotl/core/network/impl/ReactionNetwork.tpp b/xolotl/core/include/xolotl/core/network/impl/ReactionNetwork.tpp index 87be2a7b..ea70dfe8 100644 --- a/xolotl/core/include/xolotl/core/network/impl/ReactionNetwork.tpp +++ b/xolotl/core/include/xolotl/core/network/impl/ReactionNetwork.tpp @@ -19,7 +19,7 @@ namespace network template DualViewWrapper::DualViewWrapper(const std::string& label) : _dualView(Kokkos::ViewAllocateWithoutInitializing(label)), - _hasInstance(true), + _hasInstance(true), d_view(_dualView.d_view), h_view(_dualView.h_view) { @@ -29,9 +29,9 @@ DualViewWrapper::DualViewWrapper(const std::string& label) : template DualViewWrapper::~DualViewWrapper() { - if (_hasInstance) { - h_view().~T(); - } + if (_hasInstance) { + h_view().~T(); + } } template @@ -167,6 +167,11 @@ ReactionNetwork::ReactionNetwork( { } +template +ReactionNetwork::~ReactionNetwork() +{ +} + template const std::string& ReactionNetwork::getSpeciesLabel(SpeciesId id) const