Skip to content

halbux/sparselizard

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
January 22, 2021 10:06
src
October 7, 2023 10:35
November 24, 2020 17:12
January 22, 2021 10:06
January 19, 2021 22:25
November 1, 2020 19:16
November 1, 2020 19:16
September 26, 2021 19:32
October 18, 2017 15:30

Build instructions

Run the scripts in the 'install_external_libs' folder then configure and build:

mkdir build && cd build
cmake ..
cmake --build . -j$(nproc)

Provide a custom path to the petsc, gmsh (optional) or mpi (optional) folder with:

cmake .. -DPETSC_PATH=/yourpath/petsc -DGMSH_PATH=/yourpath/gmsh -DMPI_PATH=/yourpath/mpi

It may be convenient to use the cmake GUI:

cmake-gui

Add project

Simulation projects are located under simulations. In order to create a new simulation:

  1. Copy simulations/default folder with different name. Let's say that the new folder is simulations/newsim
  2. Replace target name default with the new one in simulations/newsim/CMakeLists.txt
  3. Add line add_subdirectory(newsim) to simulations/CMakeLists.txt
  4. Configure and build. Executable file will be located in build/simulations/newsim folder