Skip to content
Snippets Groups Projects
Commit f1180a1b authored by graeser's avatar graeser
Browse files

Merge branch 'feature/fix-assemblebulk' into 'master'

[bugfix] Zero-initialize matrix before assembling entries

See merge request !100
parents be3fc665 7fd2ef5b
No related branches found
No related tags found
1 merge request!100[bugfix] Zero-initialize matrix before assembling entries
Pipeline #40719 passed
......@@ -268,6 +268,7 @@ public:
auto patternBuilder = matrixBackend.patternBuilder();
assembleBulkPattern(patternBuilder);
patternBuilder.setupMatrix();
matrixBackend.assign(0);
assembleBulkEntries(matrixBackend, std::forward<LocalAssembler>(localAssembler));
}
......
......@@ -311,6 +311,31 @@ public:
return i(*matrix_);
}
/**
* \brief Const access to wrapped matrix
*/
const Matrix& matrix() const
{
return *matrix_;
}
/**
* \brief Mutable access to wrapped matrix
*/
Matrix& matrix()
{
return *matrix_;
}
/**
* \brief Assign value to wrapped matrix
*/
template<class Value>
void assign(const Value& value)
{
matrix() = value;
}
protected:
Matrix* matrix_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment