#include <coupling_matrix.h>
This accessor class allows simple setting of CouplingMatrix values.
Definition at line 190 of file coupling_matrix.h.
libMesh::CouplingAccessor::CouplingAccessor |
( |
std::size_t |
loc_in, |
|
|
CouplingMatrix & |
mat_in |
|
) |
| |
|
inline |
Definition at line 193 of file coupling_matrix.h.
ConstCouplingAccessor(std::size_t loc_in, const CouplingMatrix &mat_in)
libMesh::ConstCouplingAccessor::operator bool |
( |
| ) |
const |
|
inlineinherited |
Definition at line 144 of file coupling_matrix.h.
References std::max(), and libMesh::MeshTools::Subdivision::next.
149 CouplingMatrix::rc_type::const_iterator lb = std::upper_bound
161 const std::size_t lastloc = lb->second;
164 const std::size_t firstloc = lb->first;
165 libmesh_assert_less_equal(firstloc, lastloc);
166 libmesh_assert_less_equal(firstloc,
_location);
168 CouplingMatrix::rc_type::const_iterator
next = lb;
173 libmesh_assert_greater(next->first, lastloc+1);
long double max(long double a, double b)
const CouplingMatrix & _mat
Definition at line 198 of file coupling_matrix.h.
202 const bool as_bool = new_value;
203 libmesh_assert_equal_to(new_value, as_bool);
Definition at line 209 of file coupling_matrix.h.
References std::max(), and libMesh::MeshTools::Subdivision::next.
215 CouplingMatrix::rc_type::iterator lb =
227 if (new_value ==
true)
233 const std::size_t firstloc = lb->first;
234 const std::size_t lastloc = lb->second;
235 libmesh_assert_less_equal(firstloc, lastloc);
236 libmesh_assert_less_equal(firstloc,
_location);
239 CouplingMatrix::rc_type::const_iterator
next = lb;
244 libmesh_assert_greater(next->first, lastloc+1);
250 if (new_value ==
false)
260 libmesh_assert_less (lb->first, lastloc);
266 libmesh_assert_less (firstloc, lb->second);
272 libmesh_assert_less_equal(
_location+1, lastloc);
276 libmesh_assert_less_equal(firstloc,
_location-1);
279 (lb, std::make_pair(firstloc,
_location-1));
287 CouplingMatrix::rc_type::iterator next = lb;
289 const std::size_t nextloc =
295 libmesh_assert_greater(nextloc, lastloc+1);
303 next->first = firstloc;
long double max(long double a, double b)
std::size_t libMesh::ConstCouplingAccessor::_location |
|
protectedinherited |
The documentation for this class was generated from the following file: