espressomd / espresso

The ESPResSo package
https://espressomd.org
GNU General Public License v3.0
226 stars 183 forks source link

Simplify work with walberla kernels #4988

Open RudolfWeeber opened 1 month ago

RudolfWeeber commented 1 month ago

When adding new kernels, a lot of manual work is currently needed

the following have to be done 4x per kernel, single/double precision, cpu/gpu

There is probably some potential for streamlingin:

using Kernels = detail::KernelTraits<FloatType, Architecture>;

// ...
auto m_initial_pdf_setter = std::make_shared<typename Kernels::InitialPDFSetter>;