libMesh
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Attributes | Private Attributes | List of all members
EimTestRBAssemblyExpansion Struct Reference

#include <assembly.h>

Inheritance diagram for EimTestRBAssemblyExpansion:
[legend]

Public Member Functions

 EimTestRBAssemblyExpansion ()
 Constructor.
 
void perform_A_interior_assembly (unsigned int q, FEMContext &context) const
 Perform the specified A interior assembly.
 
void perform_A_boundary_assembly (unsigned int q, FEMContext &context) const
 Perform the specified A boundary assembly.
 
void perform_F_interior_assembly (unsigned int q, FEMContext &context) const
 Perform the specified F interior assembly.
 
void perform_F_boundary_assembly (unsigned int q, FEMContext &context) const
 Perform the specified F boundary assembly.
 
void perform_output_interior_assembly (unsigned int output_index, unsigned int q_l, FEMContext &context) const
 Perform the specified output assembly.
 
void perform_output_boundary_assembly (unsigned int output_index, unsigned int q_l, FEMContext &context) const
 Perform the specified output assembly.
 
unsigned int get_n_A_terms () const
 Get Q_a, the number of terms in the affine expansion for the bilinear form.
 
unsigned int get_n_F_terms () const
 Get Q_f, the number of terms in the affine expansion for the right-hand side.
 
unsigned int get_n_outputs () const
 Get n_outputs, the number output functionals.
 
unsigned int get_n_output_terms (unsigned int output_index) const
 Get the number of affine terms associated with the specified output.
 
void attach_A_assembly (ElemAssembly *Aq_assembly)
 Attach ElemAssembly object for the left-hand side (both interior and boundary assembly).
 
void attach_multiple_A_assembly (std::vector< std::unique_ptr< ElemAssembly > > &Aq_assembly)
 Attach multiple ElemAssembly objects for the left-hand side (both interior and boundary assembly).
 
void attach_F_assembly (ElemAssembly *Fq_assembly)
 Attach ElemAssembly object for the right-hand side (both interior and boundary assembly).
 
void attach_multiple_F_assembly (std::vector< std::unique_ptr< ElemAssembly > > &Fq_assembly)
 Attach multiple ElemAssembly objects for the right-hand side (both interior and boundary assembly).
 
virtual void attach_output_assembly (std::vector< std::unique_ptr< ElemAssembly > > &output_assembly)
 Attach ElemAssembly object for an output (both interior and boundary assembly).
 
virtual void attach_output_assembly (std::vector< ElemAssembly * > output_assembly)
 Attach ElemAssembly object for an output (both interior and boundary assembly).
 
virtual void attach_output_assembly (ElemAssembly *output_assembly)
 Attach ElemAssembly object for an output (both interior and boundary assembly).
 
ElemAssemblyget_A_assembly (unsigned int q)
 Return a reference to the specified A_assembly object.
 
ElemAssemblyget_F_assembly (unsigned int q)
 Return a reference to the specified F_assembly object.
 
ElemAssemblyget_output_assembly (unsigned int output_index, unsigned int q_l)
 Return a reference to the specified output assembly object.
 

Static Public Member Functions

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

Public Attributes

A0 A0_assembly
 
OutputAssembly L0
 
OutputAssembly L1
 

Protected Types

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

Protected Member Functions

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

Static Protected Attributes

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

Private Attributes

std::vector< ElemAssembly * > _A_assembly_vector
 Vectors storing the function pointers to the assembly routines for the affine operators, both interior and boundary assembly.
 
std::vector< ElemAssembly * > _F_assembly_vector
 Vector storing the function pointers to the assembly routines for the rhs affine vectors.
 
std::vector< std::vector< ElemAssembly * > > _output_assembly_vector
 Vector storing the function pointers to the assembly routines for the outputs.
 

Detailed Description

Definition at line 298 of file assembly.h.

Member Typedef Documentation

◆ Counts

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

◆ EimTestRBAssemblyExpansion()

EimTestRBAssemblyExpansion::EimTestRBAssemblyExpansion ( )
inline

Constructor.

Definition at line 303 of file assembly.h.

