Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

How to pass a user-defined type to C++

lihua325
Beginner
383 Views
Hi,
In my fortran, I have a type called velocity:
type velocity
real*8:: x
real*8:: y
end type velocity
I also have
type(velocity), dimension(:,:), allocatable::U
Now I want to pass this U to a C++ function, can anyone give me an example to show me how to do it?
thanks a lot.
0 Kudos
0 Replies
Reply