// our local matrices
const unsigned int jcell = this->block_info->local().local_to_global(block_row, j);
const unsigned int kcell = this->block_info->local().local_to_global(block_col, k);
-
- // The global dof
- // indices to assemble
- // in. Since we may
- // have face matrices
- // coupling two
- // different cells, we
- // provide two sets of
- // dof indices.
- const unsigned int jglobal = this->block_info->global().global_to_local(dof1[jcell]).second;
- const unsigned int kglobal = this->block_info->global().global_to_local(dof2[kcell]).second;
- global.add(jglobal, kglobal, local(j,k));
+ global.add(dof1[jcell], dof2[kcell], local(j,k));
}
}
const FullMatrix<number>& values,
const bool elide_zero_values)
{
+ Assert(block_indices != 0, ExcNotInitialized());
+
AssertDimension (row_indices.size(), values.m());
AssertDimension (col_indices.size(), values.n());
const FullMatrix<number> &values,
const bool elide_zero_values)
{
+ Assert(block_indices != 0, ExcNotInitialized());
+
AssertDimension (indices.size(), values.m());
Assert (values.n() == values.m(), ExcNotQuadratic());
const std::vector<unsigned int> &col_indices,
const std::vector<number> &values,
const bool elide_zero_values)
-{
+{
+ Assert(block_indices != 0, ExcNotInitialized());
AssertDimension (col_indices.size(), values.size());
add (row, col_indices.size(), &col_indices[0], &values[0],
elide_zero_values);
const bool,
const bool)
{
+ Assert(block_indices != 0, ExcNotInitialized());
const std::pair<unsigned int, unsigned int> bi
= block_indices->global_to_local(b_row);