From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4c4e1add3e6e1767 X-Google-Attributes: gid111c93,public From: ruede@NOSPAM.math.uni-augsburg.de (Ulrich Ruede) Subject: Re: Official Digital/Compaq Support for Linux Date: 1998/07/10 Message-ID: <6o5reg$a4c$1@sparcserver.lrz-muenchen.de>#1/1 X-Deja-AN: 370294201 Distribution: world Sender: ruede@marbella.math.uni-augsburg.de References: <359c2adf.71443690@usenet.pa.dec.com> <35A3DFD2.830C136D@west.net> <6o1nuj$u4k@ilfb03.tuwien.ac.at> <6o2hak$44d$1@sparcserver.lrz-muenchen.de> <6o4bje$8sk@ilfb03.tuwien.ac.at> Content-Type: text/plain; charset=us-ascii Organization: LAM_1 Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha In article <6o4bje$8sk@ilfb03.tuwien.ac.at>, Gerhard Schneider writes: > Ulrich Ruede wrote: > >: My multigrid program to solve Poisson's equation does not use any libraries. >: To solve a system with 1 Mio unknons it runs in > > For the ordinary user it's not worth to write the thousands of lines of > assembler code you need if you don't use the libc or libm. > > Otherwise your program won't accept input or produce any output (does it ? :-) I meant to say: The multigrid subroutine that solves the Poisson equation does not use any library functions. I of course use Fortran I/O which in turn uses libraries. But the solver itself does not use any trigonometric or exponential functions (as would at some stage FFT based solvers). The algorithm only uses +,-,*, (not even /). In fact, the algorithm could run in fixed point (integer) arithmetic. Since some people have asked, I've put the souce, makefile, and binaries (both DU and linux/g77) on ftp://malaga.math.uni.augsburg.de/incoming/ruede/neumann Multigrid algorithms are the fastest known for this type of problem. They can be proven to solve the Poisson equation (in a rectangle) in 35 operations per unknwn, independent of the problem size (and not much more in more general cases). In my program, however, I *over-solve* the problem for benchmarking purposes. > P.S.: If you use any trigonometric functions, square root etc. TRY WESNER's > libfm (it's worth it's 0$)!!! I will try it when I have a use for it. At the moment, I am mostly using DU anyway, for performance reasons. UR __________________________________________________________________________ Ulrich Ruede, Institut fuer Mathematik, Universitaet Augsburg D-86135 Augsburg, Germany, e-mail: ruede@NOSPAM.math.uni-augsburg.de Tel: +49 821 598 2190, Fax: +49 821 598 2339 URL: http://scicomp.math.uni-augsburg.de/ruede/me.html