Easifem Base
note
Before installing the easifemBase
library please make sure that you have installed
Building from sourceβ
EASIFEM CLI (recommended method)β
You can install easifemBase
by using the command line application.
easifem install base
Using CMakeβ
EASIFEM uses CMake build system. To manually install easifem
from the source we need to perform following tasks.
- Download the source code from git repository.
- Configuration the project by using CMake.
- Build by using CMake.
- Install by using CMake.
Download the source code from git repository by using one of the methods:
- Git+https
- Git+ssh
- GitHub CLI
- β’
git clone https://github.com/vickysharma0812/easifem-base.git base
git clone git@github.com:vickysharma0812/easifem-base.git base
gh repo clone vickysharma0812/easifem-base base
After downloading the source code, enter the source directory π, and make a build directory.
cd base
mkdir ./build
To configure the easifemBase
library you can define following variables:
Variable | Type | Options | Default |
---|---|---|---|
USE_OpenMP | BOOL | ON , OFF | ON |
CMAKE_BUILD_TYPE | STRING | Release , Debug | Release |
BUILD_SHARED_LIBS | BOOL | ON , OFF | ON |
USE_PLPLOT | BOOL | ON , OFF | ON |
CMAKE_INSTALL_PREFIX | PATH | Please specify | $EASIFEM_BASE |
USE_BLAS95 | BOOL | ON , OFF | ON |
USE_LAPACK95 | BOOL | ON , OFF | ON |
USE_FFTW | BOOL | ON , OFF | ON |
USE_GTK | BOOL | ON , OFF | OFF |
USE_ARPACK | BOOL | ON , OFF | ON |
USE_SUPERLU | BOOL | ON , OFF | ON |
USE_LIS | BOOL | ON , OFF | ON |
USE_PARPACK | BOOL | ON , OFF | OFF |
USE_METIS | BOOL | ON , OFF * | OFF |
USE_Int32 | BOOL | ON , OFF | ON |
USE_Real64 | BOOL | ON , OFF | ON |
Click here to know about the configuration options π
An example of configuration step is given below:
export EASIFEM_BASE=${HOME}/.local/easifem/base
cmake -G "Ninja" -S ./ -B ./build \
-D USE_OpenMP:BOOL=ON \
-D CMAKE_BUILD_TYPE:STRING=Release \
-D BUILD_SHARED_LIBS:BOOL=ON \
-D USE_PLPLOT:BOOL=ON \
-D CMAKE_INSTALL_PREFIX:PATH=${EASIFEM_BASE} \
-D USE_BLAS95:BOOL=ON \
-D USE_LAPACK95:BOOL=ON \
-D USE_FFTW:BOOL=ON \
-D USE_GTK:BOOL=OFF \
-D USE_ARPACK:BOOL=ON \
-D USE_PARPACK:BOOL=OFF \
-D USE_LIS:BOOL=ON \
-D USE_METIS:BOOL=OFF \
-D USE_Int32:BOOL=ON \
-D USE_Real64:BOOL=ON
After configuration, you can build and install the library by using:
cmake --build ./build --target --install