将任意数量的壳矩阵组合成一个单独的壳矩阵,通过将它们相加在一起的类。 更多...
#include <sum_shell_matrix.h>
Public 成员函数 | |
SumShellMatrix (const Parallel::Communicator &comm_in) | |
Constructor; 初始化一个空的和(sum)。 更多... | |
SumShellMatrix (const std::vector< ShellMatrix< T > * > &mat, const Parallel::Communicator &comm_in) | |
Constructor,传递一个壳矩阵的向量。 更多... | |
virtual | ~SumShellMatrix () |
Destructor(析构函数)。 更多... | |
virtual numeric_index_type | m () const override |
获取矩阵的行维度。 更多... | |
virtual numeric_index_type | n () const override |
获取矩阵的列维度。 更多... | |
virtual void | vector_mult (NumericVector< T > &dest, const NumericVector< T > &arg) const override |
将矩阵与参数arg相乘,并将结果存储在 更多... | |
virtual void | vector_mult_add (NumericVector< T > &dest, const NumericVector< T > &arg) const override |
将矩阵与参数arg相乘,然后将结果添加到 更多... | |
virtual void | get_diagonal (NumericVector< T > &dest) const override |
将矩阵的对角部分复制到dest中。 更多... | |
void | attach_dof_map (const DofMap &dof_map) |
附加要使用的 DofMap 指针。 更多... | |
virtual void | clear () |
清除对象,释放内存。 更多... | |
virtual void | init () |
初始化对象。 更多... | |
静态 Public 成员函数 | |
static std::unique_ptr < ShellMatrix< T > > | build (const Parallel::Communicator &comm, const SolverPackage solver_package=libMesh::default_solver_package()) |
使用指定的线性求解器包构建一个 ShellMatrix<T>。 更多... | |
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 属性 | |
std::vector< ShellMatrix< T > * > | matrices |
指向被相加的壳矩阵的指针的向量。 更多... | |
Protected 类型 | |
typedef std::map< std::string, std::pair< unsigned int, unsigned int > > | Counts |
Data structure to log the information. 更多... | |
Protected 成员函数 | |
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. 更多... | |
Protected 属性 | |
DofMap const * | _dof_map |
与此对象关联的 DofMap 对象。 更多... | |
静态 Protected 属性 | |
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. 更多... | |
将任意数量的壳矩阵组合成一个单独的壳矩阵,通过将它们相加在一起的类。
这个类允许将任意数量的壳矩阵组合成一个单独的壳矩阵,通过将它们相加在一起。以下是该类的详细注释:
在文件 sum_shell_matrix.h 第 41 行定义.
|
protectedinherited |
Data structure to log the information.
The log is identified by the class name.
在文件 reference_counter.h 第 119 行定义.
|
inline |
Constructor; 初始化一个空的和(sum)。
comm_in | 通信器 |
在文件 sum_shell_matrix.h 第 119 行定义.
|
inlineexplicit |
Constructor,传递一个壳矩阵的向量。
mat | 壳矩阵的指针向量 |
comm_in | 通信器 |
在文件 sum_shell_matrix.h 第 128 行定义.
|
inlinevirtual |
|
inlineinherited |
附加要使用的 DofMap
指针。
dof_map | 要附加的 DofMap 对象 |
在文件 shell_matrix.h 第 120 行定义.
参考 libMesh::ShellMatrix< T >::_dof_map.
|
staticinherited |
使用指定的线性求解器包构建一个 ShellMatrix<T>。
comm | 通信器对象 |
solver_package | 线性求解器包 |
ShellMatrix<T>
的 std::unique_ptr 在文件 shell_matrix.C 第 32 行定义.
|
inlinevirtualinherited |
|
staticinherited |
在文件 reference_counter.C 第 100 行定义.
参考 libMesh::ReferenceCounter::_enable_print_counter.
|
staticinherited |
Methods to enable/disable the reference counter output from print_info()
在文件 reference_counter.C 第 94 行定义.
参考 libMesh::ReferenceCounter::_enable_print_counter.
|
overridevirtual |
将矩阵的对角部分复制到dest中。
dest | 存储对角元素的数值向量 |
实现了 libMesh::ShellMatrix< T >.
在文件 sum_shell_matrix.C 第 77 行定义.
参考 libMesh::NumericVector< T >::zero_clone().
|
staticinherited |
Gets a string containing the reference information.
在文件 reference_counter.C 第 47 行定义.
参考 libMesh::ReferenceCounter::_counts.
参考自 libMesh::ReferenceCounter::print_info().
|
inlineprotectednoexceptinherited |
Increments the construction counter.
Should be called in the constructor of any derived class that will be reference counted.
在文件 reference_counter.h 第 183 行定义.
参考 libMesh::err.
参考自 libMesh::ReferenceCountedObject< SparseMatrix< T > >::ReferenceCountedObject().
|
inlineprotectednoexceptinherited |
Increments the destruction counter.
Should be called in the destructor of any derived class that will be reference counted.
在文件 reference_counter.h 第 207 行定义.
参考 libMesh::err.
参考自 libMesh::ReferenceCountedObject< SparseMatrix< T > >::~ReferenceCountedObject().
|
inlinevirtualinherited |
|
overridevirtual |
获取矩阵的行维度。
实现了 libMesh::ShellMatrix< T >.
在文件 sum_shell_matrix.C 第 29 行定义.
|
overridevirtual |
获取矩阵的列维度。
实现了 libMesh::ShellMatrix< T >.
在文件 sum_shell_matrix.C 第 43 行定义.
|
inlinestaticinherited |
Prints the number of outstanding (created, but not yet destroyed) objects.
在文件 reference_counter.h 第 85 行定义.
参考 libMesh::ReferenceCounter::_n_objects.
参考自 libMesh::LibMeshInit::~LibMeshInit().
|
staticinherited |
Prints the reference information, by default to libMesh::out
.
在文件 reference_counter.C 第 81 行定义.
参考 libMesh::ReferenceCounter::_enable_print_counter , 以及 libMesh::ReferenceCounter::get_info().
参考自 libMesh::LibMeshInit::~LibMeshInit().
|
overridevirtual |
将矩阵与参数arg相乘,并将结果存储在
dest中。
dest | 存储结果的数值向量 |
arg | 用于乘法的数值向量 |
实现了 libMesh::ShellMatrix< T >.
在文件 sum_shell_matrix.C 第 57 行定义.
参考 libMesh::NumericVector< T >::zero().
|
overridevirtual |
将矩阵与参数arg相乘,然后将结果添加到
dest中。
dest | 存储结果的数值向量 |
arg | 用于乘法的数值向量 |
实现了 libMesh::ShellMatrix< T >.
在文件 sum_shell_matrix.C 第 67 行定义.
|
staticprotectedinherited |
Actually holds the data.
在文件 reference_counter.h 第 124 行定义.
|
protectedinherited |
|
staticprotectedinherited |
Flag to control whether reference count information is printed when print_info is called.
在文件 reference_counter.h 第 143 行定义.
参考自 libMesh::ReferenceCounter::disable_print_counter_info(), libMesh::ReferenceCounter::enable_print_counter_info() , 以及 libMesh::ReferenceCounter::print_info().
|
staticprotectedinherited |
Mutual exclusion object to enable thread-safe reference counting.
在文件 reference_counter.h 第 137 行定义.
|
staticprotectedinherited |
The number of objects.
Print the reference count information when the number returns to 0.
在文件 reference_counter.h 第 132 行定义.
参考自 libMesh::ReferenceCounter::n_objects(), libMesh::ReferenceCounter::ReferenceCounter() , 以及 libMesh::ReferenceCounter::~ReferenceCounter().
std::vector<ShellMatrix<T> *> libMesh::SumShellMatrix< T >::matrices |
指向被相加的壳矩阵的指针的向量。
在文件 sum_shell_matrix.h 第 110 行定义.