simplify test problems for the 2p and 2p2c models just like the coupled tutorial

This commit is contained in:
Andreas Lauser 2009-06-10 12:36:33 +00:00 committed by Andreas Lauser
parent a2f89656f9
commit 30676ede27
2 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,7 @@ tutorial_decoupled_SOURCES = tutorial_decoupled.cc
tutorial_coupleddir = $(EXTRA_DIST=CMakeLists.txt
includedir)/dumux/tutorial
tutorial_coupled_HEADERS = tutorial_soilproperties_coupled.hh \
tutorial_coupled_HEADERS = tutorialsoil_coupled.hh \
tutorialproblem_coupled.hh
tutorial_coupled_SOURCES = tutorial_coupled.cc

View File

@ -190,7 +190,8 @@ public:
int boundaryFaceIdx) const
{
const GlobalPosition &pos = element.geometry().corner(scvIdx);
if (pos[0]> right_ - eps_) {
Scalar right = this->bboxMax()[0];
if (pos[0] > right - eps_) {
// outflow of 0.3 g/(m * s) oil on the right boundary of the
// domain
values[Indices::phase2Mass(Indices::wPhase)] = 0;
@ -243,8 +244,6 @@ public:
private:
static const Scalar eps_ = 3e-6;
static const Scalar right_ = 5.0;
};
} //end namespace