Commit e6bc3f40 authored by Alain O' Miniussi's avatar Alain O' Miniussi
Browse files

Set device memory in device

refs #597
parent e9fca972
......@@ -56,6 +56,7 @@ namespace fargOCA {
HillAreas inner; /**< Force arising from the inner disk */
HillAreas outer; /**< Force arising from the outer disk */
KOKKOS_INLINE_FUNCTION
HillForce() : inner(), outer() {}
HillForce(Disk const& disk, Planet const& planet);
HillForce(HillForce&& other) = default;
......
......@@ -98,7 +98,7 @@ namespace fargOCA {
int const nrMax = grid.managedRadiusMax();
kk::View<HillForce*> vf("local Hill contribs", nrMax-nrMin);
for(int i= 0; i < vf.stride(0); ++i) { vf(i) = HillForce(); }
kk::deep_copy(vf, HillForce());
real nan = std::numeric_limits<real>::quiet_NaN();
int const ns = grid.nbSector();
int const ni = grid.nbLayer();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment