Hi dear friens,
I have the following problem that i think might be a solution
suppose to heve the following code:
[code/]
real, dimension(1:3), target :: max
real, dimension(1:4), target :: min
real, dimension), pointer :: p1,p2
p1=>max
p2=>min
[/code]
so far it is all ok.
What i'd like do is the possibility to call all the targets (max and min) by using only one pointer. I'm not able to find a way to define a p3 (pointer) where p3(1),p3(2),p3(3),p3(4),p3(5),p3(6),p3(7) will point to max(1),max(2),max(3),min(1),min(2),min(3),min(4) .
Ciao, Albi
I have the following problem that i think might be a solution
suppose to heve the following code:
[code/]
real, dimension(1:3), target :: max
real, dimension(1:4), target :: min
real, dimension), pointer :: p1,p2
p1=>max
p2=>min
[/code]
so far it is all ok.
What i'd like do is the possibility to call all the targets (max and min) by using only one pointer. I'm not able to find a way to define a p3 (pointer) where p3(1),p3(2),p3(3),p3(4),p3(5),p3(6),p3(7) will point to max(1),max(2),max(3),min(1),min(2),min(3),min(4) .
Ciao, Albi