-
Notifications
You must be signed in to change notification settings - Fork 1
How to compile CFL
saurabh edited this page Mar 22, 2017
·
1 revision
- Make sure that you have g++ compiler which supports C++17 - the steps below are tested with
g++ (GCC) 7.0.1 20170122 (experimental)
For more details on how to install this g++ version on your system, refer to TBD
-
Compile and install the dealii code using new g++.
-
Make a fork or directly clone the available version of CFL from github as e.g.
git clone https://github.com/njase/CFL.git
- Run the following commands
export DEAL_II_DIR="<path to deal.II>"
export CFL_DIR="<path to CFL git repository>"
- Make a new directory where CFL will be installed and cd to it. e.g.
$ mkdir cfl_git
$ cd cfl_git
- Run the following command
cmake -DCMAKE_INSTALL_PREFIX=. ../CFL/dealii/
or if you want to use eclipse, run
cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_INSTALL_PREFIX=. ../CFL/dealii/
- Now compile as
$ make -j<no of cores to use>
or if you use eclipse, create a new project in eclipse by following similar instructions as https://github.com/dealii/dealii/wiki/Eclipse#setting-up-a-project-using-dealii-with-cmake-help
export DEAL_II_DIR="/export/home/smehta/Documents/CFL/dealii_bin/"
export CFL_DIR="/export/home/smehta/Documents/CFL/CFL"
make a new dir cfl_git and cd to it
cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_INSTALL_PREFIX=. ../CFL/dealii/