mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
@@ -409,6 +409,13 @@ add_test_compareECLFiles(CASENAME spe1_foam
|
||||
REL_TOL ${rel_tol}
|
||||
DIR spe1_foam)
|
||||
|
||||
add_test_compareECLFiles(CASENAME bc_lab
|
||||
FILENAME BC_LAB
|
||||
SIMULATOR flow
|
||||
ABS_TOL ${abs_tol}
|
||||
REL_TOL ${rel_tol}
|
||||
DIR bc_lab)
|
||||
|
||||
# Restart tests
|
||||
opm_set_test_driver(${PROJECT_SOURCE_DIR}/tests/run-restart-regressionTest.sh "")
|
||||
|
||||
|
||||
@@ -429,18 +429,19 @@ protected:
|
||||
dnIdx_[phaseIdx] = -1;
|
||||
}
|
||||
|
||||
// this is slightly hacky because in the automatic differentiation case, it
|
||||
// only works for the element centered finite volume method. for ebos this
|
||||
// does not matter, though.
|
||||
unsigned upstreamIdx = upstreamIndex_(phaseIdx);
|
||||
const auto& up = elemCtx.intensiveQuantities(upstreamIdx, timeIdx);
|
||||
|
||||
Evaluation transModified = trans;
|
||||
|
||||
// deal with water induced rock compaction
|
||||
transModified *= problem.template rockCompTransMultiplier<double>(up, stencil.globalSpaceIndex(upstreamIdx));
|
||||
|
||||
short upstreamIdx = upstreamIndex_(phaseIdx);
|
||||
if (upstreamIdx == interiorDofIdx_) {
|
||||
|
||||
// this is slightly hacky because in the automatic differentiation case, it
|
||||
// only works for the element centered finite volume method. for ebos this
|
||||
// does not matter, though.
|
||||
const auto& up = elemCtx.intensiveQuantities(upstreamIdx, timeIdx);
|
||||
|
||||
// deal with water induced rock compaction
|
||||
transModified *= problem.template rockCompTransMultiplier<double>(up, stencil.globalSpaceIndex(upstreamIdx));
|
||||
|
||||
volumeFlux_[phaseIdx] =
|
||||
pressureDifference_[phaseIdx]*up.mobility(phaseIdx)*(-transModified/faceArea);
|
||||
|
||||
@@ -494,8 +495,8 @@ private:
|
||||
// the local indices of the interior and exterior degrees of freedom
|
||||
unsigned short interiorDofIdx_;
|
||||
unsigned short exteriorDofIdx_;
|
||||
unsigned short upIdx_[numPhases];
|
||||
unsigned short dnIdx_[numPhases];
|
||||
short upIdx_[numPhases];
|
||||
short dnIdx_[numPhases];
|
||||
};
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
@@ -90,6 +90,7 @@ tests[nnc]="flow editnnc NNC_AND_EDITNNC nnc"
|
||||
tests[udq]="flow udq_actionx UDQ_WCONPROD udq_wconprod"
|
||||
tests[spe1_foam]="flow spe1_foam SPE1FOAM"
|
||||
tests[wsegsicd]="flow wsegsicd TEST_WSEGSICD"
|
||||
tests[bc_lab]="flow bc_lab BC_LAB"
|
||||
|
||||
changed_tests=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user