In order to install CalculiX and the adapter on superMUC, a number of dependencies are first required. Initially, preCICE must be installed
Additionally, SPOOLES, ARPACK and yaml-cpp are required.
To install SPOOLES, some changes are necessary.
makefile
:~/SPOOLES.2.2/Tree/src/makeGlobalLib
contains an error: filedrawTree.c
does not exist and should be replaced bytree.c
.- Changes to the
Make.inc
file must be done according to the CalculiX install Manual, page 16 and 17.
In installing ARPACK, the HOME directory needs to be specified in the “ARmake.inc” file. No changes are necessary for the Makefile. To install ARPACK, run “make lib” in the ARPACk directory.
Any problems with the installation of SPOOLES and ARPACK can be searched in the installation instructions.
To install yaml-cpp, run in the source directory:
mkdir build
cd build
cmake ..
make
make install
yaml-cpp 0.5.3 is known to work. Newer version may also work. yaml-cpp can be downloaded from
wget https://github.com/jbeder/yaml-cpp/archive/release-0.5.3.tar.gz -O - | tar xz
Module List
The following modules available in superMUC are known to work for the CalculiX adapter installation.
- python/3.5_anaconda_nompi
- scons/3.0.1
- valgrind/3.10
- petsc/3.8
- boost/1.65_gcc
- gcc/6
- mpi.intel/2017
Makefile Changes
The paths to the CalculiX CCX, SPOOLES, ARPACK and YAML must be specified. Line 61: “FC = mpifort” can be commented out and replaced with “FC = gfortran”.
The path to the pkgconfig file needs to be stated. The command “export PKG_CONFIG_PATH=/path/to/lib/pkgconfig” must be provided. It is easier to install preCICE with the “CMAKE_INSTALL_PREFIX” set to the path where preCICE is installed.
Adapter Installation
To install the adapter, the command with the following configurations is known to work:
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/path -DCMAKE_BUILD_TYPE=RelWithDebInfo ..