Table of Contents
CCX
In the following are presented the steps to install the finite element solver.
Packages required
Before start the installation, using Synaptic, check if the following packages are already installed:
gcc
gfortran
latex2html
For further problems check even the follows:
f2c
libf2c2
libf2c2-dev
libextutils-f77-perl
Installation from source
In reference to the procedure for the installation from source, described in http://www.dhondt.de/, first of all it's necessary to install the packages SPOOLES and ARPACK.
Installation of SPOOLES
Apart the correction to do in makeGlobalLib
file, indicated in the CCX's installation page, the Make.inc
file must be edited as follows:
# for solaris # # CC = gcc CC = /usr/lang-4.0/bin/cc
in
# for linux # # CC = gcc CC = /usr/bin/cc
Compile SPOOLES giving, from its folder, the commands:
sudo make lib cd MT/src/ sudo make
Installation of ARPACK
Download ARPACK and its patch. The patch is automatically applied if extracted in the same folder in which ARPACK has been extracted, so simply use the command:
tar xf patch.tar
Edit ARmake.inc
file changing the following rows:
home = $(HOME)/ARPACK
inhome = /usr/local/ARPACK
PLAT = SUN4
inPLAT = linux
FC = f77
inFC = gfortran
FFLAGS = -O -cg89
inFFLAGS = -O2
MAKE = /bin/make
inMAKE = /usr/bin/make
Edit /UTIL/second.f
file changing the following row:
EXTERNAL ETIME
in* EXTERNAL ETIME
Compile ARPACK giving, from its folder, the command:
sudo make lib
Installation of CCX
Now it's possible to continue to compile the solver, as indicated in the CCX's installation page.