Minor bugfix: avoid accessing empty (but non-zero capacity) vector.
This commit is contained in:
1 parent
5e509537c4
commit
8b2fee4774
1 file changed
+2
-4
@@ -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_; }
|
||||
|
||||
Reference in new issue
Block a user