-
-
Notifications
You must be signed in to change notification settings - Fork 7
Release October 2025 #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Benjamin Rodenberg <[email protected]>
The C++ function already exists but the Fortran binding was missing. See issue #38
`precicef_set_vertex` declared dummy arguments named `position` and `vertexID`, but had specifications for arguments named `coordinates` and `id`. This caused compilation warnings because `position` and `vertexID` were implicitly typed as real variables of default kind, which is not necessarily the same as kind `c_double`. Correct C interoperability therefore could not be assured, especially since `coordinates` was specified as an array of size 3 whereas implicitly- typed `position` would be a scalar. Other procedures in the module name dummy arguments as `coordinates` and `id`, so the dummy argument names for `precicef_set_vertex` have been changed to match.
Instead of using the entire iso_c_binding module in each routine, import only the necessary types from the module scope. Prevents warnings emitted by some compilers and analysis tools about use-ing entire modules.
Intents for all arguments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edit: I forgot to make the mod ...
I get the following error when building the solverdummy using the makefile:
f77 -std=f2003 -g solverdummy.f90 -o solverdummy -I../.. -L/path/to/precice/ -lprecice
solverdummy.f90:2:7:
2 | use precice
| 1
Fatal Error: Cannot open module file ‘precice.mod’ for reading at (1): No such file or directory
compilation terminated.
make: *** [Makefile:6: solverdummy] Error 1
Note that the folder contains a precice.f90
, not precice.mod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compilation of the module and the solverdummy work 👍
Overview:
precicef_set_mesh_triangles
Most of the new changes are contributed by @kcooley-cvd.
After merging, it is time to finally start making proper releases, with versions.