Compiling and Installing Elmer
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the Elmer installation package:
tar -xvf elmerfem-scc20.tar.gz
- Run the following command to switch to the directory generated after decompression:
cd elmerfem-scc20
- Run the following commands to create a folder:
mkdir build cd build
- Run the following command to perform compilation:
cmake -DCMAKE_INSTALL_PREFIX=/path/to/ELMER -DCMAKE_C_FLAGS="-O3 -march=armv8.2-a -mtune=tsv110" -DCMAKE_CXX_FLAGS="-O3 -march=armv8.2-a -mtune=tsv110" -DCMAKE_Fortran_FLAGS="-O3 -march=armv8.2-a -mtune=tsv110" ../
- Run the following commands to perform installation:
make -j 32 make install
- Run the following commands to set the environment variables:
export PATH=/path/to/ELMER/bin:$PATH export ELMER_HOME=/path/to/ELMER
Parent topic: Elmer 8.4 Porting Guide (CentOS 7.6)