DidRollback.hpp
1 // Distributed under the MIT License.
2 // See LICENSE.txt for details.
3 
4 #pragma once
5 
6 #include "DataStructures/DataBox/Tag.hpp"
7 
9 /// \brief Tag indicating whether we are retrying a step after a rollback of a
10 /// failed DG step
11 ///
12 /// Set to `true` by the DG scheme when the predicted step failed and a rollback
13 /// is performed. The subcell solver checks the tag, and uses the DG boundary
14 /// data if a rollback occurred in order to maintain conservation. The subcell
15 /// solver then sets `DidRollback` to `false`.
17  using type = bool;
18 };
19 } // namespace evolution::dg::subcell::Tags
db::SimpleTag
Mark a struct as a simple tag by inheriting from this.
Definition: Tag.hpp:36
evolution::dg::subcell::Tags::DidRollback
Tag indicating whether we are retrying a step after a rollback of a failed DG step.
Definition: DidRollback.hpp:16
evolution::dg::subcell::Tags
Tags for the DG-subcell solver
Definition: ActiveGrid.hpp:9