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 Windows (MinGW)
2+
3+ ## Prerequisites
4+
5+ - Git
6+ - CMake ≥ 3.10
7+ - MinGW-w64 GCC
8+ - MSYS2 environment
9+ - HDF5 via MSYS2
10+ - Python 3
11+ - (Optional) Chocolatey, for automated MSYS2 install
12+
13+ ## Steps
14+
15+ 1 . ** Clone the repository**
16+
17+ ``` bash
18+ git clone https://github.com/TimGoTheCreator/NEXT.git
19+ cd NEXT
20+ ```
21+
22+ 2 . ** Install dependencies via MSYS2**
23+
24+ ``` bash
25+ choco install msys2 -y
26+ C:/tools/msys64/usr/bin/pacman -Syu --noconfirm
27+ C:/tools/msys64/usr/bin/pacman -S --noconfirm mingw-w64-x86_64-hdf5 python
28+ ```
29+
30+ 3 . ** Build NEXT**
31+
32+ ``` bash
33+ mkdir build
34+ cd build
35+ cmake -G " MinGW Makefiles" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ..
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.exe two_body.txt 8 0.01 0.1 vtu
46+ ```
47+
48+ 5 . ** View results**
49+
50+ Open the ` .vtu ` output in ParaView.
You can’t perform that action at this time.
0 commit comments