Skip to content
Snippets Groups Projects
Commit 9157a687 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Merge branch 'fix/alternator-tensor' into 'master'

Correct typo in the calculation of the alternator tensor

See merge request !60
parents 77844fbb a1a00afd
No related branches found
No related tags found
1 merge request!60Correct typo in the calculation of the alternator tensor
Pipeline #5036 passed
......@@ -230,7 +230,7 @@ energy(const typename Basis::LocalView& localView,
for (int alpha=0; alpha<2; alpha++)
for (int beta=0; beta<2; beta++)
c += sqrt(aScalar) * eps[alpha][beta] * Dune::GFE::dyadicProduct(aContravariant[alpha], aContravariant[beta]);
c += aScalar * eps[alpha][beta] * Dune::GFE::dyadicProduct(aContravariant[alpha], aContravariant[beta]);
// Second fundamental form
// The derivative of the normal field
......
......@@ -245,7 +245,7 @@ RT energy(const typename Basis::LocalView& localView,
for (int alpha=0; alpha<2; alpha++)
for (int beta=0; beta<2; beta++)
c += sqrt(aScalar) * eps[alpha][beta] * Dune::GFE::dyadicProduct(aContravariant[alpha], aContravariant[beta]);
c += aScalar * eps[alpha][beta] * Dune::GFE::dyadicProduct(aContravariant[alpha], aContravariant[beta]);
// Second fundamental form
// The derivative of the normal field
......
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