Massachusetts Institue of Technology
Dr. Martin Reuter Wikipedia Affiliate Button

Apack++ 1.2 Patch

ARPACK++ 1.2 Patch
Our patch arpack++1.2.patch.diff fixes ARPACK++1.2 to run with compiler g++ 4.0.2
It fixes the compile errors encountered when compiling ARPACK++ with more recent compiler versions!
"ARPACK++ is an object-oriented version of the ARPACK package. ARPACK is a well known collection of FORTRAN subroutines designed to compute a few eigenvalues and eigenvectors of large scale sparse matrices and pencils."
Changes:
  • Use of this-> pointer for members of template classes
  • Includes corrected (e.g. math.h -> cmath)
  • Namespace std:: added
Typical errors:
  • 'n' was not declared in this scope
  • 'nconv' was not declared in this scope
Apply patch:
Make sure that arpack++ contains the version 1.2
The first line in arpack++/README should be: "ARPACK++ version 1.2. Feb 20, 2000."
>ls
   arpack++/    arpack++1.2.patch.diff
>patch -p 1 -d arpack++ < arpack++1.2.patch.diff
Download:
Gentoo Users (not using libg2c):
  • just remove '-lg2c'
  • or try instead: '-lgfortran -lgfortranbegin -lnsl'
Locations of visitors to this page
Martin Reuter - MIT - Cambridge, MA, USA - EMail: reu...@mit.edu
Last modified 24.11.2009 -- [xhtml] -- [css] -- [welcome]