(j3.2006) Interoperability of dummy arrays
Aleksandar Donev
adonev
Thu Nov 26 13:57:25 EST 2009
Hello,
Ok, this is embarrassing, but...I was reading 15.3.6 again and realized
I cannot quite figure this out. What is the C prototype for this
interoperable routine?
subroutine test(n,x,y)
use iso_c_binding
integer(c_int), dimension(3), intent(in) :: n
real(c_double), dimension(n(1),n(2),n(3)) :: x
real(c_double), dimension(n(1),n(2),n(3),*) :: y
end subroutine
Happy Thanksgiving,
Aleks
--
Aleksandar Donev, Ph.D.
Luis W. Alvarez Postdoctoral Fellow
Center for Computational Sciences and Engineering (https://ccse.lbl.gov)
Lawrence Berkeley National Laboratory (http://www.lbl.gov)
E-mail: adonev at lbl.gov
Phone: (510) 486-5782 Fax: (510) 486-6900
Address: MS 50A-1148, LBL, 1 Cyclotron Rd., Berkeley, CA 94720
Web: http://cims.nyu.edu/~donev/
More information about the J3
mailing list