Add polymer to blackoilstate

This commit is contained in:
Tor Harald Sandve 2017-06-02 12:00:26 +02:00
parent a8a46ee5ae
commit fc380041f2
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ const std::string BlackoilState::GASOILRATIO = "GASOILRATIO";
const std::string BlackoilState::RV = "RV";
const std::string BlackoilState::SURFACEVOL = "SURFACEVOL";
const std::string BlackoilState::SSOL = "SSOL";
const std::string BlackoilState::POLYMER = "POLYMER";
BlackoilState::BlackoilState( size_t num_cells , size_t num_faces , size_t num_phases)
@ -21,6 +22,7 @@ BlackoilState::BlackoilState( size_t num_cells , size_t num_faces , size_t num_p
registerCellData( RV, 1 );
registerCellData( SURFACEVOL, num_phases );
registerCellData( SSOL , 1 );
registerCellData( POLYMER , 1 );
setBlackoilStateReferencePointers();
}

View File

@ -44,6 +44,7 @@ namespace Opm
static const std::string RV;
static const std::string SURFACEVOL;
static const std::string SSOL;
static const std::string POLYMER;
/// Main constructor setting the sizes for the contained data
/// types.