Commit 03b14415 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

changed signiture of plot fct

parent 52c1ac62
......@@ -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);
......
......@@ -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
......@@ -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>
......@@ -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;
......
......@@ -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");
}
......
......@@ -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);
......
......@@ -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");
}
......
......@@ -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;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment