adamantine
adamantine copied to clipboard
Introduce HeatSources
This is a step towards https://github.com/adamantine-sim/adamantine/issues/190. This pull request replaces std::vector<std::shared_ptr<adamantine::HeatSource<dim>>>
with HeatSources
that contains all heat sources as Kokkos::Views and loops over them in its member functions. With this approach, there is no dynamic polymorphism and the compiler could inline all function calls for the heat sources. In particular, this object would be usable on GPUs (apart from function annotations).