Missed some renamings
This commit is contained in:
@@ -120,8 +120,8 @@ main(int argc, char** argv)
|
||||
if (pid == 0) {
|
||||
acHostMeshCreate(info, &model);
|
||||
acHostMeshCreate(info, &candidate);
|
||||
acMeshRandomize(&model);
|
||||
acMeshRandomize(&candidate);
|
||||
acHostMeshRandomize(&model);
|
||||
acHostMeshRandomize(&candidate);
|
||||
}*/
|
||||
|
||||
// GPU alloc & compute
|
||||
@@ -131,7 +131,7 @@ main(int argc, char** argv)
|
||||
/*
|
||||
AcMesh model;
|
||||
acHostMeshCreate(info, &model);
|
||||
acMeshRandomize(&model);
|
||||
acHostMeshRandomize(&model);
|
||||
acGridLoadMesh(STREAM_DEFAULT, model);
|
||||
*/
|
||||
|
||||
@@ -146,7 +146,7 @@ main(int argc, char** argv)
|
||||
// Verify
|
||||
if (pid == 0) {
|
||||
acHostIntegrateStep(model, FLT_EPSILON);
|
||||
acMeshApplyPeriodicBounds(&model);
|
||||
acHostMeshApplyPeriodicBounds(&model);
|
||||
|
||||
AcResult retval = acVerifyMesh(model, candidate);
|
||||
acHostMeshDestroy(&model);
|
||||
|
@@ -49,8 +49,8 @@ main(void)
|
||||
if (pid == 0) {
|
||||
acHostMeshCreate(info, &model);
|
||||
acHostMeshCreate(info, &candidate);
|
||||
acMeshRandomize(&model);
|
||||
acMeshRandomize(&candidate);
|
||||
acHostMeshRandomize(&model);
|
||||
acHostMeshRandomize(&candidate);
|
||||
}
|
||||
|
||||
// GPU alloc & compute
|
||||
@@ -61,10 +61,10 @@ main(void)
|
||||
acGridPeriodicBoundconds(STREAM_DEFAULT);
|
||||
acGridStoreMesh(STREAM_DEFAULT, &candidate);
|
||||
if (pid == 0) {
|
||||
acMeshApplyPeriodicBounds(&model);
|
||||
acHostMeshApplyPeriodicBounds(&model);
|
||||
const AcResult res = acVerifyMesh("Boundconds", model, candidate);
|
||||
ERRCHK_ALWAYS(res == AC_SUCCESS);
|
||||
acMeshRandomize(&model);
|
||||
acHostMeshRandomize(&model);
|
||||
}
|
||||
|
||||
// Integration
|
||||
@@ -74,10 +74,10 @@ main(void)
|
||||
acGridStoreMesh(STREAM_DEFAULT, &candidate);
|
||||
if (pid == 0) {
|
||||
acHostIntegrateStep(model, FLT_EPSILON);
|
||||
acMeshApplyPeriodicBounds(&model);
|
||||
acHostMeshApplyPeriodicBounds(&model);
|
||||
const AcResult res = acVerifyMesh("Integration", model, candidate);
|
||||
ERRCHK_ALWAYS(res == AC_SUCCESS);
|
||||
acMeshRandomize(&model);
|
||||
acHostMeshRandomize(&model);
|
||||
}
|
||||
|
||||
// Scalar reductions
|
||||
|
@@ -445,7 +445,7 @@ main(int argc, char** argv)
|
||||
#endif
|
||||
}
|
||||
|
||||
acMeshApplyPeriodicBounds(&mesh);
|
||||
acHostMeshApplyPeriodicBounds(&mesh);
|
||||
if (start_step == 0) {
|
||||
save_mesh(mesh, 0, t_step);
|
||||
}
|
||||
|
@@ -1290,7 +1290,7 @@ acGridRandomize(void)
|
||||
|
||||
AcMesh host;
|
||||
acHostMeshCreate(grid.submesh.info, &host);
|
||||
acMeshRandomize(&host);
|
||||
acHostMeshRandomize(&host);
|
||||
acDeviceLoadMesh(grid.device, STREAM_DEFAULT, host);
|
||||
acHostMeshDestroy(&host);
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "errchk.h"
|
||||
#include "memory.h" // acHostMeshCreate, acHostMeshDestroy, acMeshApplyPeriodicBounds
|
||||
#include "memory.h" // acHostMeshCreate, acHostMeshDestroy, acHostMeshApplyPeriodicBounds
|
||||
|
||||
// Standalone flags
|
||||
#define LDENSITY (1)
|
||||
|
Reference in New Issue
Block a user