- #1
seneika
- 4
- 0
Hi,
can someone help me with this one?
I'm trying to merge several 1d-arrays into one 2d-array. Is there any intrinsic routine/function in fortran 90/95 to do so?
I also thought of pointers. Can I assign a 2d-pointer to more than one object so I have
a pointer array whose columns point to different 1d-target arrays?
I naively tried to do
...
double precision,dimension(:,:),pointer :: ptr_array
...
ptr_array(*,1)=>x(*)
ptr_array(*,2)=>y(*)
...
what didn't work. Can I do something like this?
Thanks!
can someone help me with this one?
I'm trying to merge several 1d-arrays into one 2d-array. Is there any intrinsic routine/function in fortran 90/95 to do so?
I also thought of pointers. Can I assign a 2d-pointer to more than one object so I have
a pointer array whose columns point to different 1d-target arrays?
I naively tried to do
...
double precision,dimension(:,:),pointer :: ptr_array
...
ptr_array(*,1)=>x(*)
ptr_array(*,2)=>y(*)
...
what didn't work. Can I do something like this?
Thanks!