comp.lang.fortran
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
September 2008
motuwethfrsasuw
1234567 36
891011121314 37
15161718192021 38
22232425262728 39
2930      40
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
  BLOCK WAS VECTORIZED.         


Author: Fatemeh
Date: Sep 20, 2008 00:22

Dear all

when I compile my code I see the following lines:

main-goodformat2.f90(71): (col. 7) remark: BLOCK WAS VECTORIZED.
main-goodformat2.f90(71): (col. 7) remark: BLOCK WAS VECTORIZED.
main-goodformat2.f90(82): (col. 8) remark: BLOCK WAS VECTORIZED.
main-goodformat2.f90(82): (col. 8) remark: BLOCK WAS VECTORIZED.
main-goodformat2.f90(143): (col. 7) remark: BLOCK WAS VECTORIZED.
main-goodformat2.f90(144): (col. 7) remark: BLOCK WAS VECTORIZED.
main-goodformat2.f90(144): (col. 7) remark: BLOCK WAS VECTORIZED.
main-goodformat2.f90(147): (col. 7) remark: BLOCK WAS VECTORIZED.

Can these lines cause error in the result?
Best,
Fatemeh
2 Comments
  Passing module procedures to external procedures -- type issues         


Author: Rich Townsend
Date: Sep 19, 2008 18:52

Hi all --

Consider the following module:

---CUT---
module foo

implicit none

contains

subroutine main_sub ()

call internal_sub()

contains

subroutine internal_sub()

call QAG(other_sub)

end subroutine internal_sub

end subroutine main_sub

subroutine other_sub ()

end subroutine other_sub

end module foo
---CUT---
Show full article (0.98Kb)
5 Comments
  "Final" Procedures         


Author: Gary Scott
Date: Sep 19, 2008 09:46

Here's what I need in a "final" procedure.

Of course normal termination isn't a problem, but I have various I/O
boards that I need to ensure are properly terminated/safed (put in a
known state (e.g. not transmitting, outputs reconfigured to inputs) in
the event of a program crash. This is in part to ensure that
transmitters aren't overheated from prolonged operation (e.g. stuck in
the xmit state) or shorted because someone starts dismantling the test
setup thinking that the devices are automatically safed upon program
crash.

How is that handled normally? Will any of the new f2k3, f2k8 features
help me in this area (fault detection/recovery)?
--

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library: http://www.fortranlib.com

Support the Original G95 Project: http://www.g95.org
-OR-
Support the GNU GFortran Project: http://gcc.gnu.org/fortran/index.html
Show full article (1.00Kb)
5 Comments
  PASSING ARRAY FORTRAN DLL TO/FROM VBA EXCEL         


Author: kis
Date: Sep 19, 2008 08:28

Hello Experts,

It might not be appropriate to address this question here.

I tried to create Fotran dll file and asked VBA to call it. A very
simple example:
Let's say we have a Fortran subroutine that multiplies all elements of
an array by 10.
Then, VBA Excel has an array as input and calls this (dll) fortran
subroutine and will get the array multiplied by 10.

I always fail to do so with array as input, however find no problem
with single-valued variable.

Look forwards to hearing from you.

Thanks,
Irfan
1 Comment
  DATA statement to initialise arrays         


Author: bru
Date: Sep 19, 2008 06:18

Hello,

I'm using Sun f77 and pgf77 compiler and both the following sequences
does not work!! (It comes from a legacy code)

PARAMETER (NTRMAX=50)
LOGICAL LOST(NTRMAX)
DATA LOST / NTRMAX*(.FALSE.)

PARAMETER(MXL= 10, MXD= 10)
DIMENSION NEwVAL(MXL,MXD)
/ DATA NEWVAL / (MXL*MXD)*0/

which is the standard writing for those DATA statements?

Thanks in advance
8 Comments
  Re: Praise for Gfortran (finally)         


Author: Phillip Helbig---remove CLOTHES to reply
Date: Sep 19, 2008 02:32

In article
<06fe625c-6212-4723-b31c-fa57b8fa8c69@s9g2000prg.googlegroups.com>,
"tholen@antispam.ham" ifa.hawaii.edu> writes:
>> I think the typical way one gets deeply involved with gfortran
>> development is as follows:
>
> I'm interested in seeing gfortran ported to another operating
> system. I'm assuming that gfortran itself is written in C or
> some variant of C, which means a prerequisite is having a C
> compiler for that operating system, but as far as I know, the
> available version of the gnu C compiler is too old. Perhaps
> someone can list the steps necessary to port gfortran to
> another operating system.

Shouldn't porting it be trivial? That is, just compile and go? Or is
not everything implemented in the source code of the compiler, but
instead makes use of system calls etc?
no comments
  using a lapack routine         


Author: Ron Ford
Date: Sep 18, 2008 18:37

I downloaded lapack recently and wanted to put a dent in it by calling one
of its subroutines. I hoped to call one that would determine the
eigenvalues of a real matrix, but that doesn't seem to be on the menu. A
person seems to need to put quite a bit of effort to determine exactly what
the subroutines do, and deciphering the titles is one step on that path.

I found SGEHRD.f, where I think the S is single precision, the GE is a
general matrix, the H is Hessenberg and RD might be reduction. So I'll be
hoping to take a eal matrix and use lapack to give me the Hessenberg form,
which, I can then use for bigger and better things.

With the fortran, so far I've got:

implicit none
integer, parameter ::n = 5
integer, dimension(n,n):: a
integer, dimension(n,n):: b
Show full article (4.34Kb)
8 Comments
  Combining Lua and Fortran         


Author: nobat
Date: Sep 18, 2008 07:39

For its simplicity, power, small footprint and particularly its speed,
we would like to integrate Lua in our application suit. We have two
options:

First: external gluing (the same way as Tcl or Python)
Second: Internal gluing (probably using Lua SDK via ISO-C-Binding)

I'd like to know if some of you have experience / suggestion on
combining Lua (as a glue language) and Fortran applications?

I'd appreciate all inputs / thoughts on this

Thank you

nobat
2 Comments
  Praise for Gfortran (finally)         


Author: Al Greynolds
Date: Sep 17, 2008 16:14

Over the last few years I have developed a 30,000 line Fortran-95
engineering application using simultaneously several compilers (XLF,
LF95, G95, and IVF). During that time I toyed with Gfortran and put
up with the 2 steps forward, 1 step back of each binary build.
However, I'm now happy to report my "last" issue with it has been
resolved and more importantly performance is almost identical to XLF
and IVF in most cases. Congratulations to all involved with this
project!

Al Greynolds
www.ruda.com
42 Comments
  Problem with array dereferencing during using gdb with gfortran code         


Author: beppo_anmeldung
Date: Sep 17, 2008 15:51

Hello,

I use the gfortran compiler and gdb for debugging. I want to check
arrays in subroutins like in the following example:

$ cat array.f90
program Test
call sub(5)
contains

subroutine sub(n)
integer, intent(in) :: n
integer, dimension(n) :: A
integer :: i

do i = 1, n
A(i) = i
end do
print *, A

end subroutine
end program
Show full article (1.59Kb)
2 Comments
1 2 3 4 5 6 7 8 9