Skip to content
Snippets Groups Projects
Commit 0755d66c authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

remove some debugging code

[[Imported from SVN: r7228]]
parent 45d1a4c0
No related branches found
No related tags found
No related merge requests found
...@@ -82,22 +82,6 @@ energy(const Entity& element, ...@@ -82,22 +82,6 @@ energy(const Entity& element,
for (size_t comp=0; comp<referenceDerivative.N(); comp++) for (size_t comp=0; comp<referenceDerivative.N(); comp++)
jacobianInverseTransposed.umv(referenceDerivative[comp], derivative[comp]); jacobianInverseTransposed.umv(referenceDerivative[comp], derivative[comp]);
#if 0
// old debugging: the image of the derivative mapping must be tangent to the TargetSpace
TargetSpace value = localGeodesicFEFunction.evaluate(quadPos);
for (int i=0; i<gridDim; i++) {
double dotproduct = 0;
for (int j=0; j<4; j++)
dotproduct += value[j]*derivative[j][i];
assert(std::fabs(dotproduct) < 1e-6);
}
#endif
#if 0
std::cout << "Derivative norm squared: " << derivative.frobenius_norm2() << std::endl;
#endif
// Add the local energy density // Add the local energy density
// The Frobenius norm is the correct norm here if the metric of TargetSpace is the identity. // The Frobenius norm is the correct norm here if the metric of TargetSpace is the identity.
// (And if the metric of the domain space is the identity, which it always is here.) // (And if the metric of the domain space is the identity, which it always is here.)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment