libMesh
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Attributes | List of all members
EimTestRBThetaExpansion Struct Reference

#include <assembly.h>

Inheritance diagram for EimTestRBThetaExpansion:
[legend]

Public Member Functions

 EimTestRBThetaExpansion ()
 Constructor. More...
 
virtual Number eval_A_theta (unsigned int q, const RBParameters &mu)
 Evaluate theta_q_a at the current parameter. More...
 
virtual Number eval_F_theta (unsigned int q, const RBParameters &mu)
 Evaluate theta_q_f at the current parameter. More...
 
virtual Number eval_output_theta (unsigned int output_index, unsigned int q_l, const RBParameters &mu)
 Evaluate theta_q_l at the current parameter. More...
 
unsigned int get_n_A_terms () const
 Get Q_a, the number of terms in the affine expansion for the bilinear form. More...
 
unsigned int get_n_F_terms () const
 Get Q_f, the number of terms in the affine expansion for the right-hand side. More...
 
unsigned int get_n_outputs () const
 Get n_outputs, the number output functionals. More...
 
unsigned int get_n_output_terms (unsigned int output_index) const
 Get the number of affine terms associated with the specified output. More...
 
virtual void attach_A_theta (RBTheta *theta_q_a)
 Attach a pointer to a functor object that defines one of the theta_q_a terms. More...
 
virtual void attach_multiple_A_theta (std::vector< RBTheta * > theta_q_a)
 Attach a vector of pointers to functor objects that each define one of the theta_q_a terms. More...
 
virtual void attach_F_theta (RBTheta *theta_q_f)
 Attach a pointer to a functor object that defines one of the theta_q_a terms. More...
 
virtual void attach_multiple_F_theta (std::vector< RBTheta * > theta_q_f)
 Attach a vector of pointers to functor objects that each define one of the theta_q_f terms. More...
 
virtual void attach_output_theta (std::vector< RBTheta * > theta_q_l)
 Attach a vector of pointers to functor objects that define one of the outputs. More...
 
virtual void attach_output_theta (RBTheta *theta_q_l)
 Attach a pointer to a functor object that defines one of the outputs. More...
 

Static Public Member Functions

static std::string get_info ()
 Gets a string containing the reference information. More...
 
static void print_info (std::ostream &out=libMesh::out)
 Prints the reference information, by default to libMesh::out. More...
 
static unsigned int n_objects ()
 Prints the number of outstanding (created, but not yet destroyed) objects. More...
 
static void enable_print_counter_info ()
 Methods to enable/disable the reference counter output from print_info() More...
 
static void disable_print_counter_info ()
 

Public Attributes

ThetaA0 theta_a_0
 

Protected Types

typedef std::map< std::string, std::pair< unsigned int, unsigned int > > Counts
 Data structure to log the information. More...
 

Protected Member Functions

void increment_constructor_count (const std::string &name)
 Increments the construction counter. More...
 
void increment_destructor_count (const std::string &name)
 Increments the destruction counter. More...
 

Static Protected Attributes

static Counts _counts
 Actually holds the data. More...
 
static Threads::atomic< unsigned int_n_objects
 The number of objects. More...
 
static Threads::spin_mutex _mutex
 Mutual exclusion object to enable thread-safe reference counting. More...
 
static bool _enable_print_counter = true
 Flag to control whether reference count information is printed when print_info is called. More...
 

Detailed Description

Definition at line 151 of file assembly.h.

Member Typedef Documentation

typedef std::map<std::string, std::pair<unsigned int, unsigned int> > libMesh::ReferenceCounter::Counts
protectedinherited

Data structure to log the information.

The log is identified by the class name.

Definition at line 119 of file reference_counter.h.

Constructor & Destructor Documentation

EimTestRBThetaExpansion::EimTestRBThetaExpansion ( )

Constructor.

Definition at line 156 of file assembly.h.

157  {
159  }
virtual void attach_A_theta(RBTheta *theta_q_a)
Attach a pointer to a functor object that defines one of the theta_q_a terms.

Member Function Documentation

void RBThetaExpansion::attach_A_theta ( RBTheta theta_q_a)
virtualinherited

Attach a pointer to a functor object that defines one of the theta_q_a terms.

Definition at line 62 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_A_theta_vector, and libMesh::libmesh_assert().

Referenced by libMesh::RBThetaExpansion::~RBThetaExpansion().

