+inline
+unsigned int
+ConstraintMatrix::n_constraints () const
+{
+ return lines.size();
+}
+
+
+
inline
bool
ConstraintMatrix::is_constrained (const unsigned int index) const
const double value,
VectorType &global_vector) const
{
- Assert (sorted == true, ExcMatrixNotClosed());
+ Assert (lines.empty() || sorted == true, ExcMatrixNotClosed());
if (is_constrained(index) == false)
global_vector(index) += value;
ForwardIteratorInd local_indices_begin,
VectorType &global_vector) const
{
- Assert (sorted == true, ExcMatrixNotClosed());
+ Assert (lines.empty() || sorted == true, ExcMatrixNotClosed());
for ( ; local_vector_begin != local_vector_end;
++local_vector_begin, ++local_indices_begin)
{
ForwardIteratorVec local_vector_begin,
ForwardIteratorVec local_vector_end) const
{
- Assert (sorted == true, ExcMatrixNotClosed());
+ Assert (lines.empty() || sorted == true, ExcMatrixNotClosed());
for ( ; local_vector_begin != local_vector_end;
++local_vector_begin, ++local_indices_begin)
{
AssertDimension (local_matrix.n(), local_dof_indices.size());
const unsigned int n_local_dofs = local_vector.size();
- if (lines.size() == 0)
+ if (lines.empty())
global_vector.add(local_dof_indices, local_vector);
else
for (unsigned int i=0; i<n_local_dofs; ++i)
AssertDimension (local_matrix.m(), local_vector.size());
AssertDimension (global_matrix.m(), global_vector.size());
}
- Assert (sorted == true, ExcMatrixNotClosed());
+ Assert (lines.empty() || sorted == true, ExcMatrixNotClosed());
const unsigned int n_local_dofs = local_dof_indices.size();
internals::GlobalRowsFromLocal global_rows (n_local_dofs);