303 :
304 L0(BoundingBox(/*min=*/Point(-0.2, -0.2), /*max=*/Point(0.0, 0.0))),
305 L1(BoundingBox(/*min=*/Point(0.0, 0.0), /*max=*/Point(0.2, 0.2)))
306 {
308
309 // Attach output assembly objects
312 }
Defines a Cartesian bounding box by the two corner extremum.
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition point.h:40
virtual void attach_output_assembly(std::vector< std::unique_ptr< ElemAssembly > > &output_assembly)
Attach ElemAssembly object for an output (both interior and boundary assembly).
void attach_A_assembly(ElemAssembly *Aq_assembly)
Attach ElemAssembly object for the left-hand side (both interior and boundary assembly).

References A0_assembly, libMesh::RBAssemblyExpansion::attach_A_assembly(), libMesh::RBAssemblyExpansion::attach_output_assembly(), L0, and L1.

Member Function Documentation

◆ attach_A_assembly()

void RBAssemblyExpansion::attach_A_assembly ( ElemAssembly Aq_assembly)
inherited

Attach ElemAssembly object for the left-hand side (both interior and boundary assembly).

Definition at line 123 of file rb_assembly_expansion.C.

124{
125 _A_assembly_vector.push_back(Aq_assembly);
126}
std::vector< ElemAssembly * > _A_assembly_vector
Vectors storing the function pointers to the assembly routines for the affine operators,...

References libMesh::RBAssemblyExpansion::_A_assembly_vector.

Referenced by AcousticsRBAssemblyExpansion::AcousticsRBAssemblyExpansion(), CDRBAssemblyExpansion::CDRBAssemblyExpansion(), EimTestRBAssemblyExpansion(), ElasticityAssemblyExpansion::ElasticityAssemblyExpansion(), and Ex6AssemblyExpansion::Ex6AssemblyExpansion().

◆ attach_F_assembly()

void RBAssemblyExpansion::attach_F_assembly ( ElemAssembly Fq_assembly)
inherited

Attach ElemAssembly object for the right-hand side (both interior and boundary assembly).

Definition at line 134 of file rb_assembly_expansion.C.

135{
136 _F_assembly_vector.push_back(Fq_assembly);
137}
std::vector< ElemAssembly * > _F_assembly_vector
Vector storing the function pointers to the assembly routines for the rhs affine vectors.

References libMesh::RBAssemblyExpansion::_F_assembly_vector.

Referenced by AcousticsRBAssemblyExpansion::AcousticsRBAssemblyExpansion(), CDRBAssemblyExpansion::CDRBAssemblyExpansion(), ElasticityAssemblyExpansion::ElasticityAssemblyExpansion(), and Ex6AssemblyExpansion::Ex6AssemblyExpansion().

◆ attach_multiple_A_assembly()

void RBAssemblyExpansion::attach_multiple_A_assembly ( std::vector< std::unique_ptr< ElemAssembly > > &  Aq_assembly)
inherited

Attach multiple ElemAssembly objects for the left-hand side (both interior and boundary assembly).

Definition at line 128 of file rb_assembly_expansion.C.

129{
130 for (auto & up : Aq_assembly)
131 _A_assembly_vector.push_back(up.get());
132}
const Elem & get(const ElemType type_in)

References libMesh::RBAssemblyExpansion::_A_assembly_vector.

◆ attach_multiple_F_assembly()

void RBAssemblyExpansion::attach_multiple_F_assembly ( std::vector< std::unique_ptr< ElemAssembly > > &  Fq_assembly)
inherited

Attach multiple ElemAssembly objects for the right-hand side (both interior and boundary assembly).

Definition at line 139 of file rb_assembly_expansion.C.

140{
141 for (auto & up : Fq_assembly)
142 _F_assembly_vector.push_back(up.get());
143}

References libMesh::RBAssemblyExpansion::_F_assembly_vector.

◆ attach_output_assembly() [1/3]

void RBAssemblyExpansion::attach_output_assembly ( ElemAssembly output_assembly)
virtualinherited

Attach ElemAssembly object for an output (both interior and boundary assembly).

This function provides simpler syntax in the case that Q_l = 1; we do not need to use a vector in this case.

Definition at line 159 of file rb_assembly_expansion.C.

160{
161 std::vector<ElemAssembly *> L_vector(1); L_vector[0] = output_assembly;
162
163 attach_output_assembly(L_vector);
164}

References libMesh::RBAssemblyExpansion::attach_output_assembly().

