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
ff34e724
Commit
ff34e724
authored
10 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
remove wrong commit in elliptic operator which removed diffusion fluxes
parent
e829ec9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fem-dg/assemble/primalmatrix.hh
+20
-16
20 additions, 16 deletions
dune/fem-dg/assemble/primalmatrix.hh
with
20 additions
and
16 deletions
dune/fem-dg/assemble/primalmatrix.hh
+
20
−
16
View file @
ff34e724
...
...
@@ -409,7 +409,9 @@ class DGPrimalMatrixAssembly
std
::
vector
<
RangeType
>
phi
(
maxNumBasisFunctions
);
std
::
vector
<
JacobianRangeType
>
dphi
(
maxNumBasisFunctions
);
// flux_.initialize( dfSpace );
#ifndef EULER
flux_
.
initialize
(
dfSpace
);
#endif
const
RangeType
uZero
(
0
);
const
JacobianRangeType
uJacZero
(
0
);
...
...
@@ -585,7 +587,9 @@ class DGPrimalMatrixAssembly
const
DiscreteFunctionSpaceType
&
dfSpace
=
rhs
.
space
();
const
size_t
maxNumBasisFunctions
=
maxNumScalarBasisFunctions
(
dfSpace
);
// flux_.initialize(dfSpace);
#ifndef EULER
flux_
.
initialize
(
dfSpace
);
#endif
const
RangeType
uZero
(
0
);
const
JacobianRangeType
uJacZero
(
0
);
...
...
@@ -878,25 +882,25 @@ class DGPrimalMatrixAssembly
RetType
&
retNb
,
DRetType
&
dretNb
)
const
{
RangeType
gLeft
,
gRight
;
/*
#ifndef EULER
flux_
.
initializeIntersection
(
intersectionStorage
.
intersection
(),
intersectionStorage
.
inside
(),
intersectionStorage
.
outside
(),
time
,
//zero_, zero_,
faceQuadInside
,
faceQuadOutside
,
valueEn
,
valueNb
);
*/
#endif
const
size_t
numFaceQuadPoints
=
faceQuadInside
.
nop
();
for
(
size_t
pt
=
0
;
pt
<
numFaceQuadPoints
;
++
pt
)
{
/*
#ifndef EULER
flux_
.
numericalFlux
(
intersectionStorage
.
intersection
(),
intersectionStorage
,
time
,
faceQuadInside
,
faceQuadOutside
,
pt
,
valueEn
[
pt
],
valueNb
[
pt
],
dvalueEn
[
pt
],
dvalueNb
[
pt
],
retEn
[
pt
],
retNb
[
pt
],
dretEn
[
pt
],
dretNb
[
pt
]);
*/
#endif
retEn
[
pt
]
=
RangeType
(
0
);
retNb
[
pt
]
=
RangeType
(
0
);
advFlux_
.
numericalFlux
(
intersectionStorage
.
intersection
(),
...
...
@@ -955,11 +959,11 @@ class DGPrimalMatrixAssembly
const
size_t
numFaceQuadPoints
=
faceQuadInside
.
nop
();
for
(
size_t
pt
=
0
;
pt
<
numFaceQuadPoints
;
++
pt
)
{
/*
#ifndef EULER
flux_
.
evaluateLifting
(
faceQuadInside
,
faceQuadOutside
,
pt
,
time
,
valueEn
[
pt
],
valueNb
[
pt
],
liftEn
[
pt
],
liftNb
[
pt
]);
*/
#endif
}
}
template
<
class
FaceQuadrature
,
class
Quadrature
,
class
Value
,
class
DValue
,
class
RetType
,
class
DRetType
>
...
...
@@ -986,11 +990,11 @@ class DGPrimalMatrixAssembly
const
size_t
numQuadPoints
=
quadInside
.
nop
();
for
(
size_t
pt
=
0
;
pt
<
numQuadPoints
;
++
pt
)
{
/*
#ifndef EULER
flux_
.
evaluateLifting
(
quadInside
,
quadOutside
,
pt
,
time
,
valueEn
[
pt
],
valueNb
[
pt
],
liftEn
[
pt
],
liftNb
[
pt
]);
*/
#endif
}
}
template
<
class
FaceQuadrature
,
class
Value
,
class
LiftingFunction
>
...
...
@@ -1002,13 +1006,13 @@ class DGPrimalMatrixAssembly
const
Value
&
valueEn
,
const
Value
&
valueNb
,
LiftingFunction
&
lifting
)
const
{
/*
#ifndef EULER
flux_
.
initializeIntersection
(
intersection
,
entity
,
neighbor
,
time
,
// zero_, zero_,
faceQuadInside
,
faceQuadOutside
,
valueEn
,
valueNb
,
true
);
lifting
+=
flux_
.
getInsideLifting
();
*/
#endif
}
template
<
class
Quadrature
,
class
RetType
>
...
...
@@ -1036,25 +1040,25 @@ class DGPrimalMatrixAssembly
RetType
&
retEn
,
DRetType
&
dretEn
)
const
{
RangeType
gLeft
,
gRight
;
/*
#ifndef EULER
flux_
.
initializeBoundary
(
intersection
,
entity
,
time
,
// zero_,
faceQuadInside
,
valueEn
,
valueNb
);
*/
#endif
IntersectionStorage
intersectionStorage
(
intersection
,
entity
,
entity
,
entity
.
geometry
().
volume
(),
entity
.
geometry
().
volume
()
);
const
size_t
numFaceQuadPoints
=
faceQuadInside
.
nop
();
for
(
size_t
pt
=
0
;
pt
<
numFaceQuadPoints
;
++
pt
)
{
if
(
model_
.
hasBoundaryValue
(
intersection
,
time
,
faceQuadInside
.
localPoint
(
pt
))
)
{
/*
#ifndef EULER
flux_
.
boundaryFlux
(
intersection
,
intersectionStorage
,
time
,
faceQuadInside
,
pt
,
valueEn
[
pt
],
valueNb
[
pt
],
dvalueEn
[
pt
],
retEn
[
pt
],
dretEn
[
pt
]);
*/
#endif
retEn
[
pt
]
=
RangeType
(
0
);
advFlux_
.
numericalFlux
(
intersection
,
entity
,
entity
,
time
,
faceQuadInside
,
faceQuadInside
,
pt
,
...
...
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