Add keywords SATNUM and PVTNUM to Cell props struct

This commit is contained in:
Daniel 2021-11-09 10:07:00 +01:00
parent b1b7ed5ecb
commit c3a55cb03b
2 changed files with 7 additions and 3 deletions

View File

@ -37,13 +37,16 @@ public:
double permx;
double permy;
double permz;
//int satnum;
int satnum;
int pvtnum;
bool operator==(const Props& other) const{
return this->active_index == other.active_index &&
this->permx == other.permx &&
this->permy == other.permy &&
this->permz == other.permz;
this->permz == other.permz &&
this->satnum == other.satnum &&
this->pvtnum == other.pvtnum;
}
};

View File

@ -56,7 +56,8 @@ const Opm::CompletedCells::Cell& Opm::ScheduleGrid::get_cell(std::size_t i, std:
props.permx = try_get_value(*this->fp, "PERMX", props.active_index);
props.permy = try_get_value(*this->fp, "PERMY", props.active_index);
props.permz = try_get_value(*this->fp, "PERMZ", props.active_index);
//props.satnum = this->fp->int("SATNUM");
props.satnum = this->fp->get_int("SATNUM").at(props.active_index);
props.pvtnum = this->fp->get_int("PVTNUM").at(props.active_index);
cell.props = props;
}
}