Minor bugfix: avoid accessing empty (but non-zero capacity) vector.

This commit is contained in:
Atgeirr Flø Rasmussen 2011-12-13 11:18:38 +01:00
parent 5e509537c4
commit 8b2fee4774

View File

@ -102,12 +102,12 @@ namespace Opm {
sa_.insert(sa_.end(), nconn * ndof, double(0.0));
construct();
setCSRSize();
finalizeStructure();
}
void
finalizeStructure() {
construct();
setCSRSize();
}
@ -121,8 +121,6 @@ namespace Opm {
ia_.push_back(0);
ndof_ = ndof;
construct();
}
struct CSRMatrix& matrix() { return mat_; }