Add keywords SATNUM and PVTNUM to Cell props struct
This commit is contained in:
parent
b1b7ed5ecb
commit
c3a55cb03b
@ -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;
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user