◆ attach_output_assembly() [2/3]

void RBAssemblyExpansion::attach_output_assembly ( std::vector< ElemAssembly * >  output_assembly)
virtualinherited

Attach ElemAssembly object for an output (both interior and boundary assembly).

In this case we pass in vector arguments to allow for Q_l > 1.

Definition at line 154 of file rb_assembly_expansion.C.

155{
156 _output_assembly_vector.push_back(std::move(output_assembly));
157}
std::vector< std::vector< ElemAssembly * > > _output_assembly_vector
Vector storing the function pointers to the assembly routines for the outputs.

References libMesh::RBAssemblyExpansion::_output_assembly_vector.

◆ attach_output_assembly() [3/3]

void RBAssemblyExpansion::attach_output_assembly ( std::vector< std::unique_ptr< ElemAssembly > > &  output_assembly)
virtualinherited

Attach ElemAssembly object for an output (both interior and boundary assembly).

In this case we pass in vector arguments to allow for Q_l > 1.

Definition at line 145 of file rb_assembly_expansion.C.

146{
147 std::vector<ElemAssembly *> output_assembly_ptr;
148 for (auto & up : output_assembly)
149 output_assembly_ptr.push_back(up.get());
150
151 _output_assembly_vector.push_back(output_assembly_ptr);
152}

References libMesh::RBAssemblyExpansion::_output_assembly_vector.

Referenced by AcousticsRBAssemblyExpansion::AcousticsRBAssemblyExpansion(), libMesh::RBAssemblyExpansion::attach_output_assembly(), CDRBAssemblyExpansion::CDRBAssemblyExpansion(), and EimTestRBAssemblyExpansion().

◆ disable_print_counter_info()

void libMesh::ReferenceCounter::disable_print_counter_info ( )
staticinherited

Definition at line 100 of file reference_counter.C.

101{
102 _enable_print_counter = false;
103 return;
104}
static bool _enable_print_counter
Flag to control whether reference count information is printed when print_info is called.

References libMesh::ReferenceCounter::_enable_print_counter.

◆ enable_print_counter_info()

void libMesh::ReferenceCounter::enable_print_counter_info ( )
staticinherited

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

Enabled by default.

Definition at line 94 of file reference_counter.C.

95{
97 return;
98}

References libMesh::ReferenceCounter::_enable_print_counter.

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

◆ get_A_assembly()

ElemAssembly & RBAssemblyExpansion::get_A_assembly ( unsigned int  q)
inherited

Return a reference to the specified A_assembly object.

Definition at line 166 of file rb_assembly_expansion.C.

167{
168 libmesh_error_msg_if(q >= get_n_A_terms(),
169 "Error: We must have q < get_n_A_terms in get_A_assembly.");
170
171 return *_A_assembly_vector[q];
172}
unsigned int get_n_A_terms() const
Get Q_a, the number of terms in the affine expansion for the bilinear form.

References libMesh::RBAssemblyExpansion::_A_assembly_vector, and libMesh::RBAssemblyExpansion::get_n_A_terms().

Referenced by libMesh::RBConstruction::add_scaled_Aq(), libMesh::RBConstruction::assemble_Aq_matrix(), and libMesh::RBConstruction::assemble_inner_product_matrix().

◆ get_F_assembly()

ElemAssembly & RBAssemblyExpansion::get_F_assembly ( unsigned int  q)
inherited

Return a reference to the specified F_assembly object.

Definition at line 174 of file rb_assembly_expansion.C.

175{
176 libmesh_error_msg_if(q >= get_n_F_terms(),
177 "Error: We must have q < get_n_F_terms in get_F_assembly.");
178
179 return *_F_assembly_vector[q];
180}
unsigned int get_n_F_terms() const
Get Q_f, the number of terms in the affine expansion for the right-hand side.

References libMesh::RBAssemblyExpansion::_F_assembly_vector, and libMesh::RBAssemblyExpansion::get_n_F_terms().

Referenced by libMesh::RBConstruction::assemble_Fq_vector().

◆ get_info()

std::string libMesh::ReferenceCounter::get_info ( )
staticinherited

Gets a string containing the reference information.

