22
33[ ![ AMReX] ( https://amrex-codes.github.io/badges/powered%20by-AMReX-red.svg )] ( https://amrex-codes.github.io )
44
5- * an adaptive mesh, massively-parallel, cosmological simulation code*
5+ * An adaptive mesh, massively-parallel, cosmological simulation code*
66
77******
88
9- ## About
9+ ### About
1010
1111Nyx code solves equations of compressible hydrodynamics on an adaptive grid
1212hierarchy coupled with an N-body treatment of dark matter. The gasdynamics in
@@ -20,40 +20,52 @@ ionization equilibrium, the code calculates heating and cooling processes of the
2020primordial-composition gas in an ionizing ultraviolet background radiation field.
2121Additional physics capabilities are under development.
2222
23- Nyx is parallelized with MPI + OpenMP, and has been run at parallel concurrency
24- of up to 2,097,152 (on NERSC's Cori).
23+ While Nyx can run on any Linux system in general, we particularly focus on supercomputer systems.
24+ Nyx is parallelized with MPI + X, where "X" can be OpenMP, Cuda, or HIP (DPC++ implementation
25+ is ongoing). In the OpenMP regime, Nyx and has been successfully run at parallel concurrency
26+ of up to 2,097,152 (on NERSC's Cori-KNL). With Cuda implementation, it was ran on up to
27+ 13,824 GPUs (on OLCF's Summit).
2528
2629More information on Nyx can be found at
2730http://amrex-astro.github.io/Nyx/
2831
29- ## Getting Started
3032
31- To compile the code, we require Fortran 2003 and C++11 compliant compilers that
32- support (if parallelism is sought) OpenMP 4.5 or better, and/or MPI-2 or higher
33- implementation.
33+ ### Standards and dependencies
34+
35+ To compile the code we require C++11 compliant compilers that support MPI-2 or
36+ higher implementation. If threads or accelerators are used, we require
37+ OpenMP 4.5 or higher, Cuda 9 or higher, or HIP-Clang.
3438
3539To use Nyx, you also need AMReX:
3640https://github.com/AMReX-codes/amrex
3741
42+ For axample, this is what we currently do to compile Lyman alpha executable on Summit:
43+ ``` sh
44+ $ module load gcc/6.4.0 cuda/11.0.3
45+
46+ $ git clone https://github.com/AMReX-Codes/amrex.git
47+ $ git clone https://github.com/AMReX-astro/Nyx.git
48+
49+ $ cd Nyx/Exec/LyA
50+ $ make -j 12 USE_CUDA=TRUE
51+ ```
52+
53+
3854There is a User's Guide in ` Nyx/UsersGuide/ ` (type ` make ` to build
3955from LaTeX source) that will guide you through running your first
4056problem.
4157
4258
43- ## Development Model
59+ ### Development model
4460
45- New features are committed to the ` development ` branch. We use nightly
61+ The ` development ` branch in also the main branch. We use nightly
4662regression testing to ensure that no answers change (or if they do, that
47- the changes were expected). No changes should be pushed directly into
48- ` master ` . Approximately once a month, we perform a merge of ` development `
49- into ` master ` .
50-
51- Contributions are welcomed and should be done via pull requests.
63+ the changes were expected). Contributions are welcomed and should be done via pull requests.
5264A pull request should be generated from your fork of Nyx and should target
5365the ` development ` branch.
5466
5567
56- ## Physics
68+ ### Physics
5769
5870For the description of the N-body and adiabatic hydro algorithms in Nyx, see
5971Almgren, Bell, Lijewski, Lukic & Van Andel (2013), ApJ, 765, 39:
@@ -72,7 +84,8 @@ http://adsabs.harvard.edu/abs/2017ApJ...837..106O
7284We have also implemented non-radiative transfer methods to model inhomogeneous reionization,
7385the paper is in preparation.
7486
75- ## Output
87+
88+ ### Output
7689
7790Nyx outputs certain global diagnostics at each timestep and plot files at regular
7891intervals, or at user-specified redshifts. Visualization packages
@@ -88,11 +101,11 @@ related to the Lyman-alpha forest science. These suites are fully MPI-parallel a
88101be run either "in situ" or "in-transit", or with a combination of both.
89102
90103
91- ## License
104+ ### License
92105Nyx is released under the LBL's modified BSD license, see the [ license.txt] ( license.txt ) file for details.
93106
94107
95- ## Contact
108+ ### Contact
96109
97110For questions, comments, suggestions, contact Ann Almgren at ASAlmgren@lbl.gov
98111or Zarija Lukic at zarija@lbl.gov .
0 commit comments