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

Further simplification after it occurred to me that P_q (q \otimes p) = 0

[[Imported from SVN: r7051]]
parent 3f033a90
No related branches found
No related tags found
No related merge requests found
......@@ -172,19 +172,15 @@ public:
A *= secondDerivativeOfArcCosSquared(sp);
// Compute matrix B (see notes)
Dune::FieldMatrix<double,N,N> B;
Dune::FieldMatrix<double,N,N> Pq;
for (int i=0; i<N; i++)
for (int j=0; j<N; j++)
B[i][j] = (i==j)*sp + p.data_[i]*q.data_[j];
Pq[i][j] = (i==j) - q.data_[i]*q.data_[j];
// Bring it all together
Dune::FieldMatrix<double,N,N> result = A;
result.axpy(-1*derivativeOfArcCosSquared(sp), B);
for (int i=0; i<N; i++)
result[i] = q.projectOntoTangentSpace(result[i]);
A.axpy(-1*derivativeOfArcCosSquared(sp)*sp, Pq);
return result;
return A;
}
/** \brief Compute the mixed second derivate \partial d^2 / \partial da db
......
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