2
2
Getting Started
3
3
***************
4
4
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
+
5
28
Standalone
6
29
==========
7
30
@@ -39,10 +62,11 @@ This will create an executable called ``main3d.gnu.ex``. Then you can run it as
39
62
40
63
.. prompt :: bash
41
64
42
- ./main3d.gnu.ex inputs_aprox21
65
+ ./main3d.gnu.ex inputs_aprox13
43
66
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.
46
70
47
71
48
72
@@ -51,11 +75,15 @@ Running with AMReX Application Code
51
75
52
76
.. index :: MICROPHYSICS_HOME
53
77
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
55
81
straightforward. Because the modules here are already in a format that
56
82
the AMReX codes understand, you only need to provide to the code
57
83
calling 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
59
87
variable, either at a command line or (if you use the bash shell)
60
88
through your ``~/.bashrc ``, e.g.:
61
89
@@ -70,6 +98,4 @@ rely on the Microphysics ``Make.Microphysics_extern`` makefile stub
70
98
source to the build. All of the interfaces that these codes use
71
99
are found in ``Microphysics/interfaces/ ``.
72
100
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