Merge pull request #747 from blattms/copyable-properties
Makes BlackoilPropertiesFromDeck copyable.
This commit is contained in:
commit
e7ac697e17
@ -259,7 +259,7 @@ namespace Opm
|
||||
RockFromDeck rock_;
|
||||
std::vector<int> cellPvtRegionIdx_;
|
||||
BlackoilPvtProperties pvt_;
|
||||
std::unique_ptr<SaturationPropsInterface> satprops_;
|
||||
std::shared_ptr<SaturationPropsInterface> satprops_;
|
||||
mutable std::vector<double> B_;
|
||||
mutable std::vector<double> dB_;
|
||||
mutable std::vector<double> R_;
|
||||
|
@ -56,11 +56,10 @@ namespace Opm
|
||||
const std::vector<double>& rv () const {return rv_ ; }
|
||||
|
||||
private:
|
||||
std::vector<double> surfvol_;
|
||||
std::vector<double> gor_ ;
|
||||
std::vector<double> rv_ ;
|
||||
std::vector<double> surfvol_; // no entries = no cells * no phases
|
||||
std::vector<double> gor_ ; // no entries = no cells
|
||||
std::vector<double> rv_ ; // no entries = no cells
|
||||
};
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@ namespace Opm
|
||||
|
||||
virtual void init(const UnstructuredGrid& g, int num_phases);
|
||||
|
||||
virtual void init(int number_of_cells, int number_of_phases, int num_phases);
|
||||
virtual void init(int number_of_cells, int number_of_faces, int num_phases);
|
||||
|
||||
enum ExtremalSat { MinSat, MaxSat };
|
||||
|
||||
@ -57,10 +57,15 @@ namespace Opm
|
||||
double epsilon = 1e-8) const;
|
||||
private:
|
||||
int num_phases_;
|
||||
/// \brief pressure per cell.
|
||||
std::vector<double> press_ ;
|
||||
/// \brief temperature per cell.
|
||||
std::vector<double> temp_ ;
|
||||
/// \brief pressure per face.
|
||||
std::vector<double> fpress_;
|
||||
/// \brief The fluxes at the faces.
|
||||
std::vector<double> flux_ ;
|
||||
/// \brief The saturation of each phase per cell.
|
||||
std::vector<double> sat_ ;
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user