项目作者: testunde

项目描述 :
Simulates the collapse of mass particles by their own gravitational fields.
高级语言: C++
项目地址: git://github.com/testunde/massCollapse.git
创建时间: 2019-01-11T09:27:47Z
项目社区:https://github.com/testunde/massCollapse

开源协议:GNU Lesser General Public License v3.0

下载


massCollapse

Simulates the collapse off mass particles by their own gravitational
fields.

Build Instructions

Dependencies

OpenCV v4 (for older versions the source code may be adopted)

OpenMP (only for gcc compiler and if parallelisation desired)

Configure

Use a out-of-tree build to not pollute your checkout:

  1. mkdir build
  2. cd build

Depending if you want to use a debug or release build, either run

  1. # debugging
  2. cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DSANITIZE_ADDRESS=On ..

or

  1. # profiling
  2. cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo ..

or

  1. # public release
  2. cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..

Actual Build

  1. ninja

Usually, you do NOT need to re-run cmake.

Run

  1. ./masscollapse

Developer Notes

Do export OMP_NUM_THREADS=X before execution to run program on X threads, if OpenMP is available and compiled with gcc.

Auto-Format

  1. cd build
  2. ninja format