Microphysics icon indicating copy to clipboard operation
Microphysics copied to clipboard

extract some common integrator infrastructure

Open zingale opened this issue 11 months ago • 6 comments

zingale avatar Mar 17 '24 23:03 zingale

this looks a bit clumsy, so comments welcomed. With this, I can make BackwardEuler and RKC reuse the same integrator_setup

zingale avatar Mar 17 '24 23:03 zingale

I am not sure how to fix the CUDA issues here. It seems to not like passing the integrator function into the integrator_setup function

zingale avatar May 07 '24 13:05 zingale

update: std::function() doesn't work on the device, but a simple function pointer does.

zingale avatar May 07 '24 17:05 zingale

it appears that function points are not supported by SYCL, so we'll need to use functors (e.g., a struct wrapper with an overload of ())

zingale avatar May 07 '24 18:05 zingale

requires #1541

zingale avatar May 07 '24 20:05 zingale

this has been refactored so it will be SYCL compliant now

zingale avatar May 08 '24 16:05 zingale