- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page