Re: NLEQ1 and open source Fortran



rlopneg wrote:
> Hello I've been having some troubles trying to solve al large scale
> nonlinear system using nleq1. When I compile it using Intel's Fortran
> Compiler everything works properly, but since I'm trying not to use
> comercial software I tried compiling my program using GNU's (gcc)
> GFortran. When doing this I get the solver stops due to singular matrix
> problems. I've checked that the SMALL and EPMACH values are the right
> ones for my machine, and I'm using the files downloaded right from
> http://www.zib.de/Numerik/numsoft/CodeLib/codes/nleq1/. And besides
> that, the solver works fine with Intel's fortran...
>
> Does any body know how to correct this, or why it works on comercial
> fortran compilers and not with open source compilers??
>
> thanks,
> Rodrigo

Does g95 fail only on large problems, or on all problems? If the
latter, do your testing on the smallest problem you can make up.

You are lucky to have access to both compilers at the same time.
Instrument the program with a number of print statements for
intermediate results, and run with both compliters, then locate where
g95 goes wrong in the output. Instrument some more till you find the
problem and either file a bug report or fix the source.

Daniel Feenberg
NBER
feenberg is at nber dotte org

.



Relevant Pages

  • Re: Is it time to legitimise REAL*8 etc?
    ... Some vendors phased out their F77 compilers over 10 ... No need to support a seperate F77 compiler as, ... experience with F77) that the F95 programming is safer than the F77 ... Authors are not chosing more recent Fortran ...
    (comp.lang.fortran)
  • Re: what is the most suitable Linux platform for Programmers and software developers
    ... C, C++, Perl, Python, Lisp, and a bunch of other languages are supported ... There are FORTRAN compilers, but FORTRAN ... Look at the Linux ...
    (comp.os.linux.misc)
  • Re: Is it time to legitimise REAL*8 etc?
    ... Some vendors phased out their F77 compilers over 10 ... No need to support a seperate F77 compiler as, ... experience with F77) that the F95 programming is safer than the F77 ... COMMONs remain available with any FORTRAN version. ...
    (comp.lang.fortran)
  • Declaration to get 8-bit (or 16-bit) integer?
    ... Supported by all the current compilers that I've tried it on. ... Not likely to become standard in the foreseeable future. ... Syntax standard-conforming, but semantics not guaranteed of course. ... The meaning of the code not obvious to anyone but a Fortran guru. ...
    (comp.lang.fortran)
  • Re: Casting malloc
    ... If he can make a strong case for the diagnostics, ... Uh, again, Fortran is a better tool for some sorts of work. ... familliar what Fortran compilers only in the code they generate; ... Given a variety of hard problems, Fortran consistently came up much faster with default code and no explicit optimizations. ...
    (comp.lang.c)