Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call fortran code from c#

Tags:

c#

fortran

A have a lot of code written in FORTRAN 77. I want start developing with c# using that code. What should I do?

  1. Import FORTRAN DLLs into managed code
  2. Convert the code

For each of the options, could you please tell me how to do it. Is there any performance problem with first one?

Thank you.

like image 454
Sergey Kucher Avatar asked Jun 08 '11 22:06

Sergey Kucher


1 Answers

See http://msdn.microsoft.com/en-us/library/26thfadc.aspx. I would go for option 1. In most cases it will be less work and produce better performance, assuming that you use Fortran for number crunching.

like image 52
Achim Avatar answered Sep 23 '22 02:09

Achim