Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include "DataStructures/DataBox/Tag.hpp" 7 : 8 : namespace evolution::dg::subcell::Tags { 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`. 16 1 : struct DidRollback : db::SimpleTag { 17 0 : using type = bool; 18 : }; 19 : } // namespace evolution::dg::subcell::Tags