Skip to content
Snippets Groups Projects
Commit 3c60e86f authored by Oliver Sander's avatar Oliver Sander
Browse files

revert accidental commit 1320

[[Imported from SVN: r1324]]
parent 4608e16b
Branches releases/2.0
Tags v2.0
No related merge requests found
......@@ -51,18 +51,6 @@ namespace Dune {
explicit BTDMatrix(int size)
: BCRSMatrix<B,A>(size, size, BCRSMatrix<B,A>::random)
{
// special handling for 1x1 matrices
if (size==1) {
this->BCRSMatrix<B,A>::setrowsize(0, 1);
this->BCRSMatrix<B,A>::endrowsizes();
this->BCRSMatrix<B,A>::addindex(0, 0);
this->BCRSMatrix<B,A>::endindices();
return;
}
// Set number of entries for each row
this->BCRSMatrix<B,A>::setrowsize(0, 2);
......@@ -111,12 +99,6 @@ namespace Dune {
template <class V>
void solve (V& x, const V& rhs) const {
// special handling for 1x1 matrices. The generic algorithm doesn't work for them
if (this->N()==1) {
(*this)[0][0].solve(x[0],rhs[0]);
return;
}
// Make copies of the rhs and the right matrix band
V d = rhs;
V c(this->N()-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment