Commit 18c0cb9a authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

bug fix flux computation

parent b4485aab
......@@ -214,7 +214,7 @@ void HybridEllipticAssemble::SetFlux(const Vector &u, Vector &flux) {
}
}
F *= (1 / area);
for (int d = 0; d < 3; ++d)
for (int d = 0; d < SpaceDimension; ++d)
flux(c(), d) = F[d];
}
}
......
......@@ -329,7 +329,7 @@ void LagrangeEllipticAssemble::SetFlux(const Vector &u, Vector &flux) {
area += w;
}
F *= (1 / area);
for (int d = 0; d < 3; ++d) {
for (int d = 0; d < SpaceDimension; ++d) {
flux(c(), d) = F[d];
}
}
......
......@@ -355,7 +355,7 @@ void MixedEllipticAssemble::SetFlux(const Vector &u, Vector &flux) {
area += w;
}
F *= (1 / area);
for (int d = 0; d < 3; ++d) {
for (int d = 0; d < SpaceDimension; ++d) {
flux(c(), d) = F[d];
}
}
......
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