Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 729 Bytes

File metadata and controls

48 lines (35 loc) · 729 Bytes

🍏 Building NEXT on macOS

Prerequisites

  • Git
  • CMake ≥ 3.10
  • Clang
  • OpenMP
  • HDF5
  • Python 3

Steps

  1. Clone the repository
git clone https://github.com/TimGoTheCreator/NEXT.git
cd NEXT
  1. Install dependencies using Homebrew
brew update
brew install llvm libomp hdf5 python
  1. Build NEXT
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++
cmake --build . --config Release
cd ..
  1. Run a built-in example simulation
cd examples/TwoBodies
python two_body.py
../../next two_body.txt 8 0.01 0.1 vtu
  1. View results

Open the .vtu output in ParaView.