From 7e71e323595cf575fa63f75862ec9456da09b67c Mon Sep 17 00:00:00 2001 From: jpekkila Date: Thu, 25 Jun 2020 20:21:16 +0300 Subject: [PATCH] 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 --- src/core/astaroth_fortran.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/astaroth_fortran.cc b/src/core/astaroth_fortran.cc index ca93591..e397a9a 100644 --- a/src/core/astaroth_fortran.cc +++ b/src/core/astaroth_fortran.cc @@ -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); }