libMesh
|
#include <assembly.h>
Public Member Functions | |
Ex6AssemblyExpansion () | |
Constructor. More... | |
void | perform_A_interior_assembly (unsigned int q, FEMContext &context) const |
Perform the specified A interior assembly. More... | |
void | perform_A_boundary_assembly (unsigned int q, FEMContext &context) const |
Perform the specified A boundary assembly. More... | |
void | perform_F_interior_assembly (unsigned int q, FEMContext &context) const |
Perform the specified F interior assembly. More... | |
void | perform_F_boundary_assembly (unsigned int q, FEMContext &context) const |
Perform the specified F boundary assembly. More... | |
void | perform_output_interior_assembly (unsigned int output_index, unsigned int q_l, FEMContext &context) const |
Perform the specified output assembly. More... | |
void | perform_output_boundary_assembly (unsigned int output_index, unsigned int q_l, FEMContext &context) const |
Perform the specified output assembly. 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... | |
void | attach_A_assembly (ElemAssembly *Aq_assembly) |
Attach ElemAssembly object for the left-hand side (both interior and boundary assembly). More... | |
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). More... | |
void | attach_F_assembly (ElemAssembly *Fq_assembly) |
Attach ElemAssembly object for the right-hand side (both interior and boundary assembly). More... | |
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). More... | |
virtual void | attach_output_assembly (std::vector< std::unique_ptr< ElemAssembly >> &output_assembly) |
Attach ElemAssembly object for an output (both interior and boundary assembly). More... | |
virtual void | attach_output_assembly (std::vector< ElemAssembly *> output_assembly) |
Attach ElemAssembly object for an output (both interior and boundary assembly). More... | |
virtual void | attach_output_assembly (ElemAssembly *output_assembly) |
Attach ElemAssembly object for an output (both interior and boundary assembly). More... | |
ElemAssembly & | get_A_assembly (unsigned int q) |
Return a reference to the specified A_assembly object. More... | |
ElemAssembly & | get_F_assembly (unsigned int q) |
Return a reference to the specified F_assembly object. More... | |
ElemAssembly & | get_output_assembly (unsigned int output_index, unsigned int q_l) |
Return a reference to the specified output assembly object. 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_stream=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 | |
AssemblyA0 | assembly_a0 |
AssemblyA1 | assembly_a1 |
AssemblyA2 | assembly_a2 |
AssemblyF0 | assembly_f0 |
AssemblyF1 | assembly_f1 |
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) noexcept |
Increments the construction counter. More... | |
void | increment_destructor_count (const std::string &name) noexcept |
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... | |
Definition at line 404 of file assembly.h.
|
protectedinherited |
Data structure to log the information.
The log is identified by the class name.
Definition at line 119 of file reference_counter.h.
|
inline |
Constructor.
Definition at line 410 of file assembly.h.
References assembly_a0, assembly_a1, assembly_a2, assembly_f0, assembly_f1, libMesh::RBAssemblyExpansion::attach_A_assembly(), and libMesh::RBAssemblyExpansion::attach_F_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.
References libMesh::RBAssemblyExpansion::_A_assembly_vector.
Referenced by AcousticsRBAssemblyExpansion::AcousticsRBAssemblyExpansion(), CDRBAssemblyExpansion::CDRBAssemblyExpansion(), EimTestRBAssemblyExpansion::EimTestRBAssemblyExpansion(), ElasticityAssemblyExpansion::ElasticityAssemblyExpansion(), and Ex6AssemblyExpansion().
|
inherited |
Attach ElemAssembly object for the right-hand side (both interior and boundary assembly).
Definition at line 134 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_F_assembly_vector.
Referenced by AcousticsRBAssemblyExpansion::AcousticsRBAssemblyExpansion(), CDRBAssemblyExpansion::CDRBAssemblyExpansion(), ElasticityAssemblyExpansion::ElasticityAssemblyExpansion(), and Ex6AssemblyExpansion().
|
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.
References libMesh::RBAssemblyExpansion::_A_assembly_vector.
|
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.
References libMesh::RBAssemblyExpansion::_F_assembly_vector.
|
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.
References libMesh::RBAssemblyExpansion::_output_assembly_vector.
Referenced by AcousticsRBAssemblyExpansion::AcousticsRBAssemblyExpansion(), libMesh::RBAssemblyExpansion::attach_output_assembly(), CDRBAssemblyExpansion::CDRBAssemblyExpansion(), and EimTestRBAssemblyExpansion::EimTestRBAssemblyExpansion().
|
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.
References libMesh::RBAssemblyExpansion::_output_assembly_vector.
|
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.
References libMesh::RBAssemblyExpansion::attach_output_assembly().
|
staticinherited |
Definition at line 100 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter.
|
staticinherited |
Methods to enable/disable the reference counter output from print_info()
Definition at line 94 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter.
|
inherited |
Return a reference to the specified A_assembly object.
Definition at line 166 of file rb_assembly_expansion.C.
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().
|
inherited |
Return a reference to the specified F_assembly object.
Definition at line 174 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_F_assembly_vector, and libMesh::RBAssemblyExpansion::get_n_F_terms().
Referenced by libMesh::RBConstruction::assemble_Fq_vector().
|
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().
|
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.
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().
|
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.
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 the number of affine terms associated with the specified output.
Definition at line 115 of file rb_assembly_expansion.C.
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().
|
inherited |
Get n_outputs, the number output functionals.
Definition at line 109 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_output_assembly_vector.
Referenced by libMesh::RBAssemblyExpansion::get_n_output_terms(), libMesh::RBAssemblyExpansion::get_output_assembly(), libMesh::RBAssemblyExpansion::perform_output_boundary_assembly(), and libMesh::RBAssemblyExpansion::perform_output_interior_assembly().
|
inherited |
Return a reference to the specified output assembly object.
Definition at line 182 of file rb_assembly_expansion.C.
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().
|
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.
References libMesh::err, libMesh::BasicOStreamProxy< charT, traits >::get(), libMesh::Quality::name(), and libMesh::Threads::spin_mtx.
Referenced by libMesh::ReferenceCountedObject< RBParametrized >::ReferenceCountedObject().
|
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.
References libMesh::err, libMesh::BasicOStreamProxy< charT, traits >::get(), libMesh::Quality::name(), and libMesh::Threads::spin_mtx.
Referenced by libMesh::ReferenceCountedObject< RBParametrized >::~ReferenceCountedObject().
|
inlinestaticinherited |
Prints the number of outstanding (created, but not yet destroyed) objects.
Definition at line 85 of file reference_counter.h.
References libMesh::ReferenceCounter::_n_objects.
Referenced by libMesh::LibMeshInit::~LibMeshInit().
|
inherited |
Perform the specified A boundary assembly.
Definition at line 38 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_A_assembly_vector, libMesh::RBAssemblyExpansion::get_n_A_terms(), and libMesh::libmesh_assert().
|
inherited |
Perform the specified A interior assembly.
Definition at line 27 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_A_assembly_vector, libMesh::RBAssemblyExpansion::get_n_A_terms(), and libMesh::libmesh_assert().
|
inherited |
Perform the specified F boundary assembly.
Definition at line 60 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_A_assembly_vector, libMesh::RBAssemblyExpansion::_F_assembly_vector, libMesh::RBAssemblyExpansion::get_n_F_terms(), and libMesh::libmesh_assert().
|
inherited |
Perform the specified F interior assembly.
Definition at line 49 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_A_assembly_vector, libMesh::RBAssemblyExpansion::_F_assembly_vector, libMesh::RBAssemblyExpansion::get_n_F_terms(), and libMesh::libmesh_assert().
|
inherited |
Perform the specified output assembly.
Definition at line 84 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_output_assembly_vector, libMesh::RBAssemblyExpansion::get_n_output_terms(), libMesh::RBAssemblyExpansion::get_n_outputs(), and libMesh::libmesh_assert().
|
inherited |
Perform the specified output assembly.
Definition at line 71 of file rb_assembly_expansion.C.
References libMesh::RBAssemblyExpansion::_output_assembly_vector, libMesh::RBAssemblyExpansion::get_n_output_terms(), libMesh::RBAssemblyExpansion::get_n_outputs(), and libMesh::libmesh_assert().
|
staticinherited |
Prints the reference information, by default to libMesh::out
.
Definition at line 81 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter, and libMesh::ReferenceCounter::get_info().
Referenced by libMesh::LibMeshInit::~LibMeshInit().
|
staticprotectedinherited |
Actually holds the data.
Definition at line 124 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::get_info().
|
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().
|
staticprotectedinherited |
Mutual exclusion object to enable thread-safe reference counting.
Definition at line 137 of file reference_counter.h.
|
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().
AssemblyA0 Ex6AssemblyExpansion::assembly_a0 |
Definition at line 420 of file assembly.h.
Referenced by Ex6AssemblyExpansion().
AssemblyA1 Ex6AssemblyExpansion::assembly_a1 |
Definition at line 421 of file assembly.h.
Referenced by Ex6AssemblyExpansion().
AssemblyA2 Ex6AssemblyExpansion::assembly_a2 |
Definition at line 422 of file assembly.h.
Referenced by Ex6AssemblyExpansion().
AssemblyF0 Ex6AssemblyExpansion::assembly_f0 |
Definition at line 423 of file assembly.h.
Referenced by Ex6AssemblyExpansion().
AssemblyF1 Ex6AssemblyExpansion::assembly_f1 |
Definition at line 424 of file assembly.h.
Referenced by Ex6AssemblyExpansion().