Commit e1218e2c authored by Martin Schneider's avatar Martin Schneider Committed by Timo Koch
Browse files

[disc][wmpfa] Add draft for gridvolumevariables

parent 277f88e5
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
* See the file COPYING for full copying permissions. *
* *
* This program 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 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <>. *
* \file
* \ingroup CCWMpfaDiscretization
* \brief The grid volume variables class for cell centered tpfa models
#include <dumux/discretization/cellcentered/wmpfa/elementvolumevariables.hh>
#include <dumux/discretization/cellcentered/gridvolumevariables.hh>
namespace Dumux {
template<class P, class VV>
struct CCWMpfaDefaultGridVolumeVariablesTraits
using Problem = P;
using VolumeVariables = VV;
template<class GridVolumeVariables, bool cachingEnabled>
using LocalView = CCWMpfaElementVolumeVariables<GridVolumeVariables, cachingEnabled>;
* \ingroup CCWMpfaDiscretization
* \brief Base class for the grid volume variables
* \note This class has a cached version and a non-cached version
* \tparam Problem the type of problem we are solving
* \tparam VolumeVariables the type of volume variables we are using for the model
* \tparam Traits the traits class injecting the problem, volVar and elemVolVars type
* \tparam cachingEnabled if the cache is enabled
template<class Problem,
class VolumeVariables,
bool cachingEnabled = false,
class Traits = CCWMpfaDefaultGridVolumeVariablesTraits<Problem, VolumeVariables> >
class CCWMpfaGridVolumeVariables : public CCGridVolumeVariables<Traits, cachingEnabled>
using ParentType = CCGridVolumeVariables<Traits, cachingEnabled>;
using ParentType::ParentType;
} // end namespace Dumux
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment