Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

FORTRAN Calling C# DLL / CSharp DLL

Carsten_A_
Beginner
529 Views

Hello everbody,

I am working on my master thesis. The final goal is to implement a UMAT in ABAQUS.

My adviser will write a DLL in C#. My first step will be to import that DLL in FORTRAN. I found a lot of examples to import FORTRAN DLLs in C# but not the other way around. Is it possible to do this without a wrapper in C++? found here:

https://software.intel.com/en-us/forums/topic/287351

Does anybody have an example for me? I do not have many experience in programming. Therefore, it might be good for me to get a realy short one. Maybe a double 2D-array [,] from C# to FORTRAN (real(8)).

Thx a lot in advance!

 

 

 

 

0 Kudos
2 Replies
Yu__Tao
Beginner
529 Views

Hi Carsten,

It seems inevitable to have an c++ wrapper between unmanaged (Fortran) and managed (c#) code. I found an artice to guide you calling c# dll from Fortran step by step.

http://blog.sciencenet.cn/blog-697453-549648.html

0 Kudos
Steven_L_Intel1
Employee
529 Views

This is a duplicate of https://software.intel.com/en-us/forums/topic/515995 One can call Fortran DLLs directly from C# - no C++ required.

0 Kudos
Reply