Deprecated the old implementation of acIntegrateStep. acIntegrateStep now calls acIntegrateStepWithOffset instead of device.cuh functions.
This commit is contained in:
@@ -251,18 +251,6 @@ acStore(AcMesh* host_mesh)
|
|||||||
return acStoreWithOffset((int3){0, 0, 0}, AC_VTXBUF_SIZE(host_mesh->info), host_mesh);
|
return acStoreWithOffset((int3){0, 0, 0}, AC_VTXBUF_SIZE(host_mesh->info), host_mesh);
|
||||||
}
|
}
|
||||||
|
|
||||||
AcResult
|
|
||||||
acIntegrateStep(const int& isubstep, const AcReal& dt)
|
|
||||||
{
|
|
||||||
const int3 start = (int3){NGHOST, NGHOST, NGHOST};
|
|
||||||
const int3 end = start + subgrid.n;
|
|
||||||
for (int i = 0; i < num_devices; ++i) {
|
|
||||||
rkStep(devices[i], STREAM_PRIMARY, isubstep, start, end, dt);
|
|
||||||
}
|
|
||||||
|
|
||||||
return AC_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
AcResult
|
AcResult
|
||||||
acIntegrateStepWithOffset(const int& isubstep, const AcReal& dt, const int3& start, const int3& end)
|
acIntegrateStepWithOffset(const int& isubstep, const AcReal& dt, const int3& start, const int3& end)
|
||||||
{
|
{
|
||||||
@@ -282,6 +270,21 @@ acIntegrateStepWithOffset(const int& isubstep, const AcReal& dt, const int3& sta
|
|||||||
return AC_SUCCESS;
|
return AC_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AcResult
|
||||||
|
acIntegrateStep(const int& isubstep, const AcReal& dt)
|
||||||
|
{
|
||||||
|
const int3 start = (int3){NGHOST, NGHOST, NGHOST};
|
||||||
|
const int3 end = start + subgrid.n;
|
||||||
|
/* Deprecated block, TODO remove when acIntegrateStepWithOffset confirmed to work
|
||||||
|
for (int i = 0; i < num_devices; ++i) {
|
||||||
|
rkStep(devices[i], STREAM_PRIMARY, isubstep, start, end, dt);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
acIntegrateStepWithOffset(isubstep, dt, start, end);
|
||||||
|
|
||||||
|
return AC_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
AcResult
|
AcResult
|
||||||
acBoundcondStep(void)
|
acBoundcondStep(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user