Required system environments - cmyoo/cosmos GitHub Wiki

C++ compiler with an OpenMP package

  • Depending on the environment, one may have to edit the makefile appropriately.

  • For a Linux PC, the default makefile would work with g++ compiler.

  • For a Mac PC

    • One may have to install an OpenMP package in addition to a C++ compiler.
    • The std compiler option would have to be altered to an appropriate one (e.g. "-std=c++14").
  • NOTE: When performing test calculations on a low-spec PC, such as a laptop PC, the calculation speed (especially for the apparent horizon finder) may drop significantly unless the number of threads for OpenMP is kept small. For such test calculations, a user may have to limit the number of cores to one or at most a few with "export OMP_NUM_THREADS=x" (x: number of threads).