Skip to main content

Sparsekit

Sparsekit is a legacy fortran code written by the great Yusef Saad for peforming linear algebra with sparse matrices. The original code is located here. πŸ”— πŸ’‘

EASIFEM uses the forked library which is located at the gitHub.

Build​

CMake​

Following options are defined:

OptionValueDefault
-DCMAKE_BUILD_TYPE=Release or Debug for release or debug build-typeRelease
BUILD_SHARED_LIBS=ON or OFF to build shared or static libraryON
-DCMAKE_INSTALL_PREFIX=The location of the installation directory${EASIFEM_EXTPKGS}
git clone https://github.com/vickysharma0812/Sparsekit.git
cd Sparsekit
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=${EASIFEM_EXTPKGS} -S ./ -B ./build
cmake --build ./build --target install

Python​

You can install Sparsekit by using Python. It is simple, interactive, and straight-forward.

git clone https://github.com/vickysharma0812/Sparsekit.git
cd Sparsekit
python3 install.py