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:
Bård Skaflestad 2011-10-02 19:11:05 +02:00
parent d307fdddb2
commit 8769665658

View File

@ -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_;
};