63 {
64  libmesh_assert(theta_q_a);
65 
66  _A_theta_vector.push_back(theta_q_a);
67 }
std::vector< RBTheta * > _A_theta_vector
Vector storing the pointers to the RBTheta functors for A.
libmesh_assert(j)
void RBThetaExpansion::attach_F_theta ( RBTheta theta_q_f)
virtualinherited

Attach a pointer to a functor object that defines one of the theta_q_a terms.

Definition at line 78 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_F_theta_vector, and libMesh::libmesh_assert().

Referenced by libMesh::RBThetaExpansion::~RBThetaExpansion().

79 {
80  libmesh_assert(theta_q_f);
81 
82  _F_theta_vector.push_back(theta_q_f);
83 }
libmesh_assert(j)
std::vector< RBTheta * > _F_theta_vector
Vector storing the RBTheta functors for the affine expansion of the rhs.
void RBThetaExpansion::attach_multiple_A_theta ( std::vector< RBTheta * >  theta_q_a)
virtualinherited

Attach a vector of pointers to functor objects that each define one of the theta_q_a terms.

Definition at line 69 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_A_theta_vector, and libMesh::libmesh_assert().

Referenced by libMesh::RBThetaExpansion::~RBThetaExpansion().

70 {
71  for (std::size_t i=0; i<theta_q_a.size(); i++)
72  {
73  libmesh_assert(theta_q_a[i]);
74  _A_theta_vector.push_back(theta_q_a[i]);
75  }
76 }
std::vector< RBTheta * > _A_theta_vector
Vector storing the pointers to the RBTheta functors for A.
libmesh_assert(j)
void RBThetaExpansion::attach_multiple_F_theta ( std::vector< RBTheta * >  theta_q_f)
virtualinherited

Attach a vector of pointers to functor objects that each define one of the theta_q_f terms.

Definition at line 85 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_F_theta_vector, and libMesh::libmesh_assert().

Referenced by libMesh::RBThetaExpansion::~RBThetaExpansion().

86 {
87  for (std::size_t i=0; i<theta_q_f.size(); i++)
88  {
89  libmesh_assert(theta_q_f[i]);
90  _F_theta_vector.push_back(theta_q_f[i]);
91  }
92 }
libmesh_assert(j)
std::vector< RBTheta * > _F_theta_vector
Vector storing the RBTheta functors for the affine expansion of the rhs.
void RBThetaExpansion::attach_output_theta ( std::vector< RBTheta * >  theta_q_l)
virtualinherited

Attach a vector of pointers to functor objects that define one of the outputs.

Definition at line 94 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_output_theta_vector.

Referenced by libMesh::RBThetaExpansion::attach_output_theta(), and libMesh::RBThetaExpansion::~RBThetaExpansion().

95 {
96  _output_theta_vector.push_back(theta_q_l);
97 }
std::vector< std::vector< RBTheta * > > _output_theta_vector
Vector storing the RBTheta functors for the affine expansion of the outputs.
void RBThetaExpansion::attach_output_theta ( RBTheta theta_q_l)
virtualinherited

Attach a pointer to a functor object that defines one of the outputs.

Definition at line 99 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::attach_output_theta(), and libMesh::libmesh_assert().

100 {
101  libmesh_assert(theta_q_l);
102 
103  std::vector<RBTheta *> theta_l_vector(1);
104  theta_l_vector[0] = theta_q_l;
105 
106  attach_output_theta(theta_l_vector);
107 }
virtual void attach_output_theta(std::vector< RBTheta * > theta_q_l)
Attach a vector of pointers to functor objects that define one of the outputs.
libmesh_assert(j)
void libMesh::ReferenceCounter::disable_print_counter_info ( )
staticinherited

Definition at line 107 of file reference_counter.C.

References libMesh::ReferenceCounter::_enable_print_counter.

Referenced by libMesh::LibMeshInit::LibMeshInit(), and libMesh::ReferenceCounter::n_objects().

108 {
109  _enable_print_counter = false;
110  return;
111 }
static bool _enable_print_counter
Flag to control whether reference count information is printed when print_info is called...
void libMesh::ReferenceCounter::enable_print_counter_info ( )
staticinherited

Methods to enable/disable the reference counter output from print_info()

Definition at line 101 of file reference_counter.C.

References libMesh::ReferenceCounter::_enable_print_counter.

Referenced by libMesh::ReferenceCounter::n_objects().

102 {
103  _enable_print_counter = true;
104  return;
105 }
static bool _enable_print_counter
Flag to control whether reference count information is printed when print_info is called...
Number RBThetaExpansion::eval_A_theta ( unsigned int  q,
const RBParameters mu 
)
virtualinherited

