espressomd / espresso

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

Simplify work with walberla kernels #4988

Open RudolfWeeber opened 3 months ago

RudolfWeeber commented 3 months 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>;