DefaultNewtonVector: Allow outside access to the wrapped base vector.
Should be used sparingly, but is needed, e.g., to solve systems of linear equations.
This commit is contained in:
parent
d307fdddb2
commit
8769665658
@ -129,6 +129,9 @@ namespace Opm {
|
||||
const typename Vector::value_type&
|
||||
operator[](size_t i) const { return v_[i]; }
|
||||
|
||||
Vector& wrappedVector() { return v_; }
|
||||
const Vector& wrappedVector() const { return v_; }
|
||||
|
||||
private:
|
||||
Vector v_;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user