I think you may have been exposed to a bit too much C or late, frank ;-)
To access members of a user-defined type in fortran, you use %, not .
Eg.
B%a = 1
Drew
On Tuesday, October 23, 2001, at 06:10 , frank_ouyang wrote:
> Hello:
> The following is my programe:
> What wrong with it?
> The program is in fixed format of fortran,and compiled on Ms PW 4.0!
>
> Thanks;
>
>
>
> type Stream
> real a
> end type Stream
> type (Stream)B
> B.a=1
> call A(B)
> end
>
> subroutine A(B)
> type (Stream)B
> write(*,*)B.a
> return
> end
>
>
>
>
>
>
> --http://www.eyou.com
> --Œ»∂®ø…øøµƒ√‚∑—µÁ◊”–≈œ‰ ”Ô“Ù” º˛ “∆∂Ø È«© »’¿˙∑˛ŒÒ
> Õ¯¬Á¥Ê¥¢...“⁄” Œ¥æ°
>
================================
Dr. Drew McCormack
Department of Theoretical Chemistry
Science Faculty
Free University Amsterdam
De Boelelaan 1083
1081 HV Amsterdam
The Netherlands
Email :: [log in to unmask]
Tel. :: +31 20 44 47623
Fax :: +31 20 44 47629
|