Compilation and Installation
Procedure
- Go to the installation directory of the main program.
cd /path/to/calculix
- Decompress the installation packages.
tar xvf master.tar.gz tar xvf ccx_2.19.src.tar.bz2
- Load the environment variables.
export PKG_CONFIG_PATH=/path/to/precice-install/lib64/pkgconfig:$ PKG_CONFIG_PATH export CPATH=/path/to/precice-install/include:$CPATH
- Modify the configuration file.
cd calculix-adapter-master sed -i "6c\CCX = /path/to/calculix/CalculiX/ccx_2.19/src" Makefile sed -i "10c\SPOOLES_INCLUDE = -I/path/to/SPOOLES.2.2" Makefile sed -i "12c\SPOOLES_LIBS = /path/to/SPOOLES.2.2/spooles.a" Makefile sed -i "15c\ARPACK_INCLUDE = -I/path/to/ARPACK" Makefile sed -i "17c\ARPACK_LIBS = /path/to/ARPACK/libarpack_INTEL.a" Makefile sed -i "20c\YAML_INCLUDE = -I/path/to/yaml-cpp-yaml-cpp-0.6.2/include" Makefile sed -i "22c\YAML_LIBS = -L/path/to/yaml-cpp-yaml-cpp-0.6.2/build -lyaml-cpp" Makefile sed -i '55c\CFLAGS = -Wall -O3 -fopenmp $(INCLUDES) -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE' Makefile sed -i '60c\CC = clang' Makefile sed -i '62c\CC = clang' Makefile sed -i '67c\FC = flang' Makefile
- Perform the compilation and installation.
make
Parent topic: CalculiX 2.19.0 Porting Guide (Kylin V10)