Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29283 Discussions

Returning an allocatable array from fortran to c++

adrian_holt
Beginner
510 Views
I have a module with the following code
...
...
Double Precision, Allocatable :: myArray(:,:)
...
...
MySubroutine()
...
...
Allocate(myArray(var1, var2))
....
If I am calling mySubroutine from C++what is the besy wayto get myArray out of the module for processing by C++ ?
Any tips or help would be of great help
Regards,
Adrian Holt
0 Kudos
1 Reply
Steven_L_Intel1
Employee
510 Views
I would suggest that you look at the User's Guide section on mixed-language programming; in particular, the parts about variable naming conventions in modules and Fortran array descriptors.
0 Kudos
Reply