Definition at line 47 of file reference_counter.C.

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 (const auto & [name, cd] : _counts)
59 oss << "| " << name << " reference count information:\n"
60 << "| Creations: " << cd.first << '\n'
61 << "| Destructions: " << cd.second << '\n';
62
63 oss << " ---------------------------------------------------------------------------- \n";
64
65 return oss.str();
66
67#else
68
69 return "";
70
71#endif
72}
static Counts _counts
Actually holds the data.
std::string name(const ElemQuality q)
This function returns a string containing some name for q.

References libMesh::ReferenceCounter::_counts.

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

◆ get_n_A_terms()

unsigned int RBAssemblyExpansion::get_n_A_terms ( ) const
inherited

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

Definition at line 97 of file rb_assembly_expansion.C.

98{
99 return cast_int<unsigned int>
100 (_A_assembly_vector.size());
101}

References libMesh::RBAssemblyExpansion::_A_assembly_vector.

Referenced by libMesh::RBAssemblyExpansion::get_A_assembly(), libMesh::RBAssemblyExpansion::perform_A_boundary_assembly(), and libMesh::RBAssemblyExpansion::perform_A_interior_assembly().

◆ get_n_F_terms()

unsigned int RBAssemblyExpansion::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 103 of file rb_assembly_expansion.C.

104{
105 return cast_int<unsigned int>
106 (_F_assembly_vector.size());
107}

References libMesh::RBAssemblyExpansion::_F_assembly_vector.

Referenced by libMesh::RBAssemblyExpansion::get_F_assembly(), libMesh::RBAssemblyExpansion::perform_F_boundary_assembly(), and libMesh::RBAssemblyExpansion::perform_F_interior_assembly().

◆ get_n_output_terms()

unsigned int RBAssemblyExpansion::get_n_output_terms ( unsigned int  output_index) const
inherited

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

Definition at line 115 of file rb_assembly_expansion.C.

116{
117 libmesh_error_msg_if(index >= get_n_outputs(), "Error: We must have index < n_outputs in get_Q_l.");
118
119 return cast_int<unsigned int>
120 (_output_assembly_vector[index].size());
121}
unsigned int get_n_outputs() const
Get n_outputs, the number output functionals.

References libMesh::RBAssemblyExpansion::_output_assembly_vector, and libMesh::RBAssemblyExpansion::get_n_outputs().

Referenced by libMesh::RBAssemblyExpansion::get_output_assembly(), libMesh::RBAssemblyExpansion::perform_output_boundary_assembly(), and libMesh::RBAssemblyExpansion::perform_output_interior_assembly().

◆ get_n_outputs()

unsigned int RBAssemblyExpansion::get_n_outputs ( ) const
inherited

◆ get_output_assembly()

ElemAssembly & RBAssemblyExpansion::get_output_assembly ( unsigned int  output_index,
unsigned int  q_l 
)
inherited

Return a reference to the specified output assembly object.

Definition at line 182 of file rb_assembly_expansion.C.

184{
185 libmesh_error_msg_if((output_index >= get_n_outputs()) || (q_l >= get_n_output_terms(output_index)),
186 "Error: We must have output_index < n_outputs and "
187 "q_l < get_n_output_terms(output_index) in get_output_assembly.");
188
189 return *_output_assembly_vector[output_index][q_l];
190}
unsigned int get_n_output_terms(unsigned int output_index) const
Get the number of affine terms associated with the specified output.

References libMesh::RBAssemblyExpansion::_output_assembly_vector, libMesh::RBAssemblyExpansion::get_n_output_terms(), and libMesh::RBAssemblyExpansion::get_n_outputs().

Referenced by libMesh::RBConstruction::assemble_all_output_vectors().

◆ increment_constructor_count()

void libMesh::ReferenceCounter::increment_constructor_count ( const std::string &  name)
inlineprotectednoexceptinherited

Increments the construction counter.

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

Definition at line 183 of file reference_counter.h.

184{
185 libmesh_try
186 {
187 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
188 std::pair<unsigned int, unsigned int> & p = _counts[name];
189 p.first++;
190 }
191 libmesh_catch (...)
192 {
193 auto stream = libMesh::err.get();
194 stream->exceptions(stream->goodbit); // stream must not throw
195 libMesh::err << "Encountered unrecoverable error while calling "
196 << "ReferenceCounter::increment_constructor_count() "
197 << "for a(n) " << name << " object." << std::endl;
198 std::terminate();
199 }
200}
streamT * get()
Rather than implement every ostream/ios/ios_base function, we'll be lazy and make esoteric uses go th...
spin_mutex spin_mtx
A convenient spin mutex object which can be used for obtaining locks.
Definition threads.C:30
OStreamProxy err

