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