About EQUIVALENCE in F90
From: Arman Khalatyan (arm2arm_at_thsun1.jinr.ru)
Date: 05/19/04
- Next message: Jose L G?mez Dans: "Leading zeroes in fortran binary internal write"
- Previous message: Erik: "Re: Interpretion of file name suffixes"
- Next in thread: Richard Maine: "Re: About EQUIVALENCE in F90"
- Reply: Richard Maine: "Re: About EQUIVALENCE in F90"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 May 2004 11:29:13 -0700
Hello!
I have in my F77 code:
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
integer lspecies(10)
real extras(100)
EQUIVALENCE (lspecies(1),extras(11))
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
How to organize such a thing with F90 pointers.
I tried :
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
real , target ::extras(:)
integer, pointer:: lspecies(:)
subroutine AllocateMemory
allocate(extras(100))
lspecies=>extras(11:21)
end subroutine AllocateMemory
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
But ifc compiler and pgf90 compilers returning errors:
_________________________________________________
pgf90:Illegal POINTER assignment - type mismatch
ifc:This pointer and the target must have the same type, type parameters and rank
_________________________________________________
Please help me.
Cheers Arman.
- Next message: Jose L G?mez Dans: "Leading zeroes in fortran binary internal write"
- Previous message: Erik: "Re: Interpretion of file name suffixes"
- Next in thread: Richard Maine: "Re: About EQUIVALENCE in F90"
- Reply: Richard Maine: "Re: About EQUIVALENCE in F90"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|