Sparselizard depends on mandatory and optional external libraries.
On debian Linux, run this command to install these libraries globally
sudo apt-get install -y libopenblas-dev libmetis-dev libopenmpi-dev libmumps-dev petsc-dev slepc-dev libgmsh-dev
or
run the scripts in the 'install_external_libs' folder to download and install these libraries locally.
Then:
mkdir build; cmake -B build .; cd build && make -j $(getconf _NPROCESSORS_ONLN)Provide a custom path to the petsc, gmsh (optional) or mpi (optional) folder with:
cmake -B build . -DPETSC_PATH=/yourpath/petsc -DGMSH_PATH=/yourpath/gmsh -DMPI_PATH=/yourpath/mpiIt may be convenient to use the cmake GUI:
cmake-guiSimulation projects are located under simulations.
In order to create a new simulation:
- Copy
simulations/defaultfolder with different name. Let's say that the new folder issimulations/newsim - Replace target name
defaultwith the new one insimulations/newsim/CMakeLists.txt - Add line
add_subdirectory(newsim)tosimulations/CMakeLists.txt - Configure and build. Executable file will be located in
build/simulations/newsimfolder