Merge pull request #80 from joakim-hove/add-const-overload
Added const overloads
This commit is contained in:
@@ -206,4 +206,24 @@ namespace Opm {
|
||||
return getFaceData("FACEFLUX");
|
||||
}
|
||||
|
||||
const std::vector<double>& SimulationDataContainer::pressure( ) const {
|
||||
return getCellData("PRESSURE");
|
||||
}
|
||||
|
||||
const std::vector<double>& SimulationDataContainer::temperature() const {
|
||||
return getCellData("TEMPERATURE");
|
||||
}
|
||||
|
||||
const std::vector<double>& SimulationDataContainer::saturation() const {
|
||||
return getCellData("SATURATION");
|
||||
}
|
||||
|
||||
const std::vector<double>& SimulationDataContainer::facepressure() const {
|
||||
return getFaceData("FACEPRESSURE");
|
||||
}
|
||||
|
||||
const std::vector<double>& SimulationDataContainer::faceflux() const {
|
||||
return getFaceData("FACEFLUX");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -79,6 +79,13 @@ namespace Opm {
|
||||
std::vector<double>& facepressure();
|
||||
std::vector<double>& faceflux ();
|
||||
|
||||
const std::vector<double>& pressure () const;
|
||||
const std::vector<double>& temperature () const;
|
||||
const std::vector<double>& saturation () const;
|
||||
|
||||
const std::vector<double>& facepressure() const;
|
||||
const std::vector<double>& faceflux () const;
|
||||
|
||||
private:
|
||||
void addDefaultFields();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user