Evaluate theta_q_a at the current parameter.

Override if the theta functions need to be treated differently in subclasses.

Definition at line 109 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_A_theta_vector, libMesh::RBThetaExpansion::get_n_A_terms(), and libMesh::libmesh_assert().

Referenced by libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::RBSCMEvaluation::get_SCM_LB(), libMesh::RBSCMEvaluation::get_SCM_UB(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm(), and libMesh::RBThetaExpansion::~RBThetaExpansion().

111 {
112  if (q >= get_n_A_terms())
113  libmesh_error_msg("Error: We must have q < get_n_A_terms in eval_A_theta.");
114 
116 
117  return _A_theta_vector[q]->evaluate( mu );
118 }
std::vector< RBTheta * > _A_theta_vector
Vector storing the pointers to the RBTheta functors for A.
unsigned int get_n_A_terms() const
Get Q_a, the number of terms in the affine expansion for the bilinear form.
libmesh_assert(j)
Number RBThetaExpansion::eval_F_theta ( unsigned int  q,
const RBParameters mu 
)
virtualinherited

Evaluate theta_q_f at the current parameter.

Definition at line 120 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_F_theta_vector, libMesh::RBThetaExpansion::get_n_F_terms(), and libMesh::libmesh_assert().

Referenced by libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm(), and libMesh::RBThetaExpansion::~RBThetaExpansion().

122 {
123  if (q >= get_n_F_terms())
124  libmesh_error_msg("Error: We must have q < get_n_F_terms in eval_F_theta.");
125 
127 
128  return _F_theta_vector[q]->evaluate( mu );
129 }
libmesh_assert(j)
std::vector< RBTheta * > _F_theta_vector
Vector storing the RBTheta functors for the affine expansion of the rhs.
unsigned int get_n_F_terms() const
Get Q_f, the number of terms in the affine expansion for the right-hand side.
Number RBThetaExpansion::eval_output_theta ( unsigned int  output_index,
unsigned int  q_l,
const RBParameters mu 
)
virtualinherited

Evaluate theta_q_l at the current parameter.

Definition at line 131 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_output_theta_vector, libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), and libMesh::libmesh_assert().

Referenced by libMesh::RBEvaluation::eval_output_dual_norm(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), and libMesh::RBThetaExpansion::~RBThetaExpansion().

134 {
135  if ((output_index >= get_n_outputs()) || (q_l >= get_n_output_terms(output_index)))
136  libmesh_error_msg("Error: We must have output_index < n_outputs and " \
137  << "q_l < get_n_output_terms(output_index) in eval_output_theta.");
138 
139  libmesh_assert(_output_theta_vector[output_index][q_l]);
140 
141  return _output_theta_vector[output_index][q_l]->evaluate( mu );
142 }
unsigned int get_n_output_terms(unsigned int output_index) const
Get the number of affine terms associated with the specified output.
libmesh_assert(j)
std::vector< std::vector< RBTheta * > > _output_theta_vector
Vector storing the RBTheta functors for the affine expansion of the outputs.
unsigned int get_n_outputs() const
Get n_outputs, the number output functionals.
std::string libMesh::ReferenceCounter::get_info ( )
staticinherited

Gets a string containing the reference information.

Definition at line 47 of file reference_counter.C.

References libMesh::ReferenceCounter::_counts, and libMesh::Quality::name().

Referenced by libMesh::ReferenceCounter::print_info().

48 {
49 #if defined(LIBMESH_ENABLE_REFERENCE_COUNTING) && defined(DEBUG)
50 
51  std::ostringstream oss;
52 
53  oss << '\n'
54  << " ---------------------------------------------------------------------------- \n"
55  << "| Reference count information |\n"
56  << " ---------------------------------------------------------------------------- \n";
57 
58  for (Counts::iterator it = _counts.begin();
59  it != _counts.end(); ++it)
60  {
61  const std::string name(it->first);
62  const unsigned int creations = it->second.first;
63  const unsigned int destructions = it->second.second;
64 
65  oss << "| " << name << " reference count information:\n"
66  << "| Creations: " << creations << '\n'
67  << "| Destructions: " << destructions << '\n';
68  }
69 
70  oss << " ---------------------------------------------------------------------------- \n";
71 
72  return oss.str();
73 
74 #else
75 
76  return "";
77 
78 #endif
79 }
std::string name(const ElemQuality q)
This function returns a string containing some name for q.
Definition: elem_quality.C:39
static Counts _counts
Actually holds the data.
unsigned int RBThetaExpansion::get_n_A_terms ( ) const
inherited

