Quantcast
Channel: Intel® Fortran Composer XE
Viewing all articles
Browse latest Browse all 1424

Function that returns a derived type...

$
0
0

I was wondering if there is anyway that a fortran function can be used to return a derived type.  I am building a fortran function (compiled into a DLL) that will be called by a JAVA program.  This generally works well, and returning regular variables (integers, reals, etc) is really very simple.  However, it would be nice to be able to return a 'class' in the form of a derived type.  There is a way to map classes to derived types as passed arguments, but I have not been able to find a way to make it work with a return from a function call.


Viewing all articles
Browse latest Browse all 1424

Trending Articles