mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
mostly eliminate Eigen in the FIP and VFP code
this code mostly used the Eigen vectors as arrays anyway, so let's use `std::vector`. also, this patch only "mostly eliminates" Eigen from from these parts of the code because the source files of the VFP code still use AutoDiffBlock; Unfortunately this cannot easily be changed because `flow_legacy` depends on these methods. (`flow_ebos` does not use the incriminating methods.)
This commit is contained in:
@@ -536,7 +536,7 @@ namespace {
|
||||
|
||||
|
||||
|
||||
std::vector<V>
|
||||
std::vector<std::vector<double> >
|
||||
FullyImplicitCompressiblePolymerSolver::computeFluidInPlace(const PolymerBlackoilState& x,
|
||||
const std::vector<int>& fipnum)
|
||||
{
|
||||
@@ -568,7 +568,11 @@ namespace {
|
||||
|
||||
|
||||
const int dims = *std::max_element(fipnum.begin(), fipnum.end());
|
||||
std::vector<V> values(dims, V::Zero(7));
|
||||
std::vector<std::vector<double> > values(dims);
|
||||
for (int i=0; i < dims; ++i) {
|
||||
values[i].resize(7, 0.0);
|
||||
}
|
||||
|
||||
V hcpv = V::Zero(nc);
|
||||
V pres = V::Zero(nc);
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace Opm {
|
||||
/// \param[in] WellState
|
||||
/// \param[in] FIPNUM for active cells not global cells.
|
||||
/// \return fluid in place, number of fip regions, each region contains 5 values which are liquid, vapour, water, free gas and dissolved gas.
|
||||
std::vector<V>
|
||||
std::vector<std::vector<double> >
|
||||
computeFluidInPlace(const PolymerBlackoilState& x,
|
||||
const std::vector<int>& fipnum);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user