A Barnes-Hut simulation in Regent
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
input
barnes_hut.cc
barnes_hut.h
barnes_hut.rg
barnes_hut_common.rg
barnes_hut_io.rg
hdf5_converter.rg
quad_tree.rg
readme.md

readme.md

Barnes Hut

A Barnes-hut simulator written in Regent.

Requirements

  1. A working build of Regent with HDF5 support enabled
  2. (Optional) Gasnet for multi-node simulations

Getting started

  1. Convert input bodies csv to hdf5 format via hdf5_converter.rg (see sample datasets in input folder for desired format):
    • /regent.py hdf5_converter.rg -i <path_to_input_csv> -o <desired_path_to_output_hdf5_file> -n <number_of_bodies_in_input_file>
  2. Run Barnes-Hut simulation:
    • Using the regent interpreter directly: /regent.py barnes_hut.rg -i <path_to_input_hdf_file> -n <number_of_bodies_in_input_file>
    • Compiling first: SAVEOBJ=1 /regent.py barnes_hut.rg, and then call the built binary with the same options as above