18 #ifndef __deal2__event_h
19 #define __deal2__event_h
21 #include <deal.II/base/config.h>
113 void print (OS &os)
const;
140 static std::vector<std::string>
names;
183 for (std::vector<bool>::const_iterator i=
flags.begin();
184 i !=
flags.end(); ++i)
198 const unsigned int n =
flags.size();
199 const unsigned int m =
event.flags.size();
200 const unsigned int n_min = std::min(n, m);
215 for (std::vector<bool>::const_iterator i=
flags.begin();
216 i !=
flags.end(); ++i)
217 if (!*i)
return false;
224 for (
unsigned int i=0; i<n_min; ++i)
227 for (
unsigned int i=n_min; i<m; ++i)
241 if (
flags.size() <
event.flags.size())
243 for (
unsigned int i=0; i<
event.flags.size(); ++i)
253 if (!event.
any())
return *
this;
258 for (std::vector<bool>::iterator i=
flags.begin();
259 i !=
flags.end(); ++i)
264 if (
flags.size() <
event.flags.size())
266 for (
unsigned int i=0; i<
event.flags.size(); ++i)
281 for (
unsigned int i=0; i<
flags.size(); ++i)
283 os <<
' ' <<
names[i];
292 for (
unsigned int i=0; i<
names.size(); ++i)
293 os << i <<
'\t' <<
names[i] << std::endl;
311 DEAL_II_NAMESPACE_CLOSE
static Event assign(const char *name)
static void print_assigned(OS &os)
Event & operator-=(const Event &event)
std::vector< bool > flags
const Event bad_derivative
Event & operator+=(const Event &event)
const Event new_timestep_size
std::ostream & operator<<(std::ostream &os, const Vector< number > &v)
static std::vector< std::string > names
bool test(const Event &event) const