SimulatorState: store all data in a vector to allow for flexibility when used with
derived states. BlackoilState: adjusted to SimulatorState changes.
This commit is contained in:
1 parent
6265b0a94b
commit
3bc520eeb7
4 files changed
+121
-43
No files matched your search
@@ -4,11 +4,16 @@
|
||||
using namespace Opm;
|
||||
|
||||
void
|
||||
BlackoilState::init(int number_of_cells, int number_of_phases, int num_phases) {
|
||||
SimulatorState::init(number_of_cells, number_of_phases, num_phases);
|
||||
gor_.resize(number_of_cells, 0.) ;
|
||||
rv_.resize(number_of_cells,0.);
|
||||
BlackoilState::init(int number_of_cells, int number_of_phases, int num_phases)
|
||||
{
|
||||
SimulatorState::init(number_of_cells, number_of_phases, num_phases);
|
||||
|
||||
// register cell data in base class
|
||||
gorId_ = SimulatorState::registerCellData( "GASOILRATIO", 1 );
|
||||
rvId_ = SimulatorState::registerCellData( "RV", 1 );
|
||||
|
||||
// surfvol_ intentionally empty, left to initBlackoilSurfvol
|
||||
surfaceVolId_ = SimulatorState::registerCellData( "SURFACEVOL", 0 );
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user