Commit 8900df67 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

removed GetMesh()

parent 559ea5c5
......@@ -36,7 +36,7 @@ double LagrangeEllipticAssemble::Energy(const Vector &u) const {
energy += w * K_DU * DU;
}
}
return sqrt(PPM->SumOnCommSplit(energy, u.GetMesh().CommSplit()));
return sqrt(PPM->SumOnCommSplit(energy, u.CommSplit()));
}
void LagrangeEllipticAssemble::Residual(const cell &c, const Vector &u, Vector &r) const {
......@@ -203,7 +203,7 @@ double LagrangeEllipticAssemble::FluxError(const Vector &u) const {
}
}
}
return sqrt(PPM->SumOnCommSplit(flux_error, u.GetMesh().CommSplit()));
return sqrt(PPM->SumOnCommSplit(flux_error, u.CommSplit()));
}
double LagrangeEllipticAssemble::FaceError(const Vector &u) const {
......@@ -219,7 +219,7 @@ double LagrangeEllipticAssemble::FaceError(const Vector &u) const {
}
}
}
return sqrt(PPM->SumOnCommSplit(face_error, u.GetMesh().CommSplit()));
return sqrt(PPM->SumOnCommSplit(face_error, u.CommSplit()));
}
FluxPair LagrangeEllipticAssemble::InflowOutflow(const Vector &u) const {
......@@ -241,8 +241,8 @@ FluxPair LagrangeEllipticAssemble::InflowOutflow(const Vector &u) const {
}
}
}
return {PPM->SumOnCommSplit(inflow, u.GetMesh().CommSplit()),
PPM->SumOnCommSplit(outflow, u.GetMesh().CommSplit())};
return {PPM->SumOnCommSplit(inflow, u.CommSplit()),
PPM->SumOnCommSplit(outflow, u.CommSplit())};
}
FluxPair LagrangeEllipticAssemble::PrescribedInflowOutflow(const Vector &u) const {
......@@ -263,8 +263,8 @@ FluxPair LagrangeEllipticAssemble::PrescribedInflowOutflow(const Vector &u) cons
}
}
}
return {PPM->SumOnCommSplit(inflow, u.GetMesh().CommSplit()),
PPM->SumOnCommSplit(outflow, u.GetMesh().CommSplit())};
return {PPM->SumOnCommSplit(inflow, u.CommSplit()),
PPM->SumOnCommSplit(outflow, u.CommSplit())};
}
FluxPair LagrangeEllipticAssemble::OutflowLeftRight(const Vector &u) const {
......@@ -286,8 +286,8 @@ FluxPair LagrangeEllipticAssemble::OutflowLeftRight(const Vector &u) const {
}
}
}
return {PPM->SumOnCommSplit(outflowLeft, u.GetMesh().CommSplit()),
PPM->SumOnCommSplit(outflowRight, u.GetMesh().CommSplit())};
return {PPM->SumOnCommSplit(outflowLeft, u.CommSplit()),
PPM->SumOnCommSplit(outflowRight, u.CommSplit())};
}
double LagrangeEllipticAssemble::GoalFunctional(const Vector &u) const {
......@@ -310,7 +310,7 @@ double LagrangeEllipticAssemble::GoalFunctional(const Vector &u) const {
}
}
}
return PPM->SumOnCommSplit(goal, u.GetMesh().CommSplit());
return PPM->SumOnCommSplit(goal, u.CommSplit());
}
void LagrangeEllipticAssemble::SetExactSolution(Vector &uEx) const {
......
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