Skip to content

How to compile CFL

saurabh edited this page Mar 22, 2017 · 1 revision

Steps to compile CFL

  1. 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

  1. Compile and install the dealii code using new g++.

  2. Make a fork or directly clone the available version of CFL from github as e.g.

git clone https://github.com/njase/CFL.git
  1. Run the following commands
export DEAL_II_DIR="<path to deal.II>"
export CFL_DIR="<path to CFL git repository>"
  1. Make a new directory where CFL will be installed and cd to it. e.g.
$ mkdir cfl_git
$ cd cfl_git
  1. 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/
  1. 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

Example

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/
Clone this wiki locally