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
ecacdb56
Commit
ecacdb56
authored
8 years ago
by
Ansgar Burchardt
Browse files
Options
Downloads
Patches
Plain Diff
Check return value also inside loop
parent
c6d4ec03
No related branches found
No related tags found
1 merge request
!150
UGGrid: append to-be-visited sons at the end of the list
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/grid/uggrid/uggrid.cc
+10
-8
10 additions, 8 deletions
dune/grid/uggrid/uggrid.cc
dune/grid/uggrid/uggridintersections.cc
+11
-8
11 additions, 8 deletions
dune/grid/uggrid/uggridintersections.cc
with
21 additions
and
16 deletions
dune/grid/uggrid/uggrid.cc
+
10
−
8
View file @
ecacdb56
...
...
@@ -410,19 +410,21 @@ void Dune::UGGrid<dim>::getChildrenOfSubface(const typename Traits::template Cod
if
(
UG_NS
<
dim
>::
myLevel
(
theElement
)
<
maxl
)
{
Get_Sons_of_ElementSide
(
theElement
,
side
,
// Input element side number
&
Sons_of_Side
,
// Number of topological sons of the element side
SonList
,
// Output elements
SonSides
,
// Output element side numbers
true
,
true
);
int
rv
=
Get_Sons_of_ElementSide
(
theElement
,
side
,
// Input element side number
&
Sons_of_Side
,
// Number of topological sons of the element side
SonList
,
// Output elements
SonSides
,
// Output element side numbers
true
,
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
]);
}
}
// //////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
dune/grid/uggrid/uggridintersections.cc
+
11
−
8
View file @
ecacdb56
...
...
@@ -734,14 +734,17 @@ void Dune::UGGridLeafIntersection<GridImp>::constructLeafSubfaces() {
if
(
!
UG_NS
<
dim
>::
isLeaf
(
theElement
))
{
Get_Sons_of_ElementSide
(
theElement
,
f
.
second
,
// Input element side number
&
Sons_of_Side
,
// Number of topological sons of the element side
SonList
,
// Output elements
SonSides
,
// Output element side numbers
true
,
false
,
true
);
int
rv
=
Get_Sons_of_ElementSide
(
theElement
,
f
.
second
,
// Input element side number
&
Sons_of_Side
,
// Number of topological sons of the element side
SonList
,
// Output elements
SonSides
,
// Output element side numbers
true
,
false
,
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
]);
...
...
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