Get Q_a, the number of terms in the affine expansion for the bilinear form.

Definition at line 35 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_A_theta_vector.

Referenced by libMesh::RBDataSerialization::add_rb_evaluation_data_to_builder(), libMesh::RBDataSerialization::add_rb_scm_evaluation_data_to_builder(), libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_all_affine_operators(), libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::RBSCMConstruction::compute_SCM_bounding_box(), libMesh::RBThetaExpansion::eval_A_theta(), libMesh::RBSCMConstruction::evaluate_stability_constant(), libMesh::RBConstruction::get_all_matrices(), libMesh::RBSCMEvaluation::get_SCM_LB(), libMesh::RBSCMEvaluation::get_SCM_UB(), libMesh::TransientRBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBSCMEvaluation::legacy_read_offline_data_from_files(), libMesh::TransientRBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBSCMEvaluation::legacy_write_offline_data_to_files(), libMesh::RBDataDeserialization::load_rb_evaluation_data(), libMesh::RBDataDeserialization::load_rb_scm_evaluation_data(), libMesh::RBDataDeserialization::load_transient_rb_evaluation_data(), libMesh::RBSCMConstruction::print_info(), libMesh::RBConstruction::print_info(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBEvaluation::resize_data_structures(), libMesh::RBEvaluation::resize_data_structures(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_residual_terms(), and libMesh::RBThetaExpansion::~RBThetaExpansion().

36 {
37  return cast_int<unsigned int>
38  (_A_theta_vector.size());
39 }
std::vector< RBTheta * > _A_theta_vector
Vector storing the pointers to the RBTheta functors for A.
unsigned int RBThetaExpansion::get_n_F_terms ( ) const
inherited

Get Q_f, the number of terms in the affine expansion for the right-hand side.

Definition at line 41 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_F_theta_vector.

Referenced by libMesh::RBDataSerialization::add_rb_evaluation_data_to_builder(), libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_all_affine_vectors(), libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::RBThetaExpansion::eval_F_theta(), libMesh::RBConstruction::get_all_vectors(), libMesh::TransientRBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::TransientRBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBDataDeserialization::load_rb_evaluation_data(), libMesh::RBDataDeserialization::load_transient_rb_evaluation_data(), libMesh::RBConstruction::print_info(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBEvaluation::resize_data_structures(), libMesh::RBEvaluation::resize_data_structures(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_residual_terms(), and libMesh::RBThetaExpansion::~RBThetaExpansion().

42 {
43  return cast_int<unsigned int>
44  (_F_theta_vector.size());
45 }
std::vector< RBTheta * > _F_theta_vector
Vector storing the RBTheta functors for the affine expansion of the rhs.
unsigned int RBThetaExpansion::get_n_output_terms ( unsigned int  output_index) const
inherited

Get the number of affine terms associated with the specified output.

Definition at line 53 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_output_theta_vector, and libMesh::RBThetaExpansion::get_n_outputs().

Referenced by libMesh::RBDataSerialization::add_rb_evaluation_data_to_builder(), libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBEvaluation::eval_output_dual_norm(), libMesh::RBThetaExpansion::eval_output_theta(), libMesh::RBConstruction::get_output_vectors(), libMesh::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBDataDeserialization::load_rb_evaluation_data(), libMesh::RBConstruction::print_info(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::RBEvaluation::resize_data_structures(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::RBConstruction::update_RB_system_matrices(), and libMesh::RBThetaExpansion::~RBThetaExpansion().

54 {
55  if (index >= get_n_outputs())
56  libmesh_error_msg("Error: We must have index < n_outputs in get_Q_l.");
57 
58  return cast_int<unsigned int>
59  (_output_theta_vector[index].size());
60 }
std::vector< std::vector< RBTheta * > > _output_theta_vector
Vector storing the RBTheta functors for the affine expansion of the outputs.
unsigned int get_n_outputs() const
Get n_outputs, the number output functionals.
unsigned int RBThetaExpansion::get_n_outputs ( ) const
inherited

Get n_outputs, the number output functionals.

Definition at line 47 of file rb_theta_expansion.C.

References libMesh::RBThetaExpansion::_output_theta_vector.

Referenced by libMesh::RBDataSerialization::add_rb_evaluation_data_to_builder(), libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBThetaExpansion::eval_output_theta(), libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBConstruction::get_output_vectors(), libMesh::RBConstruction::initialize_rb_construction(), libMesh::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBDataDeserialization::load_rb_evaluation_data(), libMesh::RBConstruction::print_info(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::RBEvaluation::resize_data_structures(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::RBConstruction::update_RB_system_matrices(), and libMesh::RBThetaExpansion::~RBThetaExpansion().

48 {
49  return cast_int<unsigned int>
50  (_output_theta_vector.size());
51 }
std::vector< std::vector< RBTheta * > > _output_theta_vector
Vector storing the RBTheta functors for the affine expansion of the outputs.
void libMesh::ReferenceCounter::increment_constructor_count ( const std::string &  name)
protectedinherited

Increments the construction counter.

Should be called in the constructor of any derived class that will be reference counted.

Definition at line 185 of file reference_counter.h.

References libMesh::ReferenceCounter::_counts, libMesh::Quality::name(), and libMesh::Threads::spin_mtx.

Referenced by libMesh::ReferenceCounter::n_objects(), and libMesh::ReferenceCountedObject< RBParametrized >::ReferenceCountedObject().

186 {
187  Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
188  std::pair<unsigned int, unsigned int> & p = _counts[name];
189 
190  p.first++;
191 }
std::string name(const ElemQuality q)
This function returns a string containing some name for q.
Definition: elem_quality.C:39
spin_mutex spin_mtx
A convenient spin mutex object which can be used for obtaining locks.
Definition: threads.C:29
static Counts _counts
Actually holds the data.
void libMesh::ReferenceCounter::increment_destructor_count ( const std::string &  name)
protectedinherited

Increments the destruction counter.

Should be called in the destructor of any derived class that will be reference counted.

Definition at line 198 of file reference_counter.h.

References libMesh::ReferenceCounter::_counts, libMesh::Quality::name(), and libMesh::Threads::spin_mtx.

Referenced by libMesh::ReferenceCounter::n_objects(), and libMesh::ReferenceCountedObject< RBParametrized >::~ReferenceCountedObject().

199 {
200  Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
201  std::pair<unsigned int, unsigned int> & p = _counts[name];
202 
203  p.second++;
204 }
std::string name(const ElemQuality q)
This function returns a string containing some name for q.
Definition: elem_quality.C:39
spin_mutex spin_mtx
A convenient spin mutex object which can be used for obtaining locks.
Definition: threads.C:29
static Counts _counts
Actually holds the data.
static unsigned int libMesh::ReferenceCounter::n_objects ( )
staticinherited
void libMesh::ReferenceCounter::print_info ( std::ostream &  out = libMesh::out)
staticinherited

Prints the reference information, by default to libMesh::out.

Definition at line 88 of file reference_counter.C.

References libMesh::ReferenceCounter::_enable_print_counter, and libMesh::ReferenceCounter::get_info().

Referenced by libMesh::LibMeshInit::LibMeshInit().

89 {
91  out_stream << ReferenceCounter::get_info();
92 }
static std::string get_info()
Gets a string containing the reference information.
static bool _enable_print_counter
Flag to control whether reference count information is printed when print_info is called...

Member Data Documentation

ReferenceCounter::Counts libMesh::ReferenceCounter::_counts
staticprotectedinherited
bool libMesh::ReferenceCounter::_enable_print_counter = true
staticprotectedinherited

Flag to control whether reference count information is printed when print_info is called.

Definition at line 143 of file reference_counter.h.

Referenced by libMesh::ReferenceCounter::disable_print_counter_info(), libMesh::ReferenceCounter::enable_print_counter_info(), and libMesh::ReferenceCounter::print_info().

Threads::spin_mutex libMesh::ReferenceCounter::_mutex
staticprotectedinherited

Mutual exclusion object to enable thread-safe reference counting.

Definition at line 137 of file reference_counter.h.

Threads::atomic< unsigned int > libMesh::ReferenceCounter::_n_objects
staticprotectedinherited

The number of objects.

Print the reference count information when the number returns to 0.

Definition at line 132 of file reference_counter.h.

Referenced by libMesh::ReferenceCounter::n_objects(), libMesh::ReferenceCounter::ReferenceCounter(), and libMesh::ReferenceCounter::~ReferenceCounter().

ThetaA0 EimTestRBThetaExpansion::theta_a_0

Definition at line 162 of file assembly.h.


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