Added non const cellData() access.

This commit is contained in:
Joakim Hove
2016-03-02 23:20:16 +01:00
parent 812902ff9d
commit 4958bc55f2
2 changed files with 5 additions and 0 deletions
@@ -184,6 +184,10 @@ namespace Opm {
return m_cell_data;
}
std::unordered_map<std::string, std::vector<double>>& SimulationDataContainer::cellData() {
return m_cell_data;
}
/* This is very deprecated. */
void SimulationDataContainer::addDefaultFields() {
@@ -95,6 +95,7 @@ namespace Opm {
const std::vector<double>& faceflux () const;
const std::unordered_map<std::string, std::vector<double>>& cellData() const;
std::unordered_map<std::string, std::vector<double>>& cellData();
private:
void addDefaultFields();