From 0d19fb613c93d17a9a6ced50930e04c3f431f44c Mon Sep 17 00:00:00 2001
From: Daniel Arndt
Below is a short summary of instructions on how to compile and install
- ARPACK by hand (for the case you wish to do so).
+ ARPACK by hand (for the case you wish to do so)
+ or using ARPACK-NG
+ that equips ARPACK with a CMake build system.
How to compile and install ARPACK by hand
@@ -36,8 +38,7 @@
further instructions please read the README file or the
instructions.
We will explain here in a few steps what has to be done to be able
- to compile
- ARPACK.
+ to compile ARPACK.
- Note: For compilation of ARPACK we emphasise
- adding the compiler flag -fPIC
. This is a definite
- requirement if we are compiling deal.II with
- shared libraries (which is the default). If we had preferred to be
- compiling deal.II without shared libraries,
- that's ok too; in that case we would do exactly the same thing
- as described above, but this time omitting
- the -fPIC
flag from the scheme.
+ Note: For compilation of ARPACK we emphasise
+ adding the compiler flag -fPIC
. This is a definite
+ requirement if we are compiling deal.II with
+ shared libraries (which is the default). If we had preferred to be
+ compiling deal.II without shared libraries,
+ that's ok too; in that case we would do exactly the same thing
+ as described above, but this time omitting
+ the -fPIC
flag from the scheme.
- Try to run one of the examples and compare the output.
- How the output should look like is stated in the README
- that can be found in the EXAMPLES
directory.
+ First clone the ARPACK-NG
+ repository. The following commands will set up an appropriate configuration:
+
+
+ cd arpack-ng + mkdir build + cd build + + cmake \ + -DEXAMPLES=ON \ + -DMPI=ON \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX:PATH=$HOME/ARPACK-NG \ + ../ + + make + make install ++ + You will need to adjust the path into which you want to install ARPACK-NG + in the CMAKE_INSTALL_PREFIX line. If you do not have MPI installed you + should use
-DMPI=OFF
instead.
+
- If that output you produced looks like it should you can
- proceed to compile deal.II with
- ARPACK.
+ After installing ARPACK or ARPACK-NG
+ try to run one of the examples and compare the output.
+ How the output should look like is stated in the README
+ that can be found in the EXAMPLES
directory.
+
+ If that output you produced looks like it should you can + proceed to compile deal.II with + ARPACK.