Skip to content

Commit 4e20623

Browse files
Create INSTALL_Linux.md
1 parent 4a1655f commit 4e20623

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

INSTALL_Linux.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# INSTALL_Linux.md
2+
3+
# 🐧 Building NEXT on Linux (Ubuntu)
4+
5+
## Prerequisites
6+
7+
- Git
8+
- CMake ≥ 3.10
9+
- GCC or Clang
10+
- OpenMP
11+
- HDF5 development libraries
12+
- Python 3 (for input generation)
13+
14+
## Steps
15+
16+
1. **Clone the repository**
17+
18+
```bash
19+
git clone https://github.com/TimGoTheCreator/NEXT.git
20+
cd NEXT
21+
```
22+
23+
2. **Install dependencies**
24+
25+
```bash
26+
sudo apt-get update
27+
sudo apt-get install -y libomp-dev libhdf5-dev python3
28+
```
29+
30+
3. **Build NEXT**
31+
32+
```bash
33+
mkdir build
34+
cd build
35+
cmake ..
36+
cmake --build . --config Release
37+
cd ..
38+
```
39+
40+
4. **Run a built-in example simulation**
41+
42+
```bash
43+
cd examples/TwoBodies
44+
python two_body.py
45+
../../next two_body.txt 8 0.01 0.1 vtu
46+
```
47+
48+
5. **View results**
49+
50+
Open the `.vtu` output in ParaView.

0 commit comments

Comments
 (0)