Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-foamgrid
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
extensions
dune-foamgrid
Commits
14389b42
Commit
14389b42
authored
4 years ago
by
Simon Praetorius
Committed by
Timo Koch
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
make specializations more explicit
parent
0454a728
No related branches found
No related tags found
1 merge request
!83
Feature/explicit template instantiation foam
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/foamgrid/foamgrid.hh
+3
-35
3 additions, 35 deletions
dune/foamgrid/foamgrid.hh
dune/foamgrid/foamgrid/foamgrid.impl.hh
+412
-412
412 additions, 412 deletions
dune/foamgrid/foamgrid/foamgrid.impl.hh
with
415 additions
and
447 deletions
dune/foamgrid/foamgrid.hh
+
3
−
35
View file @
14389b42
...
...
@@ -666,22 +666,8 @@ DUNE_NO_DEPRECATED_END
//! \brief refine an Element
//! \param element The element to refine
//! \param refCount How many times to refine the element
void
refineSimplexElement
(
FoamGridEntityImp
<
dimgrid
,
dimgrid
,
dimworld
,
ctype
>&
element
,
int
refCount
)
{
if
constexpr
(
dimgrid
==
1
)
refineEdge
(
element
,
refCount
);
else
refineTriangle
(
element
,
refCount
);
}
//! Overloaded function for the 1d case
template
<
int
dimentity
=
1
>
void
refineEdge
(
FoamGridEntityImp
<
dimentity
,
dimentity
,
dimworld
,
ctype
>&
element
,
int
refCount
);
//! Overloaded function for the 2d case
template
<
int
dimentity
=
2
>
void
refineTriangle
(
FoamGridEntityImp
<
dimentity
,
dimentity
,
dimworld
,
ctype
>&
element
,
int
refCount
);
void
refineSimplexElement
(
FoamGridEntityImp
<
1
,
1
,
dimworld
,
ctype
>&
element
,
int
refCount
);
void
refineSimplexElement
(
FoamGridEntityImp
<
2
,
2
,
dimworld
,
ctype
>&
element
,
int
refCount
);
//! \brief remove this element resulting in grid shrinkage
bool
removeSimplexElement
(
FoamGridEntityImp
<
dimgrid
,
dimgrid
,
dimworld
,
ctype
>&
element
);
...
...
@@ -711,25 +697,7 @@ DUNE_NO_DEPRECATED_END
//! Add a new facet
void
addNewFacet
(
FoamGridEntityImp
<
dimgrid
-
1
,
dimgrid
,
dimworld
,
ctype
>*
&
facet
,
std
::
array
<
FoamGridEntityImp
<
0
,
dimgrid
,
dimworld
,
ctype
>*
,
dimgrid
>
vertexArray
,
int
level
)
{
if
constexpr
(
dimgrid
==
1
)
addNewFacet1d
(
facet
,
vertexArray
,
level
);
else
addNewFacet2d
(
facet
,
vertexArray
,
level
);
}
//! Add a new facet for 1d grids (the facet already exists as vertex)
template
<
int
dimfacet
=
0
>
void
addNewFacet1d
(
FoamGridEntityImp
<
dimfacet
,
dimgrid
,
dimworld
,
ctype
>*
&
facet
,
std
::
array
<
FoamGridEntityImp
<
0
,
dimgrid
,
dimworld
,
ctype
>*
,
dimgrid
>
vertexArray
,
int
level
);
//! Add a new facet for 2d grids
template
<
int
dimfacet
=
1
>
void
addNewFacet2d
(
FoamGridEntityImp
<
dimfacet
,
dimgrid
,
dimworld
,
ctype
>*
&
facet
,
std
::
array
<
FoamGridEntityImp
<
0
,
dimgrid
,
dimworld
,
ctype
>*
,
dimgrid
>
vertexArray
,
int
level
);
int
level
);
//! compute the grid indices and ids
void
setIndices
();
...
...
This diff is collapsed.
Click to expand it.
dune/foamgrid/foamgrid/foamgrid.impl.hh
+
412
−
412
View file @
14389b42
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