Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-fem-dg
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
Container Registry
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
dune-fem
dune-fem-dg
Commits
0a83dd12
Commit
0a83dd12
authored
6 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup][Limiter] enable boundary values again.
parent
246353f3
No related branches found
No related tags found
1 merge request
!4
Latest features added to dune-fem-dg.
Pipeline
#11882
failed
6 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/fem-dg/operator/limiter/limiterutility.hh
+7
-8
7 additions, 8 deletions
dune/fem-dg/operator/limiter/limiterutility.hh
dune/fem-dg/operator/limiter/limitpass.hh
+1
-3
1 addition, 3 deletions
dune/fem-dg/operator/limiter/limitpass.hh
with
8 additions
and
11 deletions
dune/fem-dg/operator/limiter/limiterutility.hh
+
7
−
8
View file @
0a83dd12
...
...
@@ -351,7 +351,8 @@ namespace Fem
}
DomainType
lambda
(
1
);
RangeType
neighborValue
(
0
);
// initialize with zero which assumes entityValue == neighborValue
RangeType
jumpNeighborEntity
(
0
);
/////////////////////////////////////
// if we have a neighbor
...
...
@@ -360,7 +361,6 @@ namespace Fem
{
// check all neighbors
const
EntityType
&
neighbor
=
intersection
.
outside
();
//const int nbIndex = gridPart.indexSet().index( neighbor );
// nonConforming case
flags
.
nonConforming
|=
(
!
intersection
.
conforming
()
);
...
...
@@ -369,17 +369,16 @@ namespace Fem
if
(
!
hasBoundary
)
{
// get barycenter of neighbor
//lambda = centers[ nbIndex ];
lambda
=
neighbor
.
geometry
().
center
();
// calculate difference
lambda
-=
entityCenter
;
}
// evaluate average value on neighbor
flags
.
limiter
|=
average
.
evaluate
(
neighbor
,
n
eighbor
Value
);
flags
.
limiter
|=
average
.
evaluate
(
neighbor
,
jumpN
eighbor
Entity
);
// calculate difference
n
eighbor
Value
-=
entityValue
;
jumpN
eighbor
Entity
-=
entityValue
;
}
// end neighbor
...
...
@@ -422,16 +421,16 @@ namespace Fem
const
DomainType
pointOnBoundary
=
lambda
+
entityCenter
;
// evaluate data on boundary
if
(
average
.
boundaryValue
(
entity
,
intersection
,
interGeo
,
pointOnBoundary
,
entityValue
,
n
eighbor
Value
)
)
if
(
average
.
boundaryValue
(
entity
,
intersection
,
interGeo
,
pointOnBoundary
,
entityValue
,
jumpN
eighbor
Entity
)
)
{
n
eighbor
Value
-=
entityValue
;
jumpN
eighbor
Entity
-=
entityValue
;
}
}
}
//end boundary
// store difference of mean values
nbVals
.
push_back
(
n
eighbor
Value
);
nbVals
.
push_back
(
jumpN
eighbor
Entity
);
// store difference between bary centers
barys
.
push_back
(
lambda
);
...
...
This diff is collapsed.
Click to expand it.
dune/fem-dg/operator/limiter/limitpass.hh
+
1
−
3
View file @
0a83dd12
...
...
@@ -834,8 +834,7 @@ namespace Fem
// check for boundary Value
if
(
discreteModel_
.
hasBoundaryValue
(
intersection
,
currentTime
,
localPoint
)
)
{
neighborValue
=
entityValue
;
/*
// create quadrature of low order
FaceQuadratureType
faceQuadInner
(
gridPart_
,
intersection
,
0
,
FaceQuadratureType
::
INSIDE
);
typedef
QuadratureContext
<
EntityType
,
IntersectionType
,
FaceQuadratureType
>
ContextType
;
typedef
LocalEvaluation
<
ContextType
,
RangeType
,
RangeType
>
EvalType
;
...
...
@@ -843,7 +842,6 @@ namespace Fem
ContextType
cLeft
(
entity
,
intersection
,
faceQuadInner
,
volume_
);
EvalType
local
(
cLeft
,
entityValue
,
entityValue
);
discreteModel_
.
boundaryValue
(
local
,
entityValue
,
neighborValue
);
*/
return
true
;
}
return
false
;
...
...
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