At 12:55 21-02-2001 -0300, you wrote:
>Hi,
>
>Explaining my question:
>
>
>1) I have a file named "prog_area.f90"
Make the following changes to your program:
PROGRAM area_P
USE aux
IMPLICIT NONE
REAL :: r
READ*, r
PRINT*, "Area = ", area(r)
END PROGRAM area_P
2) and another file named "aux.f90"
MODULE aux
REAL, PARAMETER, pi = 3.142
contains
function area(r)
real :: area, r
area = pi * r * r
end function
END MODULE aux
>
>3) My Operating system is linux slack7.1 and my compiler is a NAGware
>F90-compiler version.
>
>
>4) I would like to know how I may proceed to run it.
>
> - I have to compile the two files? or
> - I have to compile with extra parameters?
> _ I have to compile only the file "prog_area.f90"
>
>
>Thanks,
>
>Eduardo Melione Abreu
>
--
Meilleures Salutations,
Kindest Regards,
/---
Jan van Oosterwijk
Computing Centre
Delft University of Technology
Postbus 354
2600 AJ Delft
Netherlands / Pays-Bas
mailto:[log in to unmask]
http://huizen.DTO.TUDelft.NL/vanOosterwijk
Phone: +31 15 27 85017
Fax: +31 15 27 83787
|