OGS
ProcessLib::Assembly::Stats Struct Reference

Detailed Description

Definition at line 19 of file MatrixAssemblyStats.h.

#include <MatrixAssemblyStats.h>

Public Member Functions

Statsoperator+= (Stats const &other)
 
void print (std::string const &matrix_or_vector_name) const
 

Public Attributes

std::size_t count = 0
 
std::size_t count_nonzero = 0
 
std::size_t count_global = 0
 

Member Function Documentation

◆ operator+=()

Stats & ProcessLib::Assembly::Stats::operator+= ( Stats const & other)
inline

Definition at line 25 of file MatrixAssemblyStats.h.

26 {
27 count += other.count;
28 count_nonzero += other.count_nonzero;
29 count_global += other.count_global;
30
31 return *this;
32 }

References count, count_global, and count_nonzero.

◆ print()

void ProcessLib::Assembly::Stats::print ( std::string const & matrix_or_vector_name) const
inline

Definition at line 34 of file MatrixAssemblyStats.h.

35 {
36 DBUG("Stats [{}]: {} elements added to the matrix cache.",
37 matrix_or_vector_name,
38 count);
39 DBUG("Stats [{}]: {} nonzero elements added to the matrix cache.",
40 matrix_or_vector_name,
42 DBUG("Stats [{}]: {} elements added to the global matrix.",
43 matrix_or_vector_name,
45 }
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30

References count, count_global, count_nonzero, and DBUG().

Referenced by ProcessLib::Assembly::MultiStats::print().

Member Data Documentation

◆ count

◆ count_global

std::size_t ProcessLib::Assembly::Stats::count_global = 0

◆ count_nonzero

std::size_t ProcessLib::Assembly::Stats::count_nonzero = 0

The documentation for this struct was generated from the following file: