Go to the documentation of this file.
14 #include "libmesh/string_to_enum.h"
26 ss << libMesh::Utility::enum_to_string<FEFamily>(var1.
feType().family) <<
",ORDER"
28 <<
" != " << libMesh::Utility::enum_to_string<FEFamily>(var2.
feType().family) <<
",ORDER"
34 mooseMsgFmt(
const std::string & msg,
const std::string & title,
const std::string & color)
36 std::ostringstream oss;
37 oss <<
"\n" << color <<
"\n" << title <<
"\n" << msg << COLOR_DEFAULT <<
"\n";
52 throw std::runtime_error(msg);
55 std::ostringstream oss;
66 Moose::err << msg << std::flush;
79 Moose::err << msg << std::flush;
81 if (libMesh::global_n_processors() > 1)
82 libMesh::write_traceout();
void mooseStreamAll(std::ostringstream &ss)
All of the following are not meant to be called directly - they are called by the normal macros (moos...
static Threads::spin_mutex moose_err_lock
const FEType & feType() const
Get the type of finite element object.
bool _throw_on_error
Variable to turn on exceptions during mooseError() and mooseWarning(), should only be used with MOOSE...
std::string incompatVarMsg(MooseVariableFEBase &var1, MooseVariableFEBase &var2)
Builds and returns a string of the form:
bool show_trace
Set to true (the default) to print the stack trace with error and warning messages - false to omit it...
void indentMessage(const std::string &prefix, std::string &message, const char *color=COLOR_CYAN)
Indents the supplied message given the prefix and color.
std::string mooseMsgFmt(const std::string &msg, const std::string &title, const std::string &color)
void mooseErrorRaw(std::string msg, const std::string prefix="")