File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 🍏 Building NEXT on macOS
2+
3+ ## Prerequisites
4+
5+ - Git
6+ - CMake ≥ 3.10
7+ - Clang
8+ - OpenMP
9+ - HDF5
10+ - Python 3
11+
12+ ## Steps
13+
14+ 1 . ** Clone the repository**
15+
16+ ``` bash
17+ git clone https://github.com/TimGoTheCreator/NEXT.git
18+ cd NEXT
19+ ```
20+
21+ 2 . ** Install dependencies using Homebrew**
22+
23+ brew update
24+ brew install llvm libomp hdf5 python
25+
26+ 3 . ** Build NEXT**
27+
28+ ``` bash
29+ mkdir build
30+ cd build
31+ cmake .. -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++
32+ cmake --build . --config Release
33+ cd ..
34+ ```
35+
36+ 4 . ** Run a built-in example simulation**
37+
38+ ``` bash
39+ cd examples/TwoBodies
40+ python two_body.py
41+ ../../next two_body.txt 8 0.01 0.1 vtu
42+ ```
43+
44+ 5 . ** View results**
45+
46+ Open the ` .vtu ` output in ParaView.
You can’t perform that action at this time.
0 commit comments