Fortran does not seem to really support arrays of pointers, better to modify the interface function to take the f array as an input and use it in C to costruct a proper AcMesh
This commit is contained in:
@@ -40,12 +40,14 @@ acdeviceswapbuffers_(const Device* device)
|
|||||||
void
|
void
|
||||||
acdeviceloadmesh_(const Device* device, const Stream* stream, const AcMesh* host_mesh)
|
acdeviceloadmesh_(const Device* device, const Stream* stream, const AcMesh* host_mesh)
|
||||||
{
|
{
|
||||||
|
// TODO construct AcMesh from fortran farray
|
||||||
acDeviceLoadMesh(*device, *stream, *host_mesh);
|
acDeviceLoadMesh(*device, *stream, *host_mesh);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
acdevicestoremesh_(const Device* device, const Stream* stream, AcMesh* host_mesh)
|
acdevicestoremesh_(const Device* device, const Stream* stream, AcMesh* host_mesh)
|
||||||
{
|
{
|
||||||
|
// TODO construct AcMesh from fortran farray
|
||||||
acDeviceStoreMesh(*device, *stream, host_mesh);
|
acDeviceStoreMesh(*device, *stream, host_mesh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user