Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
8921db95
Commit
8921db95
authored
Mar 10, 2021
by
niklas.baumgarten
Browse files
removing assemble transfer
parent
5ea922d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
mlmc/src/pdesolver/assembling/MixedEllipticAssemble.cpp
View file @
8921db95
...
...
@@ -360,20 +360,3 @@ void MixedEllipticAssemble::SetFlux(const Vector &u, Vector &flux) {
}
}
}
void
MixedEllipticAssemble
::
AssembleTransfer
(
TransferMatrix
&
TM
)
const
{
// Only works for rt0_p0
TM
=
0
;
const
matrixgraph
&
cg
=
TM
.
CoarseMatrixGraph
();
for
(
cell
c
=
cg
.
cells
();
c
!=
cg
.
cells_end
();
++
c
)
{
for
(
int
cf
=
0
;
cf
<
c
.
Faces
();
++
cf
)
{
for
(
int
k
=
0
;
k
<
2
;
++
k
)
TM
(
c
.
Face
(
cf
),
0.5
*
(
c
.
Face
(
cf
)
+
c
.
FaceCorner
(
cf
,
k
)))[
0
]
=
0.5
;
if
(
c
.
Faces
()
==
3
)
{
for
(
int
f
=
cf
+
1
;
f
<
c
.
Faces
();
++
f
)
TM
(
c
.
Face
(
cf
),
0.5
*
(
c
.
Face
(
cf
)
+
c
.
Face
(
f
)))[
0
]
=
0.5
;
}
else
TM
(
c
.
Face
(
cf
),
0.5
*
(
c
.
Face
(
cf
)
+
c
()))[
0
]
=
0.5
;
}
}
}
mlmc/src/pdesolver/assembling/MixedEllipticAssemble.hpp
View file @
8921db95
...
...
@@ -57,8 +57,6 @@ public:
virtual
void
SetExactSolution
(
Vector
&
uEx
)
const
override
;
virtual
void
SetFlux
(
const
Vector
&
u
,
Vector
&
flux
)
override
;
void
AssembleTransfer
(
TransferMatrix
&
TM
)
const
override
;
};
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment