16 #ifndef dealii__logstream_h 17 #define dealii__logstream_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/exceptions.h> 21 #include <deal.II/base/smartpointer.h> 22 #include <deal.II/base/std_cxx11/shared_ptr.h> 23 #include <deal.II/base/thread_local_storage.h> 31 #ifdef DEAL_II_HAVE_SYS_TIMES_H 32 # include <sys/times.h> 36 int tms_utime, tms_stime, tms_cutime, tms_cstime;
41 DEAL_II_NAMESPACE_OPEN
140 Prefix(
const std::string &text);
146 Prefix(
const std::string &text,
178 void attach (std::ostream &o,
179 const bool print_job_id =
true);
202 const double offset = 1.e-7);
243 void push (
const std::string &text);
272 unsigned int depth_file (
const unsigned int n);
343 std::streamsize
precision (
const std::streamsize prec);
351 std::streamsize
width (
const std::streamsize wide);
359 std::ios::fmtflags
flags(
const std::ios::fmtflags f);
555 template <
typename T>
560 log.get_stream() << t;
580 outstreams.
get()->setf(std::ios::showpoint | std::ios::left);
621 if (! (t<=0) && !(t>=0))
665 DEAL_II_NAMESPACE_CLOSE
std::streamsize precision(const std::streamsize prec)
Threads::ThreadLocalStorage< std_cxx11::shared_ptr< std::ostringstream > > outstreams
VectorizedArray< Number > log(const ::VectorizedArray< Number > &x)
A class that provides a separate storage location on each thread that accesses the object...
Threads::ThreadLocalStorage< std::stack< std::string > > prefixes
const std::string & get_prefix() const
void threshold_double(const double t)
unsigned int depth_file(const unsigned int n)
std::streamsize width(const std::streamsize wide)
bool log_thread_id(const bool flag)
std::ostream & get_file_stream()
bool is_finite(const double x)
std::streambuf * old_cerr
std::ios::fmtflags flags(const std::ios::fmtflags f)
LogStream & operator<<(const double t)
void test_mode(const bool on=true, const double double_threshold=1.e-10, const float float_threshold=1.e-7f, const double offset=1.e-7)
std::stack< std::string > & get_prefixes() const
void threshold_float(const float t)
bool log_time_differences(const bool flag)
unsigned int depth_console(const unsigned int n)
void attach(std::ostream &o, const bool print_job_id=true)
Prefix(const std::string &text)
OutputOperator< VectorType > & operator<<(OutputOperator< VectorType > &out, unsigned int step)
std::ostream & get_console()
double reference_time_val
bool log_execution_time(const bool flag)
void push(const std::string &text)
std::ostringstream & get_stream()
std::size_t memory_consumption() const