Skip to content

Commit 635669c

Browse files
committed
more tweaks
1 parent 45d2138 commit 635669c

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

Docs/source/eos_cell.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ The parameters that affect the thermodynamics are:
2828

2929
* ``unit_test.temperature`` : the initial temperature
3030

31-
The composition can be set in the same way as in ``burn_cell``, either
32-
by setting each mass fraction explicitly via the parameters,
33-
``unit_test.X1``, ``unit_test.X2``, ..., or forcing them to be all
34-
equal via ``unit_test.uniform_xn=1``.
31+
The composition can be set either by specifying individual mass fractions
32+
or setting ``unit_test.uniform_xn`` as described in :ref:`sec:defining_unit_test_composition`.
3533

3634

3735
Building and Running the Code

Docs/source/jac_cell.rst

+9-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,15 @@ The parameters that affect the thermodynamics are:
3838

3939
* ``unit_test.temperature`` : the initial temperature
4040

41-
While the mass fractions can be set individually (using
42-
``unit_test.X1``, ``unit_test.X2``, ...), it is recommended to use
43-
``unit_test.uniform_xn=1`` to initialize all the mass fractions to be
44-
equal.
41+
The composition can be set either by specifying individual mass fractions
42+
or setting ``unit_test.uniform_xn`` as described in :ref:`sec:defining_unit_test_composition`.
43+
44+
If the values don't sum to ``1`` initially, then the test will do a
45+
normalization. This normalization can be disabled by setting:
46+
47+
::
48+
49+
unit_test.skip_initial_normalization = 1
4550

4651

4752
Building and Running the Code

Docs/source/unit_test_runtime_parameters.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Most of the unit tests require a composition to be defined (for the
2525
initial mass-fractions, $X_k$). There are a few ways this can be done
2626
(depending on the test).
2727

28-
* One-zone (`*_cell`) tests usually do one of:
28+
* One-zone (``*_cell``) tests usually do one of:
2929

3030
* *Explicitly setting the individual mass fractions.* This is
3131
controlled by the parameters ``unit_test.X1``, ``unit_test.X2``, ..., ``unit_test.X35``,

unit_test/test_sdc_vode_rhs/vode_rhs_test.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void do_vode_rhs()
2323

2424
for (int n = 1; n <= NumSpec; ++n) {
2525

26-
massfractions[n-1] = get_xn(n);
26+
massfractions[n-1] = get_xn(n, unit_test_rp::uniform_xn);
2727

2828
if (massfractions[n-1] < 0 || massfractions[n-1] > 1) {
2929
amrex::Error("mass fraction for " + short_spec_names_cxx[n-1] + " not initialized in the interval [0,1]!");

0 commit comments

Comments
 (0)