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
9933007d
Commit
9933007d
authored
5 years ago
by
Samuel Scherrer
Committed by
Timo Koch
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[io][grid] Move GmshBoundaryFlag to a separate header
parent
5d9c6285
No related branches found
No related tags found
1 merge request
!1672
Feature/gmsh boundary flag for alugrid
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dumux/io/grid/gmshboundaryflag.hh
+58
-0
58 additions, 0 deletions
dumux/io/grid/gmshboundaryflag.hh
dumux/io/grid/gridmanager_alu.hh
+0
-22
0 additions, 22 deletions
dumux/io/grid/gridmanager_alu.hh
test/io/gridmanager/test_gmshboundaryflag.cc
+1
-0
1 addition, 0 deletions
test/io/gridmanager/test_gmshboundaryflag.cc
with
59 additions
and
22 deletions
dumux/io/grid/gmshboundaryflag.hh
0 → 100644
+
58
−
0
View file @
9933007d
// -*- 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 InputOutput
* \brief Boundary flag implementation for Gmsh meshes.
*/
#ifndef DUMUX_GMSH_BOUNDARY_FLAG_HH
#define DUMUX_GMSH_BOUNDARY_FLAG_HH
namespace
Dumux
{
/*!
* \ingroup InputOutput
* \brief Class for accessing boundary flags for Gmsh meshes.
*/
template
<
class
Grid
>
class
GmshBoundaryFlag
{
public:
GmshBoundaryFlag
()
:
flag_
(
-
1
)
{}
template
<
class
Intersection
>
GmshBoundaryFlag
(
const
Intersection
&
i
)
:
flag_
(
-
1
)
{
if
(
i
.
boundary
())
flag_
=
i
.
boundarySegmentIndex
();
}
using
value_type
=
std
::
size_t
;
value_type
get
()
const
{
return
flag_
;
}
private
:
value_type
flag_
;
};
}
// end namespace Dumux
#endif
This diff is collapsed.
Click to expand it.
dumux/io/grid/gridmanager_alu.hh
+
0
−
22
View file @
9933007d
...
@@ -219,28 +219,6 @@ private:
...
@@ -219,28 +219,6 @@ private:
int
flag_
;
int
flag_
;
};
};
template
<
class
Grid
>
class
GmshBoundaryFlag
{
public:
GmshBoundaryFlag
()
:
flag_
(
-
1
)
{}
template
<
class
Intersection
>
GmshBoundaryFlag
(
const
Intersection
&
i
)
:
flag_
(
-
1
)
{
if
(
i
.
boundary
())
flag_
=
i
.
boundarySegmentIndex
();
}
using
value_type
=
std
::
size_t
;
value_type
get
()
const
{
return
flag_
;
}
private
:
value_type
flag_
;
};
#endif // DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
#endif // DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
#endif // HAVE_DUNE_ALUGRID
#endif // HAVE_DUNE_ALUGRID
...
...
This diff is collapsed.
Click to expand it.
test/io/gridmanager/test_gmshboundaryflag.cc
+
1
−
0
View file @
9933007d
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include
<dune/common/parallel/mpihelper.hh>
#include
<dune/common/parallel/mpihelper.hh>
#include
<dumux/common/parameters.hh>
#include
<dumux/common/parameters.hh>
#include
<dumux/io/grid/gridmanager.hh>
#include
<dumux/io/grid/gridmanager.hh>
#include
<dumux/io/grid/gmshboundaryflag.hh>
#include
<dumux/discretization/box.hh>
#include
<dumux/discretization/box.hh>
#include
<dumux/discretization/cctpfa.hh>
#include
<dumux/discretization/cctpfa.hh>
...
...
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