Skip to content

Fix error in surfacecosseratenergy

The contravariant base vectors were not calculated correctly. The contravariant base vectors are the columns of the inverse of the covariant matrix, not the rows. To fix this, take the rows of the transpose of inverse of the covariant matrix.

Merge request reports