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:
jpekkila
2020-06-25 20:21:16 +03:00
parent 1b50374cdb
commit 7e71e32359

View File

@@ -40,12 +40,14 @@ acdeviceswapbuffers_(const Device* device)
void
acdeviceloadmesh_(const Device* device, const Stream* stream, const AcMesh* host_mesh)
{
// TODO construct AcMesh from fortran farray
acDeviceLoadMesh(*device, *stream, *host_mesh);
}
void
acdevicestoremesh_(const Device* device, const Stream* stream, AcMesh* host_mesh)
{
// TODO construct AcMesh from fortran farray
acDeviceStoreMesh(*device, *stream, host_mesh);
}