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
3caacd2f
Commit
3caacd2f
authored
5 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[factory] Return false for wasInserted on refined boundaries
parent
4eba0014
No related branches found
No related tags found
1 merge request
!59
[gridfactory] Implement insertBoundarySegment.
Pipeline
#19615
canceled
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/foamgrid/foamgrid/foamgridfactory.hh
+2
-3
2 additions, 3 deletions
dune/foamgrid/foamgrid/foamgridfactory.hh
with
2 additions
and
3 deletions
dune/foamgrid/foamgrid/foamgridfactory.hh
+
2
−
3
View file @
3caacd2f
...
...
@@ -152,11 +152,10 @@ template <int dimworld>
*/
bool
wasInserted
(
const
typename
FoamGrid
<
dimgrid
,
dimworld
>::
LeafIntersection
&
intersection
)
const
override
{
if
(
!
intersection
.
boundary
()
)
if
(
!
intersection
.
boundary
()
||
intersection
.
inside
().
level
()
!=
0
)
return
false
;
const
auto
&
vertex
=
intersection
.
inside
().
template
subEntity
<
1
>(
intersection
.
indexInInside
());
const
auto
&
it
=
boundarySegmentIndices_
.
find
(
this
->
insertionIndex
(
vertex
)
);
return
(
it
!=
boundarySegmentIndices_
.
end
());
}
...
...
@@ -308,7 +307,7 @@ template <int dimworld>
*/
bool
wasInserted
(
const
typename
FoamGrid
<
dimgrid
,
dimworld
>::
LeafIntersection
&
intersection
)
const
override
{
if
(
!
intersection
.
boundary
()
)
if
(
!
intersection
.
boundary
()
||
intersection
.
inside
().
level
()
!=
0
)
return
false
;
// obtain the vertices of the intersection by reference element numbering
...
...
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