Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : namespace evolution::dg {
7 : /*!
8 : * \brief Runtime control over time derivative work done.
9 : *
10 : * - `compute_flux_divergence`: if `true` then we compute and add the flux
11 : divergence to the volume time derivative. Set to `false` to elide work
12 : where you know the solution is spatially constant.
13 : */
14 : template <size_t Dim>
15 1 : struct TimeDerivativeDecisions {
16 0 : bool compute_flux_divergence = true;
17 : };
18 : } // namespace evolution::dg
|