removing updateKrnum_

which does not have effects, which was suggested by Håkon Hægland.

And also removing the following member variables from
FlowGenericProblem because they are not in use anymore.

    krnumx_, krnumy_, krnumz_;
    imbnumx_, imbnumy_, imbnumz_;
This commit is contained in:
Kai Bao 2024-05-08 09:41:46 +02:00
parent 79236c4927
commit b225ec240f
3 changed files with 0 additions and 19 deletions

View File

@ -334,7 +334,6 @@ protected:
void updateSatnum_();
void updateMiscnum_();
void updatePlmixnum_();
void updateKrnum_();
const EclipseState& eclState_;
const Schedule& schedule_;
@ -347,12 +346,6 @@ protected:
std::vector<unsigned short> satnum_;
std::vector<unsigned short> miscnum_;
std::vector<unsigned short> plmixnum_;
std::vector<unsigned short> krnumx_;
std::vector<unsigned short> krnumy_;
std::vector<unsigned short> krnumz_;
std::vector<unsigned short> imbnumx_;
std::vector<unsigned short> imbnumy_;
std::vector<unsigned short> imbnumz_;
std::vector<RockParams> rockParams_;
std::vector<unsigned short> rockTableIdx_;

View File

@ -408,16 +408,6 @@ updatePlmixnum_()
updateNum("PLMIXNUM", plmixnum_, num_regions);
}
template<class GridView, class FluidSystem>
void FlowGenericProblem<GridView,FluidSystem>::
updateKrnum_()
{
const auto num_regions = eclState_.getTableManager().getTabdims().getNumSatTables();
updateNum("KRNUMX", krnumx_, num_regions);
updateNum("KRNUMY", krnumy_, num_regions);
updateNum("KRNUMZ", krnumz_, num_regions);
}
template<class GridView, class FluidSystem>
bool FlowGenericProblem<GridView,FluidSystem>::
vapparsActive(int episodeIdx) const

View File

@ -2041,8 +2041,6 @@ protected:
// the PLMIX region numbers (polymer model)
this->updatePlmixnum_();
// directional relative permeabilities
this->updateKrnum_();
OPM_END_PARALLEL_TRY_CATCH("Invalid region numbers: ", vanguard.gridView().comm());
////////////////////////////////
// porosity