FORTRAN Calling C# DLL / CSharp DLL

FORTRAN Calling C# DLL / CSharp DLL

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!

 

 

 

 

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

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.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today