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
2f233d78
Commit
2f233d78
authored
3 years ago
by
Kilian Weishaupt
Browse files
Options
Downloads
Patches
Plain Diff
[staggered] Add traits to check whether a grid is twist-free
parent
746b409f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2901
Feature/improve staggered gridgeometry
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/facecentered/staggered/consistentlyorientedgrid.hh
+58
-0
58 additions, 0 deletions
...zation/facecentered/staggered/consistentlyorientedgrid.hh
with
58 additions
and
0 deletions
dumux/discretization/facecentered/staggered/consistentlyorientedgrid.hh
0 → 100644
+
58
−
0
View file @
2f233d78
// -*- 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 *
* 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 Typetraits
* \copydoc Type trait to determine if a grid is oriented consistently
*/
#ifndef DUMUX_DISCRETIZATION_FACECENTERED_STAGGERED_CONSISTENTLY_ORIENTED_GRID_HH
#define DUMUX_DISCRETIZATION_FACECENTERED_STAGGERED_CONSISTENTLY_ORIENTED_GRID_HH
#include
<type_traits>
// forward declare
namespace
Dune
{
template
<
int
dim
,
class
Coordinates
>
class
YaspGrid
;
template
<
int
dim
,
class
HostGrid
,
bool
mapIndexStorage
>
class
SubGrid
;
}
namespace
Dumux
{
/*!
* \brief Helper type to determine whether a grid is guaranteed to be oriented consistently.
* This means that the intersection indices always correspond to the ones of a reference element
* or, in other words, the elements are never rotated.
*/
template
<
class
T
>
struct
ConsistentlyOrientedGrid
:
public
std
::
false_type
{};
template
<
int
dim
,
class
Coords
>
struct
ConsistentlyOrientedGrid
<
Dune
::
YaspGrid
<
dim
,
Coords
>>
:
public
std
::
true_type
{};
template
<
int
dim
,
class
Coords
,
bool
mapIndexStorage
>
struct
ConsistentlyOrientedGrid
<
Dune
::
SubGrid
<
dim
,
Dune
::
YaspGrid
<
dim
,
Coords
>
,
mapIndexStorage
>>
:
public
std
::
true_type
{};
}
// 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