Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Timo Koch
dune-common
Commits
73e590e4
Commit
73e590e4
authored
19 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
renamed boundary in outerBoundary.
[[Imported from SVN: r2293]]
parent
bee42bb1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
grid/alu3dgrid/faceutility.hh
+3
-3
3 additions, 3 deletions
grid/alu3dgrid/faceutility.hh
grid/alu3dgrid/faceutility_imp.cc
+23
-19
23 additions, 19 deletions
grid/alu3dgrid/faceutility_imp.cc
with
26 additions
and
22 deletions
grid/alu3dgrid/faceutility.hh
+
3
−
3
View file @
73e590e4
...
...
@@ -38,7 +38,7 @@ namespace Dune {
typedef
typename
ALU3dImplTraits
<
type
>::
GEOFaceType
GEOFaceType
;
typedef
typename
ALU3dImplTraits
<
type
>::
GEOElementType
GEOElementType
;
typedef
typename
ALU3dImplTraits
<
type
>::
IMPLElementType
IMPLElementType
;
#ifdef _PARALLEL_
#ifdef
_ALU3DGRID
_PARALLEL_
typedef
typename
ALU3dImplTraits
<
type
>::
PLLBndFaceType
BndFaceType
;
#else
typedef
typename
ALU3dImplTraits
<
type
>::
BNDFaceType
BndFaceType
;
...
...
@@ -58,7 +58,7 @@ namespace Dune {
//- queries
//! Lies the face on an outer boundary?
bool
b
oundary
()
const
;
bool
outerB
oundary
()
const
;
//! Lies the face on an internal boundary
bool
internalBoundary
()
const
;
...
...
@@ -104,7 +104,7 @@ namespace Dune {
int
innerFaceNumber_
;
int
outerFaceNumber_
;
bool
is
Boundary_
;
bool
outer
Boundary_
;
bool
internalBnd_
;
bool
isGhostBnd_
;
};
...
...
This diff is collapsed.
Click to expand it.
grid/alu3dgrid/faceutility_imp.cc
+
23
−
19
View file @
73e590e4
...
...
@@ -13,7 +13,7 @@ namespace Dune {
outerElement_
(
0
),
innerFaceNumber_
(
-
1
),
outerFaceNumber_
(
-
1
),
is
Boundary_
(
false
),
outer
Boundary_
(
false
),
internalBnd_
(
false
),
isGhostBnd_
(
false
)
{
...
...
@@ -30,11 +30,11 @@ namespace Dune {
outerFaceNumber_
=
face
.
nb
.
rear
().
second
;
}
// end if
is
Boundary_
=
outerElement_
->
isboundary
();
outer
Boundary_
=
outerElement_
->
isboundary
();
#ifdef _ALU3DGRID_PARALLEL_
// check for ghosts
// this check is only need in the parallel case
if
(
is
Boundary_
)
if
(
outer
Boundary_
)
{
const
BndFaceType
*
bnd
=
dynamic_cast
<
const
BndFaceType
*>
(
outerElement_
);
if
(
bnd
->
bndtype
()
==
ALU3DSPACE
ProcessorBoundary_t
)
...
...
@@ -44,10 +44,17 @@ namespace Dune {
// and isGhostBnd
isGhostBnd_
=
true
;
internalBnd_
=
true
;
// this dosen't count as outer boundary
outerBoundary_
=
false
;
}
}
#endif
//if( innerTwist != innerEntity().twist(innerFaceNumber_) )
//{
// std::cout << "inner item = " << & innerEntity() << "\n";
// std::cout << innerTwist << " itw | en->itw " << innerEntity().twist(innerFaceNumber_) << "\n";
//}
assert
(
innerTwist
==
innerEntity
().
twist
(
innerFaceNumber_
));
}
...
...
@@ -62,13 +69,13 @@ namespace Dune {
outerElement_
(
orig
.
outerElement_
),
innerFaceNumber_
(
orig
.
innerFaceNumber_
),
outerFaceNumber_
(
orig
.
outerFaceNumber_
),
is
Boundary_
(
orig
.
is
Boundary_
),
outer
Boundary_
(
orig
.
outer
Boundary_
),
internalBnd_
(
orig
.
internalBnd_
),
isGhostBnd_
(
orig
.
isGhostBnd_
)
{}
template
<
ALU3dGridElementType
type
>
inline
bool
ALU3dGridFaceInfo
<
type
>::
b
oundary
()
const
{
return
is
Boundary_
;
inline
bool
ALU3dGridFaceInfo
<
type
>::
outerB
oundary
()
const
{
return
outer
Boundary_
;
}
template
<
ALU3dGridElementType
type
>
...
...
@@ -97,14 +104,14 @@ namespace Dune {
template
<
ALU3dGridElementType
type
>
const
typename
ALU3dGridFaceInfo
<
type
>::
GEOElementType
&
ALU3dGridFaceInfo
<
type
>::
outerEntity
()
const
{
assert
(
!
b
oundary
());
assert
(
!
outerB
oundary
());
return
static_cast
<
const
GEOElementType
&>
(
*
outerElement_
);
}
template
<
ALU3dGridElementType
type
>
const
typename
ALU3dGridFaceInfo
<
type
>::
BndFaceType
&
ALU3dGridFaceInfo
<
type
>::
boundaryFace
()
const
{
assert
(
b
oundary
());
assert
(
outerB
oundary
()
||
isGhostBnd
()
);
return
static_cast
<
const
BndFaceType
&>
(
*
outerElement_
);
}
...
...
@@ -115,7 +122,7 @@ namespace Dune {
template
<
ALU3dGridElementType
type
>
int
ALU3dGridFaceInfo
<
type
>::
outerTwist
()
const
{
if
(
!
b
oundary
())
{
if
(
!
outerB
oundary
())
{
return
outerEntity
().
twist
(
outerALUFaceIndex
());
}
else
{
return
boundaryFace
().
twist
(
outerALUFaceIndex
());
...
...
@@ -138,7 +145,7 @@ namespace Dune {
RefinementState
result
=
UNREFINED
;
// A boundary is always unrefined
if
(
!
b
oundary
())
{
if
(
!
outerB
oundary
())
{
int
levelDifference
=
innerEntity
().
level
()
-
outerEntity
().
level
();
if
(
levelDifference
<
0
)
{
result
=
REFINED_OUTER
;
...
...
@@ -235,7 +242,7 @@ namespace Dune {
ALU3dGridFaceGeometryInfo
<
GridImp
>::
intersectionNeighborLocal
()
const
{
assert
(
intersectionNeighborLocal_
);
assert
(
!
connector_
.
b
oundary
());
assert
(
!
connector_
.
outerB
oundary
());
return
*
intersectionNeighborLocal_
;
}
...
...
@@ -250,10 +257,7 @@ namespace Dune {
for
(
int
i
=
0
;
i
<
numVerticesPerFace
;
++
i
)
{
const
double
(
&
p
)[
3
]
=
connector_
.
face
().
myvertex
(
FaceTopo
::
dune2aluVertex
(
i
))
->
Point
();
FieldVector
<
alu3d_ctype
,
3
>
tmp
;
convert2FieldVector
(
p
,
tmp
);
coords
[
i
]
=
tmp
;
convert2FieldVector
(
p
,
coords
[
i
]
);
}
// end for
mappingGlobal_
=
buildSurfaceMapping
(
coords
);
...
...
@@ -271,7 +275,7 @@ namespace Dune {
}
template
<
class
GridImp
>
void
ALU3dGridFaceGeometryInfo
<
GridImp
>::
generateGlobalGeometry
()
{
inline
void
ALU3dGridFaceGeometryInfo
<
GridImp
>::
generateGlobalGeometry
()
{
intersectionGlobal_
->
buildGeom
(
connector_
.
face
());
}
...
...
@@ -287,14 +291,14 @@ namespace Dune {
intersectionSelfLocal_
->
buildGeom
(
coords
);
// generate outer local geometry only when not at boundary
// * in the parallel case, this needs to be altered for the ghost cells
if
(
!
connector_
.
b
oundary
())
{
if
(
!
connector_
.
outerB
oundary
())
{
referenceElementCoordinatesRefined
(
OUTER
,
coords
);
intersectionNeighborLocal_
->
buildGeom
(
coords
);
}
// end if
}
else
{
assert
(
!
connector_
.
b
oundary
());
assert
(
!
connector_
.
outerB
oundary
());
FaceGeometryImp
*
refinedGeometry
=
0
;
FaceGeometryImp
*
unrefinedGeometry
=
0
;
...
...
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