mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-24 16:30:02 -06:00
add the general framework for specifying auxiliary equations.
this does not disrupt the block nature of the linearized matrix (i.e. Dune::BCRSMatrix is still used), but if the number of auxiliary equations is smaller than that of the "main" discretization, the superfluous equations are padded. if the number of additional equations are larger than that of the equation, additional DOFs are added.
This commit is contained in:
parent
3a892ff896
commit
d0c14f7406
@ -351,7 +351,7 @@ public:
|
||||
// calculate the intersection index
|
||||
const auto &scvf = context.stencil(timeIdx).interiorFace(localIntersectionIdx);
|
||||
|
||||
int numElements = this->model().numDof();
|
||||
int numElements = this->model().numGridDof();
|
||||
|
||||
size_t interiorElemIdx = context.globalSpaceIndex(scvf.interiorIndex(), timeIdx);
|
||||
size_t exteriorElemIdx = context.globalSpaceIndex(scvf.exteriorIndex(), timeIdx);
|
||||
@ -501,7 +501,7 @@ private:
|
||||
auto eclipseState = this->simulator().gridManager().eclipseState();
|
||||
const auto &grid = this->simulator().gridManager().grid();
|
||||
|
||||
size_t numDof = this->model().numDof();
|
||||
size_t numDof = this->model().numGridDof();
|
||||
|
||||
intrinsicPermeability_.resize(numDof);
|
||||
porosity_.resize(numDof);
|
||||
@ -718,7 +718,7 @@ private:
|
||||
OPM_THROW(std::runtime_error,
|
||||
"The Eclipse input file requires the RV keyword to be non-present");
|
||||
|
||||
size_t numDof = this->model().numDof();
|
||||
size_t numDof = this->model().numGridDof();
|
||||
|
||||
initialFluidStates_.resize(numDof);
|
||||
|
||||
|
@ -243,7 +243,7 @@ public:
|
||||
|
||||
// initialize the material parameter objects of the individual
|
||||
// finite volumes
|
||||
int n = this->model().numDof();
|
||||
int n = this->model().numGridDof();
|
||||
materialParams_.resize(n);
|
||||
for (int i = 0; i < n; ++i) {
|
||||
materialParams_[i].setMicParams(&micParams_);
|
||||
|
Loading…
Reference in New Issue
Block a user