Add SSOL to blackoilState

Stores the solvent saturation in the simulator container.
This commit is contained in:
Tor Harald Sandve 2017-05-10 11:14:53 +02:00
parent daecfa7e55
commit dbe7930ef7
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ using namespace Opm;
const std::string BlackoilState::GASOILRATIO = "GASOILRATIO";
const std::string BlackoilState::RV = "RV";
const std::string BlackoilState::SURFACEVOL = "SURFACEVOL";
const std::string BlackoilState::SSOL = "SSOL";
BlackoilState::BlackoilState( size_t num_cells , size_t num_faces , size_t num_phases)
@ -19,6 +20,7 @@ BlackoilState::BlackoilState( size_t num_cells , size_t num_faces , size_t num_p
registerCellData( GASOILRATIO , 1 );
registerCellData( RV, 1 );
registerCellData( SURFACEVOL, num_phases );
registerCellData( SSOL , 1 );
setBlackoilStateReferencePointers();
}

View File

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