Skip to content

Commit

Permalink
Added comment about hasPorvBefore and PORV complications.
Browse files Browse the repository at this point in the history
  • Loading branch information
blattms committed Apr 30, 2024
1 parent b4ae951 commit c579404
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion opm/input/eclipse/EclipseState/Grid/FieldProps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,18 @@ bool FieldProps::has<int>(const std::string& keyword) const {

void FieldProps::apply_multipliers()
{
bool hasPorvBefore = (this->double_data.find(ParserKeywords::PORV::keywordName) == this->double_data.end());
// We need to manually search for PORV in the map here instead of using
// the get method. The latter one will compute PORV from the cell volume
// using MULTPV, NTG, and PORO. Our intend here in the EDIT section is
// is to multiply exsisting MULTPV with new new ones and consistently
// change PORV as well. If PORV has been created before this is as easy
// as multiplying it and MULTPV with the additional MULTPV. In the other
// case we do not create PORV at all but just change MULTPV as PORV will
// be correctly computed from it.
// Hence we need to know whether PORV is already there
const bool hasPorvBefore =
(this->double_data.find(ParserKeywords::PORV::keywordName) ==
this->double_data.end());
static const auto prefix = getMultiplierPrefix();

for(const auto& [mult_keyword, kw_info]: multiplier_kw_infos_)
Expand Down

0 comments on commit c579404

Please sign in to comment.