This accessor class allows simple setting of CouplingMatrix values.
More...
#include <coupling_matrix.h>
This accessor class allows simple setting of CouplingMatrix values.
Definition at line 191 of file coupling_matrix.h.
◆ CouplingAccessor()
libMesh::CouplingAccessor::CouplingAccessor |
( |
std::size_t |
loc_in, |
|
|
CouplingMatrix & |
mat_in |
|
) |
| |
|
inline |
Definition at line 194 of file coupling_matrix.h.
ConstCouplingAccessor(std::size_t loc_in, const CouplingMatrix &mat_in)
◆ operator bool()
libMesh::ConstCouplingAccessor::operator bool |
( |
| ) |
const |
|
inlineinherited |
◆ operator=() [1/2]
Definition at line 199 of file coupling_matrix.h.
203 const bool as_bool = new_value;
204 libmesh_assert_equal_to(new_value, as_bool);
◆ operator=() [2/2]
Definition at line 210 of file coupling_matrix.h.
References libMesh::ConstCouplingAccessor::_location, _my_mat, libMesh::CouplingMatrix::_ranges, and libMesh::MeshTools::Subdivision::next.
212 const std::size_t max_size = std::numeric_limits<std::size_t>::max();
216 CouplingMatrix::rc_type::iterator lb =
228 if (new_value ==
true)
234 const std::size_t firstloc = lb->first;
235 const std::size_t lastloc = lb->second;
236 libmesh_assert_less_equal(firstloc, lastloc);
237 libmesh_assert_less_equal(firstloc,
_location);
241 CouplingMatrix::rc_type::const_iterator
next = lb;
246 libmesh_assert_greater(
next->first, lastloc+1);
253 if (new_value ==
false)
263 libmesh_assert_less (lb->first, lastloc);
269 libmesh_assert_less (firstloc, lb->second);
275 libmesh_assert_less_equal(
_location+1, lastloc);
279 libmesh_assert_less_equal(firstloc,
_location-1);
289 CouplingMatrix::rc_type::iterator
next = lb;
291 const std::size_t nextloc =
293 std::numeric_limits<std::size_t>::max() :
297 libmesh_assert_greater(nextloc, lastloc+1);
305 next->first = firstloc;
◆ _location
std::size_t libMesh::ConstCouplingAccessor::_location |
|
protectedinherited |
◆ _mat
◆ _my_mat
The documentation for this class was generated from the following file: