-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into remove_old_fortran_make
- Loading branch information
Showing
41 changed files
with
115 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _sec:comprehensive_tests: | ||
|
||
************************ | ||
Comprehensive Unit Tests | ||
************************ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,6 +92,7 @@ system. | |
:hidden: | ||
|
||
unit_tests | ||
unit_test_runtime_parameters | ||
comprehensive_tests | ||
one_zone_tests | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _sec:one_zone_tests: | ||
|
||
************** | ||
One Zone Tests | ||
************** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
*********************************** | ||
Unit Test Common Runtime Parameters | ||
*********************************** | ||
|
||
There are a number of runtime parameters that are common to all (or most) of the unit tests. | ||
These are defined in the top-level ``unit_test/_parameters`` file. | ||
|
||
Thermodynamics | ||
============== | ||
|
||
The equation of state enforces minimum density and temperatures, which must be set | ||
upon initialization. These are controlled by the following runtime parameters: | ||
|
||
* ``unit_test.small_temp`` : the low temperature cutoff used in the equation of state | ||
|
||
* ``unit_test.small_dens`` : the low density cutoff used in the equation of state | ||
|
||
|
||
.. _sec:defining_unit_test_composition: | ||
|
||
Defining composition | ||
==================== | ||
|
||
Most of the unit tests require a composition to be defined (for the | ||
initial mass-fractions, $X_k$). There are a few ways this can be done | ||
(depending on the test). | ||
|
||
* One-zone (``*_cell``) tests (see :ref:`sec:one_zone_tests`) usually do one of: | ||
|
||
* *Explicitly setting the individual mass fractions.* This is | ||
controlled by the parameters ``unit_test.X1``, ``unit_test.X2``, ..., ``unit_test.X35``, | ||
e.g.: | ||
|
||
:: | ||
|
||
unit_test.X1 = 0.5 | ||
unit_test.X2 = 0.2 | ||
unit_test.X3 = 0.2 | ||
unit_test.X4 = 0.1 | ||
|
||
While many of the tests will renormalize the abundances, the user | ||
should take care to ensure that the mass fractions sum to unity. | ||
|
||
* *Setting the composition to be uniform.* This is controlled by | ||
``unit_test.uniform_xn``. If this is set to ``1``, then each mass fraction | ||
is initialized to ``1 / NumSpec``. | ||
|
||
* Comprehensive tests (see :ref:`sec:comprehensive_tests`) need many different compositions, since they are creating a cube | ||
of varying thermodynamic properties, and thus require a prescription | ||
to create the composition. This is done by setting ``unit_test.primary_species_1``, | ||
``unit_test.primary_species_2``, and ``unit_test.primary_species_3`` to one of the | ||
*names* of the species in the network. | ||
|
||
The function ``setup_composition()`` is then used to set limits on | ||
the species abundances (it takes a parameter which is the index into | ||
the cube of data that is being initialized) which is then used by | ||
``get_xn()`` to create the individual mass fractions. Both of these | ||
routines are contained in ``react_util.H``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
@namespace: unit_test | ||
|
||
small_temp real 1.e5 | ||
small_dens real 1.e5 | ||
|
||
density real 1.e7 | ||
temperature real 3.e9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
@namespace: unit_test | ||
|
||
small_temp real 1.e5 | ||
small_dens real 1.e5 | ||
|
||
density real 1.e7 | ||
|
||
temperature real 3.e9 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
@namespace: unit_test | ||
|
||
small_dens real 1.e5 | ||
small_temp real 1.e5 | ||
|
||
rho_min real 1.e6 | ||
rho_max real 1.e10 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
@namespace: unit_test | ||
|
||
small_temp real 1.e5 | ||
small_dens real 1.e5 | ||
|
||
temperature real 5.e9 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,3 @@ temp_min real 1.e6 | |
temp_max real 1.e12 | ||
|
||
metalicity_max real 0.1e0 | ||
|
||
small_temp real 1.e4 | ||
small_dens real 1.e-4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,3 @@ temp_min real 1.e6 | |
temp_max real 1.e12 | ||
|
||
metalicity_max real 0.1e0 | ||
|
||
small_temp real 1.e4 | ||
small_dens real 1.e-4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,3 @@ temp_min real 1.e6 | |
temp_max real 1.e12 | ||
|
||
metalicity_max real 0.1e0 | ||
|
||
small_temp real 1.e4 | ||
small_dens real 1.e-4 |
Oops, something went wrong.