22Getting Started
33***************
44
5+ Requirements
6+ ============
7+
8+ Microphysics requires
9+
10+ * A C++17 or later compilers
11+ * AMReX (https://github.com/amrex-codes/amrex)
12+ * python (>= 3.10)
13+ * GNU make
14+
15+ optional dependencies are:
16+
17+ * CUDA (>= 11)
18+ * ROCm (>= 6.3.1 --- earlier versions have register allocation bugs)
19+
20+ Microphysics is meant to be compiled into an application code as part
21+ of its build process, with the network, EOS, integrator, and more
22+ picked at compile time. As such, there is not a single library that
23+ can be built and linked against.
24+
25+ Below we describe how to use Microphysics in a "standalone" fashion,
26+ using the provided unit tests, and as part of an application code.
27+
528Standalone
629==========
730
@@ -39,10 +62,11 @@ This will create an executable called ``main3d.gnu.ex``. Then you can run it as
3962
4063.. prompt :: bash
4164
42- ./main3d.gnu.ex inputs_aprox21
65+ ./main3d.gnu.ex inputs_aprox13
4366
44- By default, the test is built with the 21-isotope ``aprox21 `` network.
45- Here ``inputs_aprox21 `` is the inputs file that sets options.
67+ By default, the test is built with the 13-isotope ``aprox13 `` network,
68+ ``helmholtz `` EOS, and VODE integrator.
69+ Here ``inputs_aprox13 `` is the inputs file that sets options.
4670
4771
4872
@@ -51,11 +75,15 @@ Running with AMReX Application Code
5175
5276.. index :: MICROPHYSICS_HOME
5377
54- Getting started with Microphysics using either CASTRO or MAESTROeX is
78+ Getting started with Microphysics using either `CASTRO
79+ <https://amrex-astro.github.io/Castro/docs/index.html> `_ or `MAESTROeX
80+ <https://amrex-astro.github.io/MAESTROeX/docs/index.html> `_ is
5581straightforward. Because the modules here are already in a format that
5682the AMReX codes understand, you only need to provide to the code
5783calling these routines their location on your system. The code will do
58- the rest. To do so, define the ``MICROPHYSICS_HOME `` environment
84+ the rest.
85+
86+ First we need to define the ``MICROPHYSICS_HOME `` environment
5987variable, either at a command line or (if you use the bash shell)
6088through your ``~/.bashrc ``, e.g.:
6189
@@ -70,6 +98,4 @@ rely on the Microphysics ``Make.Microphysics_extern`` makefile stub
7098source to the build. All of the interfaces that these codes use
7199are found in ``Microphysics/interfaces/ ``.
72100
73- Other codes can use Microphysics in the same fashion. Unit tests in
74- ``Microphysics/unit_test/ `` provide some examples of using the
75- interfaces.
101+ Other AMReX-based codes can use Microphysics in the same fashion.
0 commit comments