References libMesh::err, libMesh::BasicOStreamProxy< charT, traits >::get(), and libMesh::Threads::spin_mtx.

Referenced by libMesh::ReferenceCountedObject< T >::ReferenceCountedObject(), libMesh::ReferenceCountedObject< T >::ReferenceCountedObject(), and libMesh::ReferenceCountedObject< T >::ReferenceCountedObject().

◆ increment_destructor_count()

void libMesh::ReferenceCounter::increment_destructor_count ( const std::string &  name)
inlineprotectednoexceptinherited

Increments the destruction counter.

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

Definition at line 207 of file reference_counter.h.

208{
209 libmesh_try
210 {
211 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
212 std::pair<unsigned int, unsigned int> & p = _counts[name];
213 p.second++;
214 }
215 libmesh_catch (...)
216 {
217 auto stream = libMesh::err.get();
218 stream->exceptions(stream->goodbit); // stream must not throw
219 libMesh::err << "Encountered unrecoverable error while calling "
220 << "ReferenceCounter::increment_destructor_count() "
221 << "for a(n) " << name << " object." << std::endl;
222 std::terminate();
223 }
224}

References libMesh::err, libMesh::BasicOStreamProxy< charT, traits >::get(), and libMesh::Threads::spin_mtx.

Referenced by libMesh::ReferenceCountedObject< T >::~ReferenceCountedObject().

◆ n_objects()

static unsigned int libMesh::ReferenceCounter::n_objects ( )
inlinestaticinherited

Prints the number of outstanding (created, but not yet destroyed) objects.

Definition at line 85 of file reference_counter.h.

86 { return _n_objects; }
static Threads::atomic< unsigned int > _n_objects
The number of objects.

References libMesh::ReferenceCounter::_n_objects.

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

◆ perform_A_boundary_assembly()

void RBAssemblyExpansion::perform_A_boundary_assembly ( unsigned int  q,
FEMContext context 
) const
inherited

Perform the specified A boundary assembly.

Definition at line 38 of file rb_assembly_expansion.C.

40{
41 libmesh_error_msg_if(q >= get_n_A_terms(),
42 "Error: We must have q < get_n_A_terms in perform_A_boundary_assembly.");
43
45
46 return _A_assembly_vector[q]->boundary_assembly( context );
47}
libmesh_assert(ctx)

References libMesh::RBAssemblyExpansion::_A_assembly_vector, libMesh::RBAssemblyExpansion::get_n_A_terms(), and libMesh::libmesh_assert().

◆ perform_A_interior_assembly()

void RBAssemblyExpansion::perform_A_interior_assembly ( unsigned int  q,
FEMContext context 
) const
inherited

Perform the specified A interior assembly.

Definition at line 27 of file rb_assembly_expansion.C.

29{
30 libmesh_error_msg_if(q >= get_n_A_terms(),
31 "Error: We must have q < get_n_A_terms in perform_A_interior_assembly.");
32
34
35 return _A_assembly_vector[q]->interior_assembly( context );
36}

References libMesh::RBAssemblyExpansion::_A_assembly_vector, libMesh::RBAssemblyExpansion::get_n_A_terms(), and libMesh::libmesh_assert().

◆ perform_F_boundary_assembly()

void RBAssemblyExpansion::perform_F_boundary_assembly ( unsigned int  q,
FEMContext context 
) const
inherited

Perform the specified F boundary assembly.

Definition at line 60 of file rb_assembly_expansion.C.

62{
63 libmesh_error_msg_if(q >= get_n_F_terms(),
64 "Error: We must have q < get_n_F_terms in perform_F_interior_assembly.");
65
67
68 return _F_assembly_vector[q]->boundary_assembly( context );
69}

References libMesh::RBAssemblyExpansion::_A_assembly_vector, libMesh::RBAssemblyExpansion::_F_assembly_vector, libMesh::RBAssemblyExpansion::get_n_F_terms(), and libMesh::libmesh_assert().

◆ perform_F_interior_assembly()

void RBAssemblyExpansion::perform_F_interior_assembly ( unsigned int  q,
FEMContext context 
) const
inherited

