Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
8be74d63
Commit
8be74d63
authored
7 years ago
by
Kilian Weishaupt
Committed by
Dennis Gläser
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[staggered] Add traits class for gridvolume/gridfacevariables
parent
91ea9d10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!878
Free grid/element/face volvars/fluxvarcache from typetag
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/staggered/gridvariablestraits.hh
+85
-0
85 additions, 0 deletions
dumux/discretization/staggered/gridvariablestraits.hh
with
85 additions
and
0 deletions
dumux/discretization/staggered/gridvariablestraits.hh
0 → 100644
+
85
−
0
View file @
8be74d63
// -*- 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 2 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 *
* 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 this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
* \ingroup StaggeredDiscretization
* \brief Traits class to be used in conjunction with the StaggeredGridFaceVariables.
*/
#ifndef DUMUX_DISCRETIZATION_STAGGERED_GRID_VARIABLES_TRAITS_HH
#define DUMUX_DISCRETIZATION_STAGGERED_GRID_VARIABLES_TRAITS_HH
namespace
Dumux
{
/*!
* \ingroup StaggeredDiscretization
* \brief Traits class to be used for the StaggeredGridFaceVariables.
*
* \tparam FV The face variables type
* \tparam P The problem type
*/
template
<
class
FV
,
class
P
>
struct
StaggeredGridFaceVariablesTraits
{
template
<
class
FVGridGeometry
,
class
GridFaceVariables
,
bool
enableCache
>
using
LocalView
=
StaggeredElementFaceVariables
<
FVGridGeometry
,
GridFaceVariables
,
enableCache
>
;
using
FaceVariables
=
FV
;
using
Problem
=
P
;
};
/*!
* \ingroup StaggeredDiscretization
* \brief Traits class to be used for the StaggeredGridVolumeVariables.
*
* \tparam VV The volume variables type
* \tparam P The problem type
* \tparam I The indices type
*/
template
<
class
VV
,
class
P
,
class
PV
,
class
I
>
struct
StaggeredGridVolumeVariablesTraits
{
template
<
class
FVGridGeometry
,
class
GridVolumeVariables
,
bool
enableCache
>
using
LocalView
=
StaggeredElementVolumeVariables
<
FVGridGeometry
,
GridVolumeVariables
,
enableCache
>
;
using
Indices
=
I
;
using
Problem
=
P
;
using
VolumeVariables
=
VV
;
};
/*!
* \ingroup StaggeredDiscretization
* \brief Traits class to be used for the StaggeredGridVFluxVariablesCache.
*
* \tparam FVC The flux variables cache type
* \tparam P The problem type
*/
template
<
class
FVC
,
class
P
>
struct
StaggeredGridFluxVariablesCacheTraits
{
template
<
class
FVGridGeometry
,
class
StaggeredGridFluxVariablesCache
,
bool
enableCache
>
using
LocalView
=
StaggeredElementFluxVariablesCache
<
FVGridGeometry
,
StaggeredGridFluxVariablesCache
,
enableCache
>
;
using
FluxVariablesCache
=
FVC
;
using
Problem
=
P
;
};
}
// end namespace Dumux
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment