Get actnum vector as it exists in FieldProps without modification.
This commit is contained in:
parent
eca8583358
commit
bc966fa32a
@ -389,6 +389,7 @@ public:
|
|||||||
const std::string& default_region() const;
|
const std::string& default_region() const;
|
||||||
|
|
||||||
std::vector<int> actnum();
|
std::vector<int> actnum();
|
||||||
|
const std::vector<int>& actnumRaw() const;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
static bool supported(const std::string& keyword);
|
static bool supported(const std::string& keyword);
|
||||||
|
@ -1174,7 +1174,7 @@ EclipseGrid::EclipseGrid(const Deck& deck, const int * actnum)
|
|||||||
if (deck.hasKeyword<ParserKeywords::ACTNUM>()) {
|
if (deck.hasKeyword<ParserKeywords::ACTNUM>()) {
|
||||||
EclipseGrid topologyOnlyGrid(static_cast<GridDims&>(*this));
|
EclipseGrid topologyOnlyGrid(static_cast<GridDims&>(*this));
|
||||||
FieldProps fp(deck, topologyOnlyGrid);
|
FieldProps fp(deck, topologyOnlyGrid);
|
||||||
actnumVector = fp.actnum();
|
actnumVector = fp.actnumRaw();
|
||||||
|
|
||||||
if (actnumVector.size() != this->getCartesianSize())
|
if (actnumVector.size() != this->getCartesianSize())
|
||||||
throw std::invalid_argument("ACTNUM vector has wrong size");
|
throw std::invalid_argument("ACTNUM vector has wrong size");
|
||||||
|
@ -1176,6 +1176,11 @@ std::vector<int> FieldProps::actnum() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const std::vector<int>& FieldProps::actnumRaw() const {
|
||||||
|
return m_actnum;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void FieldProps::scanGRIDSection(const GRIDSection& grid_section) {
|
void FieldProps::scanGRIDSection(const GRIDSection& grid_section) {
|
||||||
Box box(*this->grid_ptr);
|
Box box(*this->grid_ptr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user