Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-grid
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
Core Modules
dune-grid
Commits
712bcf80
There was a problem fetching the pipeline summary.
Unverified
Commit
712bcf80
authored
8 years ago
by
Ansgar Burchardt
Browse files
Options
Downloads
Patches
Plain Diff
Initialization is just like the loop itself
parent
ecacdb56
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!150
UGGrid: append to-be-visited sons at the end of the list
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/grid/uggrid/uggrid.cc
+4
-17
4 additions, 17 deletions
dune/grid/uggrid/uggrid.cc
dune/grid/uggrid/uggridintersections.cc
+7
-19
7 additions, 19 deletions
dune/grid/uggrid/uggridintersections.cc
with
11 additions
and
36 deletions
dune/grid/uggrid/uggrid.cc
+
4
−
17
View file @
712bcf80
...
...
@@ -375,23 +375,7 @@ void Dune::UGGrid<dim>::getChildrenOfSubface(const typename Traits::template Cod
&&
e
.
level
()
<
maxl
)
{
typename
UG_NS
<
dim
>::
Element
*
theElement
=
this
->
getRealImplementation
(
e
).
target_
;
UG
::
INT
Sons_of_Side
=
0
;
typename
UG_NS
<
dim
>::
Element
*
SonList
[
UG_NS
<
dim
>::
MAX_SONS
];
UG
::
INT
SonSides
[
UG_NS
<
dim
>::
MAX_SONS
];
int
rv
=
Get_Sons_of_ElementSide
(
theElement
,
elementSide
,
&
Sons_of_Side
,
SonList
,
// the output elements
SonSides
,
// Output element side numbers
true
,
// Element sons are not precomputed
true
);
// ioflag: I have no idea what this is supposed to do
if
(
rv
!=
0
)
DUNE_THROW
(
GridError
,
"Get_Sons_of_ElementSide returned with error value "
<<
rv
);
for
(
int
i
=
0
;
i
<
Sons_of_Side
;
i
++
)
list
.
emplace_back
(
SonList
[
i
],
SonSides
[
i
]);
list
.
emplace_back
(
theElement
,
elementSide
);
}
...
...
@@ -427,6 +411,9 @@ void Dune::UGGrid<dim>::getChildrenOfSubface(const typename Traits::template Cod
}
}
// Remove the element itself. We are only interested in the children.
list
.
pop_front
();
// //////////////////////////////
// Extract result from stack
// //////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
dune/grid/uggrid/uggridintersections.cc
+
7
−
19
View file @
712bcf80
...
...
@@ -697,26 +697,9 @@ void Dune::UGGridLeafIntersection<GridImp>::constructLeafSubfaces() {
else
{
std
::
list
<
Face
>
list
;
int
levelNeighborSide
=
numberInNeighbor
(
center_
,
levelNeighbor
);
UG
::
INT
Sons_of_Side
=
0
;
typename
UG_NS
<
dim
>::
Element
*
SonList
[
UG_NS
<
dim
>::
MAX_SONS
];
UG
::
INT
SonSides
[
UG_NS
<
dim
>::
MAX_SONS
];
int
rv
=
Get_Sons_of_ElementSide
(
levelNeighbor
,
levelNeighborSide
,
&
Sons_of_Side
,
SonList
,
// the output elements
SonSides
,
// Output element side numbers
true
,
// Element sons are not precomputed
false
,
// ioflag: Obsolete debugging flag
true
);
if
(
rv
!=
0
)
DUNE_THROW
(
GridError
,
"Get_Sons_of_ElementSide returned with error value "
<<
rv
);
for
(
int
i
=
0
;
i
<
Sons_of_Side
;
i
++
)
list
.
emplace_back
(
SonList
[
i
],
SonSides
[
i
]);
const
int
levelNeighborSide
=
numberInNeighbor
(
center_
,
levelNeighbor
);
list
.
emplace_back
(
levelNeighbor
,
levelNeighborSide
);
// //////////////////////////////////////////////////
// Get_Sons_of_ElementSide only computes direct sons. Therefore in order to get all
...
...
@@ -753,6 +736,11 @@ void Dune::UGGridLeafIntersection<GridImp>::constructLeafSubfaces() {
}
// Remove the element itself.
// We are only interested in leaf elements and in this code branch
// the element we start with is never a leaf.
list
.
pop_front
();
// //////////////////////////////
// Extract result from stack
// //////////////////////////////
...
...
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