ziran2020
ziran2020 copied to clipboard
A simple guide for building ziran2020 in WSL1, Windows 10.
ZIRAN in WSL1 Ubuntu 18.04
- Turn off amgcl cuda by modifying Cmakelists on line 29:
option(ENABLE_AMGCL_CUDA "Use amgcl cuda" OFF)
- Install dependencies:
sudo apt-get install make cmake g++ libeigen3-dev gfortran libmetis-dev sudo apt-get install libopenvdb-dev libboost-all-dev libilmbase-dev libopenexr-dev sudo apt-get install libtbb2 libtbb-dev libz-dev clang-format-6.0 clang-format
- Build:
mkdir build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release make -j 4
- Download mesh data: https://www.seas.upenn.edu/~cffjiang/research/ziran2020/Data.zip
- Run demos in
Projects/anisofracture
orProjects/coupling
Run ziran2020 in Clion with WSL
- Setting the WSL toolset in Clion: Follow the official configuration guidelines: https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-clion.html
- Open the
ziran2020
folder in CLion. - Add the release mode of Cmake.
- Run tests, for example, set
int test_number = 8;
on line 29 of anisofracture.cpp, then just shift + F10 or click run.
Windows users can refer to this. BTW, nice works!
东坡肉太有意思了。 如果有需要使用windows的朋友可以参考。