Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

C# calling Fortran Subroutine

$
0
0

 

Where is the documentation showing steps required to call a Fortran Subroutine from C#.

I am trying to import the Fortran Subroutine as follows:

        [DllImport ("WDSys.FortranCode.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]         private static extern void WDECONMATSOLV (ref int numRows, [In,Out] ref double[] matrixA, [In,Out] ref double[,] vectorB);

the start of the Fortran Subroutine is:

      Subroutine WDECONMATSOLV(n, a, b)

c     DEC$ATTRIBUTES DLLEXPORT::WDECONMATSOLV

       parameter (MNROW=30, MNCOL=15)

c

       double precision

      +a(MNROW,MNCOL) , b(MNROW)      , fact1         ,

If someone could tell me where the documentation is. That would help.  If the documentation isn't available how do you figure it out?

 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>