CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   What means % in Fortran? (http://www.cfd-online.com/Forums/main/7440-what-means-fortran.html)

What means % in Fortran April 19, 2004 23:27

What means % in Fortran?
 
Hi, friends:

Can you tell me what means A%B in Fortran? Where both A and B are arrays, and can be of different dimensions.

Thank you,

Wen

J April 20, 2004 03:25

Re: What means % in Fortran?
 
It's a derived type.

================================================

For example you make a type called circle which one can store its color and radius:

type circle real::radius char(len=10)::color end type circle

Now in the program to store the circle's radius you type

circle%radius=15.0


Wen Long April 20, 2004 14:34

Re: What means % in Fortran?
 
cool, it's like C++ and Java thanks,


All times are GMT -4. The time now is 09:09.