opm-simulators/tests/lens_immiscible_vcfv.cc
Andreas Lauser f0e5a25126 make the dune-localfunctions dependency optional
as a side effect, two-point gradients are now used by default for the
vertex-centered finite volume discretization. (because P1-FE gradients
require the FE shape functions and those are provided by
dune-localfunctions.)

as a consequence, this triggered an update of quite a few reference
solutions: the differences are measurable, but as far as I can see,
the results are compareable. also, this commit regresses the
performance of the test for the reservoir problem with the vertex
centered finite volume scheme a bit. While I would not bet a house on
the reason, I'm pretty sure that this is caused by the switch from P1
FE gradients to two-point ones.

Note that even though I'm the author of this patch, it shamelessly
rips off substantial parts of the @dr-robertk's patch:
https://github.com/OPM/ewoms/pull/69
2016-09-22 15:23:14 +02:00

51 lines
1.7 KiB
C++

// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
Consult the COPYING file in the top-level source directory of this
module for the precise wording of the license and the list of
copyright holders.
*/
/*!
* \file
*
* \brief Two-phase test for the immiscible model which uses the
* vertex-centered finite volume discretization
*/
#include "config.h"
#include <ewoms/common/start.hh>
#include <ewoms/models/immiscible/immisciblemodel.hh>
#include "problems/lensproblem.hh"
namespace Ewoms {
namespace Properties {
NEW_TYPE_TAG(LensProblemVcfv, INHERITS_FROM(ImmiscibleTwoPhaseModel, LensBaseProblem));
#if HAVE_DUNE_LOCALFUNCTIONS
// for this test we use P1 finite element gradients (if they are available)
SET_BOOL_PROP(LensProblemVcfv, UseP1FiniteElementGradients, true);
#endif // HAVE_DUNE_LOCALFUNCTIONS
}} // namespace Properties, Ewoms
int main(int argc, char **argv)
{
typedef TTAG(LensProblemVcfv) ProblemTypeTag;
return Ewoms::start<ProblemTypeTag>(argc, argv);
}