comp.lang.fortran
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.fortran Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  module or interface         


Author: Klemens
Date: May 4, 2008 23:48

Hi all,

trying to speed up a f90 program I was thinking about the difference
if I put my subroutines in a module or if I define an interface. Will
there be any differences in speed for these two approaches ?

Thanks for your help in advance !

Klemens
5 Comments
  Treacherous Behavior of "gfortran" Compiler?         


Author: qquito
Date: May 4, 2008 11:26

Dear Everyone:

I use a "Power Mac G5", and "gfortran" compiler for my Fortran 90
codes. (The same compiler also compiles Fortran 95 and 03.)

Recently on two occasions, I attempted to treat the size of an array
as larger than it was defined at the beginning of my Fortran 90 code.
(This was a long code and was modified from an earlier one, and there
were many arrays whose sizes were defined by parameters given in the
same code, so the problem was not easily spotted simply by viewing the
source code.) In other words, it is like

..........................................
integer, parameter:: max=10
real:: a(max)

integer:: i

do i=1, 50
a(i)=float(i)*100.0
enddo
..........................................
Show full article (1.17Kb)
10 Comments