Skip to content

Example code on how to make Fortran interoperate with the .NET framework.

License

Notifications You must be signed in to change notification settings

cakkermans/FortranInterop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fortran and C# .NET Interop explained

This repository contains documentation and example code on how to make Fortran interoperate with the .NET framework.

An introduction to the strange world of mixed language programming with FORTRAN and C# .NET code

  1. Introduction to FORTRAN interopability with .NET
  2. Exchanging complex data
  3. ISO C Binding module
  4. Callbacks and strings (unfinished)
  5. Mixed mode assemblies (unfinished)

Example code

The example code is complete and covers all topics, including callbacks, strings and mixed mode assemblies. The example code is comprised of:

  1. Interop.f90 contains the Fortran code.
  2. The FortranInterop folder containing the Visual Studio solution.
    1. FortranInterop project demonstrating PInvoke
    2. FortranGlue project demonstrating a Mixed mode assembly
    3. FortranInteropTests proving both integrations using unit tests

References

Fortran Wiki on interoperability

The articles and example code were initially published at Codeproject.com.

License

MIT X11

About

Example code on how to make Fortran interoperate with the .NET framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published