Commit 8e323a3f authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Removed bug for assembling matrices in vectorial problems.

parent 9c259dfb
......@@ -678,7 +678,7 @@ namespace AMDiS {
componentSpaces[j]->getAdmin()->getUsedSize());
// Reuse old sparsity information (if available) or default
dof_matrix->startInsertion(nnz_per_row);
// dof_matrix->startInsertion(nnz_per_row);
}
}
}
......@@ -1080,12 +1080,28 @@ namespace AMDiS {
#ifdef _OPENMP
#pragma omp critical
#endif
{
matrix->getBaseMatrix() += tmpMatrix->getBaseMatrix();
}
#ifdef _OPENMP
#pragma omp barrier
#endif
#ifdef _OPENMP
#pragma omp master
#endif
{
if (matrix) {
matrix->startInsertion();
}
}
if (matrix) {
// Remove rows corresponding to DOFs on a Dirichlet boundary.
#ifdef _OPENMP
#pragma omp critical
#endif
matrix->removeRowsWithDBC(tmpMatrix->getApplyDBCs());
}
DELETE tmpMatrix;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment