Skip to content

Conversation

MakisH
Copy link
Member

@MakisH MakisH commented Oct 10, 2025

Overview:

  • New API methods for Just-in-time data mapping
  • New API methods for profiling
  • Added missing precicef_set_mesh_triangles
  • Several fixes
  • Added missing constructor with a custom MPI communicator

Most of the new changes are contributed by @kcooley-cvd.

After merging, it is time to finally start making proper releases, with versions.

MakisH and others added 8 commits March 23, 2025 22:53
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.
@MakisH MakisH requested a review from fsimonis October 10, 2025 14:51
@MakisH MakisH self-assigned this Oct 10, 2025
Copy link
Member

@fsimonis fsimonis left a 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

@fsimonis fsimonis self-requested a review October 13, 2025 09:25
Copy link
Member

@fsimonis fsimonis left a 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 👍

@MakisH MakisH merged commit 127116e into master Oct 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants