Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tomáš Jakubec
GTMesh
Commits
244beaa0
Commit
244beaa0
authored
Dec 07, 2019
by
Tomáš Jakubec
Browse files
mesh apply refactor:
Now getIndex is omitted because local index is to be deleted from the MeshElementBase
parent
d9baa013
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnstructuredMesh/MeshFunctions/MeshApply.h
View file @
244beaa0
...
...
@@ -41,7 +41,7 @@ struct MeshRun<MeshDimension, StartDimension, TargetDimension, MeshDimension, fa
IndexType
tmpFace
=
cell
.
getBoundaryElementIndex
();
do
{
MeshRun
<
MeshDimension
-
1
,
StartDimension
,
TargetDimension
,
MeshDimension
,
TargetDimension
==
MeshDimension
-
1
,
Descend
>::
run
(
mesh
,
origElementIndex
,
tmpFace
,
fun
);
tmpFace
=
mesh
.
getFaces
().
at
(
tmpFace
).
getNextBElem
(
cell
.
getI
ndex
()
);
tmpFace
=
mesh
.
getFaces
().
at
(
tmpFace
).
getNextBElem
(
i
ndex
);
}
while
(
tmpFace
!=
cell
.
getBoundaryElementIndex
());
}
...
...
@@ -111,14 +111,14 @@ struct MeshApply {
template
<
typename
Functor
,
typename
IndexType
,
typename
Real
,
unsigned
int
...
Reserve
>
static
void
apply
(
const
MeshElements
<
MeshDimension
,
IndexType
,
Real
,
Reserve
...
>&
mesh
,
Functor
f
)
{
for
(
auto
&
start
Element
:
mesh
.
template
getElements
<
(
StartDimension
>
TargetDimension
)
?
StartDimension
:
TargetDimension
>
()){
for
(
IndexType
currElement
=
0
;
curr
Element
<
mesh
.
template
getElements
<
(
StartDimension
>
TargetDimension
)
?
StartDimension
:
TargetDimension
>
()
.
size
();
currElement
++
){
MeshRun
<
(
StartDimension
>
TargetDimension
)
?
StartDimension
:
TargetDimension
,
(
StartDimension
>
TargetDimension
)
?
StartDimension
:
TargetDimension
,
(
StartDimension
>
TargetDimension
)
?
TargetDimension
:
StartDimension
,
MeshDimension
,
StartDimension
==
TargetDimension
,
(
StartDimension
>
TargetDimension
)
>::
run
(
mesh
,
start
Element
.
getIndex
(),
startElement
.
getIndex
()
,
f
);
(
StartDimension
>
TargetDimension
)
>::
run
(
mesh
,
curr
Element
,
currElement
,
f
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment