sourceryinstitute / OpenCoarrays

A parallel application binary interface for Fortran 2018 compilers.
http://www.opencoarrays.org
BSD 3-Clause "New" or "Revised" License
247 stars 56 forks source link

[DRAFT] Swig fortran modules and c wrappers #735

Closed ktras closed 3 years ago

ktras commented 3 years ago

Summary of changes

Added a directory swig-modules in /src to temporarily house the files created by the swig tool. These files include fortran modules and c wrappers that were created when the swig tool was run on libcaf.h libcaf-gfortran-descriptor.h and libcaf_version.h. The swig tool was used running this command swig -fortran -module name-of-module-to-create name-of-file-to-run-on.

NOTE: Running the tool on libcaf.h caused an error libcaf.h:240: Error: Syntax error in input(1). After commenting out line 240 of libcaf.h, the tool was successful.

Rationale for changes

Because there is interest in implementing a fortran interface for OpenCoarrays.

Additional info and certifications

This pull request (PR) is a:

I certify that

ktras commented 3 years ago

There were also warnings when the tool was run on libcaf-gfortran-descriptor.h.

libcaf-gfortran-descriptor.h:44: Warning 503: Fortran identifiers may not begin with underscores or numerals: renaming '_stride' to 'stride_'
libcaf-gfortran-descriptor.h:46: Warning 503: Fortran identifiers may not begin with underscores or numerals: renaming '_ubound' to 'ubound_'
libcaf-gfortran-descriptor.h:71: Warning 462: Unable to set variable of type descriptor_dimension [].
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.