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

I have used NLEQ1 and other CodeLib packages for a number of years using a number of different compilers on different platforms and operating systems. These are high quality, robust, portable codes, but some preparatory work is required to call them from your code. Most older F77 codes assume that storage is static; many assume that by default storage is set to zero prior to execution.

My hunch is that your errors have more to do with how you call and pass parameters -- especially two- or higher-dimensional arrays -- to NLEQ1 than with which compiler you use.

N. Shamsundar
University of Houston
.



Relevant Pages

  • Re: how to get the return address in Fortran?
    ... > The system-dependent bit is almost superfluous in that compilers are ... > still actually different compilers. ... > are using a Fortran compiler on the same system that can interoperate ... In the early x86 days, Fortran and C used different calling conventions, ...
    (comp.lang.fortran)
  • Re: Compiled with MS FORTRAN 5 my Program executes in colour but not with g95
    ... If it works w/ other than the MS or CVF compilers, ... Intel 9.x (or any other fortran compiler) and probably would need ... other USE statements and some changes for the CVF internals that Intel ...
    (comp.lang.fortran)
  • Re: Where are the Opteron F vs. Woodcrest reviews?
    ... listing of those compilers and tried to improve on it, ... The Fortran compiler had no problem doing this, ... generated this huge wad code using multiple pointers, counters, ... Apparently going backwards was not its strong point. ...
    (comp.arch)
  • Re: Question about Dungeon game on the PDP
    ... >> compilers, and one of the programs I use is Advent. ... the DEC Fortran compiler was not released until it could compile ... Not _all_ of Intel is monstrously evil. ...
    (comp.sys.dec)
  • NLEQ1 and open source Fortran
    ... When I compile it using Intel's Fortran ... comercial software I tried compiling my program using GNU's ... When doing this I get the solver stops due to singular matrix ... fortran compilers and not with open source compilers?? ...
    (comp.lang.fortran)