Skip to content

Commit 62ef580

Browse files
Create INSTALL_Darwin.md
1 parent 5e42d6c commit 62ef580

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

INSTALL_Darwin.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.

0 commit comments

Comments
 (0)