I’m trying to follow a tutorial on modifying Fortran’s solverdummy to use the “Direct access to received meshes”Direct access to received meshes. But when I call this subrountine
Thanks for your reply, yes this error is from this code, it is reported before initialization, I don’t know if it’s because of the reason I use Fortran code or something else, I’m looking for the reason further, but I don’t know enough about precice.
I further tested the same idea by setting up the program using C++ code, and found that the program could run normally. Therefore, I suspect that there might be an issue with the binding of the precicef_set_mesh_access_region(meshID, boundingBox) subroutine in Fortran, or it could be the incorrect format of the boundingBox when I made the call. I have uploaded the C++ code that runs successfully for your reference, and I would appreciate it if you could take a look. Thank you! precice-config.xml (1.1 KB) solver_fluid.zip (2.4 KB)
Comparing to the fortran solverdummy, I don’t see anything clearly wrong either. It could indeed be an issue with the Fortran bindings, but we need to check some things first.
Could you check which meshID you get after
CALL precicef_get_mesh_id(meshName, meshID)
and which meshID the error message returns? Are they the same, or different? (suggested by @DavidSCN)
I am confused: In your first post, you wrote that:
Don’t you get this error message anymore?
The interesting part is not if the two solvers have the same mesh ID, but if you get the same ID in the error message and by the precicef_get_mesh_id().