Minor bugfix: avoid accessing empty (but non-zero capacity) vector.
This commit is contained in:
parent
5e509537c4
commit
8b2fee4774
@ -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_; }
|
||||
|
Loading…
Reference in New Issue
Block a user