OGS
ProcessLib::Assembly::Stats Struct Reference

Detailed Description

Definition at line 12 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 18 of file MatrixAssemblyStats.h.

19 {
20 count += other.count;
21 count_nonzero += other.count_nonzero;
22 count_global += other.count_global;
23
24 return *this;
25 }

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 27 of file MatrixAssemblyStats.h.

28 {
29 DBUG("Stats [{}]: {} elements added to the matrix cache.",
30 matrix_or_vector_name,
31 count);
32 DBUG("Stats [{}]: {} nonzero elements added to the matrix cache.",
33 matrix_or_vector_name,
35 DBUG("Stats [{}]: {} elements added to the global matrix.",
36 matrix_or_vector_name,
38 }
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:22

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

Member Data Documentation

◆ count

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

Definition at line 14 of file MatrixAssemblyStats.h.

Referenced by operator+=(), and print().

◆ count_global

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

Definition at line 16 of file MatrixAssemblyStats.h.

Referenced by operator+=(), and print().

◆ count_nonzero

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

Definition at line 15 of file MatrixAssemblyStats.h.

Referenced by operator+=(), and print().


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