17 #ifndef dealii_event_h 18 #define dealii_event_h 20 #include <deal.II/base/config.h> 27 DEAL_II_NAMESPACE_OPEN
58 assign(
const std::string &name);
138 static std::vector<std::string>
names;
192 const unsigned int n =
flags.size();
193 const unsigned int m =
event.flags.size();
194 const unsigned int n_min = (n < m) ? n : m;
214 for (
unsigned int i = 0; i < n_min; ++i)
217 for (
unsigned int i = n_min; i < m; ++i)
232 if (
flags.size() <
event.flags.size())
234 for (
unsigned int i = 0; i <
event.flags.size(); ++i)
254 if (
flags.size() <
event.flags.size())
256 for (
unsigned int i = 0; i <
event.flags.size(); ++i)
271 for (
unsigned int i = 0; i <
flags.size(); ++i)
273 os <<
' ' <<
names[i];
281 for (
unsigned int i = 0; i <
names.size(); ++i)
282 os << i <<
'\t' <<
names[i] << std::endl;
300 DEAL_II_NAMESPACE_CLOSE
static void print_assigned(OS &os)
Event & operator-=(const Event &event)
bool test(const Event &event) const
std::vector< bool > flags
const Event bad_derivative
Event & operator+=(const Event &event)
const Event new_timestep_size
static Event assign(const std::string &name)
OutputOperator< VectorType > & operator<<(OutputOperator< VectorType > &out, unsigned int step)
static std::vector< std::string > names