Skip to content
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

Fortran interface improvement #4

Open
olivhoenen opened this issue Nov 9, 2016 · 0 comments
Open

Fortran interface improvement #4

olivhoenen opened this issue Nov 9, 2016 · 0 comments

Comments

@olivhoenen
Copy link

A few things are bothering me in the Fortran interface as it is implemented at the moment:

  • codebase layout: Fortran compatible functions are defined in src/cpp/muscle2 (fortranmuscle.h/.cpp), src/fortran contains only example programs

  • binding: implementation of fortranmuscle.h/.cpp is outdated and lacks control over the compatible types, and requires to define C void functions with all parameters passed by address (non-standard C interface). Definition of wrapper functions using ISO_C_BINDING should be considered instead, for instance using the standard C interface (cmuscle.h) as target to our Fortran wrappers (in order to avoid code duplication and cherry-picking of API functions to be provided in a given interface)

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

No branches or pull requests

1 participant