F90 derived type component as array
- From: kus@xxxxxxxx
- Date: 29 Nov 2005 05:18:18 -0800
Sorry,
is there in F90 some restriction(s) for using of components (which are
really arrays) of derived types
instead of arrays itself ?
I.e. if I have for example something like
TYPE twoarray
real, dimension (:,:) ::A
real, dimension (:,:) ::B
END TYPE twoarray
TYPE(twoarray), DIMENSION(100) ::struct
- may I use struct(k)%B in any place where I may use simple
2-dimensional array ?
BTW, do I understand correctly that (in reality) memory requirements
for twoarray structure are
simple size(A)+size(B), i.e. "mapping" to the memory of this type is
simple "memory for A" and
then "memory for B" w/o any "control" information ?
Mikhail Kuzminsky
Zelinsky Institute of Organic Chemistry
Moscow
.
- Follow-Ups:
- Re: F90 derived type component as array
- From: Jugoslav Dujic
- Re: F90 derived type component as array
- Prev by Date: Re: Compaq Visual Fortran discontinued: upgrade to Intel Visual Fortran?
- Next by Date: Re: Compaq Visual Fortran discontinued: upgrade to Intel Visual Fortran?
- Previous by thread: (OOT)Numerical methods in geophysics
- Next by thread: Re: F90 derived type component as array
- Index(es):
Relevant Pages
|