Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-alugrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-alugrid
Commits
086750ff
Commit
086750ff
authored
10 years ago
by
Martin Alkaemper
Browse files
Options
Downloads
Patches
Plain Diff
fixed false positive in hasboundaryintersections of entity
parent
247790a7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/alugrid/3d/entity_imp.cc
+1
-1
1 addition, 1 deletion
dune/alugrid/3d/entity_imp.cc
dune/alugrid/3d/faceutility.cc
+19
-1
19 additions, 1 deletion
dune/alugrid/3d/faceutility.cc
with
20 additions
and
2 deletions
dune/alugrid/3d/entity_imp.cc
+
1
−
1
View file @
086750ff
...
@@ -538,7 +538,7 @@ namespace Dune {
...
@@ -538,7 +538,7 @@ namespace Dune {
// on ghost elements return false
// on ghost elements return false
if
(
isGhost
()
)
return
false
;
if
(
isGhost
()
)
return
false
;
enum
{
numFaces
=
EntityCount
<
GridImp
::
elementType
>::
numFaces
};
enum
{
numFaces
=
dim
==
3
?
EntityCount
<
GridImp
::
elementType
>::
numFaces
:
(
elementType
==
tetra
?
3
:
4
)
};
typedef
typename
ImplTraits
::
HasFaceType
HasFaceType
;
typedef
typename
ImplTraits
::
HasFaceType
HasFaceType
;
typedef
typename
ImplTraits
::
GEOFaceType
GEOFaceType
;
typedef
typename
ImplTraits
::
GEOFaceType
GEOFaceType
;
...
...
This diff is collapsed.
Click to expand it.
dune/alugrid/3d/faceutility.cc
+
19
−
1
View file @
086750ff
...
@@ -104,7 +104,25 @@ namespace Dune
...
@@ -104,7 +104,25 @@ namespace Dune
::
referenceElementCoordinatesUnrefined
(
SideIdentifier
side
,
LocalCoordinateType
&
result
)
const
::
referenceElementCoordinatesUnrefined
(
SideIdentifier
side
,
LocalCoordinateType
&
result
)
const
{
{
//TODO use connector.face.nChild and (maybe twist) referenceElementCoordinatesRefined ( side, cornerCoords )
//TODO use connector.face.nChild and (maybe twist) referenceElementCoordinatesRefined ( side, cornerCoords )
result
=
LocalCoordinateType
(
0.
);
// get the parent's face coordinates on the reference element (Dune reference element)
LocalCoordinateType
cornerCoords
;
referenceElementCoordinatesRefined
(
side
,
cornerCoords
);
if
(
connector_
.
face
().
nChild
()
==
0
){
result
[
0
]
=
cornerCoords
[
0
];
result
[
1
]
=
(
cornerCoords
[
1
]
+
cornerCoords
[
0
]
);
result
[
1
]
*=
0.5
;
}
else
if
(
connector_
.
face
().
nChild
()
==
1
)
{
result
[
0
]
=
(
cornerCoords
[
1
]
+
cornerCoords
[
0
]
);
result
[
0
]
*=
0.5
;
result
[
1
]
=
cornerCoords
[
1
];
}
else
std
::
cerr
<<
"Trying to access more than two children on one face"
<<
std
::
endl
;
}
}
...
...
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