Perform the specified F interior assembly.

Definition at line 49 of file rb_assembly_expansion.C.

51{
52 libmesh_error_msg_if(q >= get_n_F_terms(),
53 "Error: We must have q < get_n_F_terms in perform_F_interior_assembly.");
54
56
57 return _F_assembly_vector[q]->interior_assembly( context );
58}

References libMesh::RBAssemblyExpansion::_A_assembly_vector, libMesh::RBAssemblyExpansion::_F_assembly_vector, libMesh::RBAssemblyExpansion::get_n_F_terms(), and libMesh::libmesh_assert().

◆ perform_output_boundary_assembly()

void RBAssemblyExpansion::perform_output_boundary_assembly ( unsigned int  output_index,
unsigned int  q_l,
FEMContext context 
) const
inherited

Perform the specified output assembly.

Definition at line 84 of file rb_assembly_expansion.C.

87{
88 libmesh_error_msg_if((output_index >= get_n_outputs()) || (q_l >= get_n_output_terms(output_index)),
89 "Error: We must have output_index < n_outputs and "
90 "q_l < get_n_output_terms(output_index) in perform_output_boundary_assembly.");
91
92 libmesh_assert(_output_assembly_vector[output_index][q_l]);
93
94 return _output_assembly_vector[output_index][q_l]->boundary_assembly(context);
95}

References libMesh::RBAssemblyExpansion::_output_assembly_vector, libMesh::RBAssemblyExpansion::get_n_output_terms(), libMesh::RBAssemblyExpansion::get_n_outputs(), and libMesh::libmesh_assert().

◆ perform_output_interior_assembly()

void RBAssemblyExpansion::perform_output_interior_assembly ( unsigned int  output_index,
unsigned int  q_l,
FEMContext context 
) const
inherited

Perform the specified output assembly.

Definition at line 71 of file rb_assembly_expansion.C.

74{
75 libmesh_error_msg_if((output_index >= get_n_outputs()) || (q_l >= get_n_output_terms(output_index)),
76 "Error: We must have output_index < n_outputs and "
77 "q_l < get_n_output_terms(output_index) in perform_output_interior_assembly.");
78
79 libmesh_assert(_output_assembly_vector[output_index][q_l]);
80
81 return _output_assembly_vector[output_index][q_l]->interior_assembly(context);
82}

References libMesh::RBAssemblyExpansion::_output_assembly_vector, libMesh::RBAssemblyExpansion::get_n_output_terms(), libMesh::RBAssemblyExpansion::get_n_outputs(), and libMesh::libmesh_assert().

◆ print_info()

void libMesh::ReferenceCounter::print_info ( std::ostream &  out_stream = libMesh::out)
staticinherited

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

Definition at line 81 of file reference_counter.C.

82{
84 out_stream << ReferenceCounter::get_info();
85}
static std::string get_info()
Gets a string containing the reference information.

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

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

Member Data Documentation

◆ _A_assembly_vector

std::vector<ElemAssembly *> libMesh::RBAssemblyExpansion::_A_assembly_vector
privateinherited

◆ _counts

ReferenceCounter::Counts libMesh::ReferenceCounter::_counts
staticprotectedinherited

Actually holds the data.

Definition at line 124 of file reference_counter.h.

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

◆ _enable_print_counter

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().

◆ _F_assembly_vector

std::vector<ElemAssembly *> libMesh::RBAssemblyExpansion::_F_assembly_vector
privateinherited

◆ _mutex

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.

◆ _n_objects

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

◆ _output_assembly_vector

std::vector<std::vector<ElemAssembly *> > libMesh::RBAssemblyExpansion::_output_assembly_vector
privateinherited

◆ A0_assembly

A0 EimTestRBAssemblyExpansion::A0_assembly

Definition at line 315 of file assembly.h.

Referenced by EimTestRBAssemblyExpansion(), and SimpleRBConstruction::init_data().

◆ L0

OutputAssembly EimTestRBAssemblyExpansion::L0

Definition at line 318 of file assembly.h.

Referenced by EimTestRBAssemblyExpansion().

◆ L1

OutputAssembly EimTestRBAssemblyExpansion::L1

Definition at line 319 of file assembly.h.

Referenced by EimTestRBAssemblyExpansion().


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