Dummy implementation of the Grid interface
This commit is contained in:
@@ -28,6 +28,17 @@ extern "C" {
|
||||
#include "astaroth_grid.h"
|
||||
#include "astaroth_node.h"
|
||||
|
||||
#define acInit(x) acGridInit(x)
|
||||
#define acQuit() acGridQuit()
|
||||
#define acLoad(x) acGridLoadMesh(STREAM_DEFAULT, x)
|
||||
#define acReduceScal(x, y) acGridReduceScal(STREAM_DEFAULT, x, y)
|
||||
#define acReduceVec(x, y, z, w) acGridReduceVec(STREAM_DEFAULT, x, y, z, w)
|
||||
#define acBoundcondStep() acGridPeriodicBoundcondStep(STREAM_DEFAULT)
|
||||
#define acIntegrate(x) acGridIntegrateStep(STREAM_DEFAULT, x)
|
||||
#define acStore(x) acGridStoreMesh(STREAM_DEFAULT, x)
|
||||
#define acSynchronizeStream(x) acGridSynchronizeStream(x)
|
||||
#define acLoadDeviceConstant(x, y) acGridLoadConstant(STREAM_DEFAULT, x, y)
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
@@ -105,7 +105,7 @@ typedef enum {
|
||||
} ReductionType;
|
||||
|
||||
typedef enum { STREAM_DEFAULT, NUM_STREAM_TYPES } Stream;
|
||||
#define STREAM_ALL (-1)
|
||||
#define STREAM_ALL (NUM_STREAM_TYPES)
|
||||
|
||||
#define AC_GEN_ID(X) X
|
||||
typedef enum {
|
||||
|
@@ -31,7 +31,7 @@ AcResult acGridInit(const AcMeshInfo node_config);
|
||||
AcResult acGridQuit(void);
|
||||
|
||||
/** */
|
||||
AcResult acGridSynchronize(void);
|
||||
AcResult acGridSynchronizeStream(const Stream stream);
|
||||
|
||||
/** */
|
||||
AcResult acGridSwapBuffers(void);
|
||||
@@ -72,34 +72,27 @@ AcResult acGridStoreVertexBuffer(const Stream stream, const VertexBufferHandle v
|
||||
/** */
|
||||
AcResult acGridStoreMesh(const Stream stream, AcMesh* host_mesh);
|
||||
|
||||
/** */
|
||||
AcResult acGridTransferVertexBufferWithOffset(const Stream stream,
|
||||
const VertexBufferHandle vtxbuf_handle,
|
||||
const int3 src, const int3 dst,
|
||||
const int num_vertices);
|
||||
|
||||
/** */
|
||||
AcResult acGridTransferMeshWithOffset(const Stream stream, const int3 src, const int3 dst,
|
||||
const int num_vertices);
|
||||
|
||||
/** */
|
||||
AcResult acGridTransferVertexBuffer(const Stream stream, const VertexBufferHandle vtxbuf_handle);
|
||||
|
||||
/** */
|
||||
AcResult acGridTransferMesh(const Stream stream);
|
||||
|
||||
/** */
|
||||
AcResult acGridIntegrateSubstep(const Stream stream, const int step_number, const int3 start,
|
||||
const int3 end, const AcReal dt);
|
||||
|
||||
/** */
|
||||
AcResult acGridPeriodicBoundcondStep(const Stream stream, const int3 start, const int3 end);
|
||||
AcResult acGridIntegrateStep(const Stream stream, const AcReal dt);
|
||||
|
||||
/** */
|
||||
AcResult acGridReduceScal(const Stream stream, const ReductionType rtype,
|
||||
const VertexBufferHandle vtxbuf_handle, AcReal* result);
|
||||
AcResult acGridPeriodicBoundcondStep(const Stream stream);
|
||||
/** */
|
||||
AcResult acGridReduceVec(const Stream stream, const ReductionType rtype,
|
||||
/* acGridReduceScal(const Stream stream, const ReductionType rtype,
|
||||
const VertexBufferHandle vtxbuf_handle, AcReal* result); */
|
||||
AcReal acGridReduceScal(const Stream stream, const ReductionType rtype,
|
||||
const VertexBufferHandle vtxbuf_handle);
|
||||
/** */
|
||||
/*AcResult acGridReduceVec(const Stream stream, const ReductionType rtype,
|
||||
const VertexBufferHandle vec0, const VertexBufferHandle vec1,
|
||||
const VertexBufferHandle vec2, AcReal* result);
|
||||
const VertexBufferHandle vec2, AcReal* result);*/
|
||||
AcReal acGridReduceVec(const Stream stream, const ReductionType rtype,
|
||||
const VertexBufferHandle vec0, const VertexBufferHandle vec1,
|
||||
const VertexBufferHandle vec2);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
Reference in New Issue
Block a user