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
03b14415
Commit
03b14415
authored
Jan 17, 2020
by
niklas.baumgarten
Browse files
changed signiture of plot fct
parent
52c1ac62
Changes
8
Hide whitespace changes
Inline
Side-by-side
mlmc/src/assemble/DGEllipticAssemble.C
View file @
03b14415
...
...
@@ -228,7 +228,7 @@ void DGEllipticAssemble::AssembleTransfer(TransferMatrix &TM) const {
TM
(
c
(),
c
.
Child
(
k
))[
0
]
=
1
;
}
void
DGEllipticAssemble
::
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
char
*
name
)
{
void
DGEllipticAssemble
::
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
string
&
name
)
{
Vector
plot_u
(
u
);
for
(
cell
c
=
u
.
cells
();
c
!=
u
.
cells_end
();
++
c
)
{
DGElement
elem
(
*
disc
,
u
,
c
);
...
...
mlmc/src/assemble/DGEllipticAssemble.h
View file @
03b14415
...
...
@@ -48,7 +48,7 @@ public:
void
AssembleTransfer
(
TransferMatrix
&
TM
)
const
override
;
void
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
char
*
name
)
override
;
void
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
string
&
name
)
override
;
};
#endif
mlmc/src/assemble/EllipticAssemble.C
View file @
03b14415
...
...
@@ -368,17 +368,17 @@ void EllipticAssemble::setFlux(const Vector &u, Vector &flux) const {
}
}
void
EllipticAssemble
::
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
char
*
name
)
{
void
EllipticAssemble
::
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
string
&
name
)
{
plot
.
vertexdata
(
u
);
plot
.
vtk_vertexdata
(
name
);
}
void
EllipticAssemble
::
plotFlux
(
Plot
&
plot
,
const
Vector
&
flux
,
const
char
*
name
)
{
void
EllipticAssemble
::
plotFlux
(
Plot
&
plot
,
const
Vector
&
flux
,
const
string
&
name
)
{
plot
.
celldata
(
flux
,
3
);
plot
.
vtk_cellvector
(
name
);
}
void
EllipticAssemble
::
plotPerm
(
Plot
&
plot
,
const
Vector
&
perm
,
const
char
*
name
)
{
void
EllipticAssemble
::
plotPerm
(
Plot
&
plot
,
const
Vector
&
perm
,
const
string
&
name
)
{
plot
.
celldata
(
perm
);
plot
.
vtk_celldata
(
name
);
}
...
...
@@ -421,4 +421,5 @@ void EllipticAssemble::printSolutionInfo(const Vector &u) {
<<
"RightOutflow: "
<<
outflowLeftRight
.
second
<<
endl
<<
endl
;
}
}
\ No newline at end of file
}
#include <utility>
mlmc/src/assemble/EllipticAssemble.h
View file @
03b14415
...
...
@@ -79,11 +79,11 @@ public:
virtual
void
setFlux
(
const
Vector
&
u
,
Vector
&
flux
)
const
;
virtual
void
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
char
*
name
);
virtual
void
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
string
&
name
);
virtual
void
plotFlux
(
Plot
&
plot
,
const
Vector
&
flux
,
const
char
*
name
);
virtual
void
plotFlux
(
Plot
&
plot
,
const
Vector
&
flux
,
const
string
&
name
);
virtual
void
plotPerm
(
Plot
&
plot
,
const
Vector
&
perm
,
const
char
*
name
);
virtual
void
plotPerm
(
Plot
&
plot
,
const
Vector
&
perm
,
const
string
&
name
);
void
AssembleTransfer
(
TransferMatrix
&
TM
)
const
override
;
...
...
mlmc/src/assemble/HybridEllipticAssemble.C
View file @
03b14415
...
...
@@ -301,7 +301,7 @@ void HybridEllipticAssemble::setFlux(const Vector &u, Vector &flux) const {
}
}
void
HybridEllipticAssemble
::
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
char
*
name
)
{
void
HybridEllipticAssemble
::
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
string
&
name
)
{
plot
.
celldata
(
u
);
plot
.
vtk_celldata
(
"u"
);
}
...
...
mlmc/src/assemble/HybridEllipticAssemble.h
View file @
03b14415
...
...
@@ -37,7 +37,7 @@ public:
void
setFlux
(
const
Vector
&
u
,
Vector
&
flux
)
const
override
;
void
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
char
*
name
)
override
;
void
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
string
&
name
)
override
;
void
SetNormalFlux
(
const
Vector
&
u
,
Vector
&
flux
);
...
...
mlmc/src/assemble/MixedEllipticAssemble.C
View file @
03b14415
...
...
@@ -145,7 +145,7 @@ double MixedEllipticAssemble::DualPrimalError(const Discretization &discretizati
return
sqrt
(
PPM
->
Sum
(
err
));
}
void
MixedEllipticAssemble
::
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
char
*
name
)
{
void
MixedEllipticAssemble
::
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
string
&
name
)
{
plot
.
celldata
(
u
);
plot
.
vtk_celldata
(
"u"
);
}
...
...
mlmc/src/assemble/MixedEllipticAssemble.h
View file @
03b14415
...
...
@@ -38,7 +38,7 @@ public:
virtual
double
DualPrimalError
(
const
Discretization
&
discretization
,
const
Vector
&
u_ref
,
const
Vector
&
u
)
const
;
void
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
char
*
name
)
override
;
void
plotU
(
Plot
&
plot
,
const
Vector
&
u
,
const
string
&
name
)
override
;
void
AssembleTransfer
(
TransferMatrix
&
TM
)
const
override
;
};
...
...
Write
Preview
Markdown
is supported
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