LLNL / shroud

Shroud: generate Fortran and Python wrappers for C and C++ libraries
BSD 3-Clause "New" or "Revised" License
90 stars 7 forks source link

Fix multiple Fortran interfaces bind(C) to same routine #312

Closed ltaylor16 closed 1 year ago

ltaylor16 commented 1 year ago

The xlf compiler complains on vectors.yaml: 1516-194 (S) A binding label must not be the same as the name of a program unit, common block, external procedure, and another binding label, ignoring differences in case.

Change Fortran helper to accept a type(C_PTR) instead of having an interface for each possible type as 'integer :: c_var(*)'.

Needed to add TARGET attribute to some variables to allow use of C_LOC.