Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Levi-Civita tensor to Aspect #5318

Merged

Conversation

MFraters
Copy link
Member

Split out of the Levi-Cevita function from #4987

@bangerth bangerth changed the title Add Levi-Cevita tensor to Aspect Add Levi-Civita tensor to Aspect Jul 14, 2023
include/aspect/utilities.h Outdated Show resolved Hide resolved
Comment on lines +1284 to +1290
Tensor<3,3> permutation_operator_3d;
permutation_operator_3d[0][1][2] = 1;
permutation_operator_3d[1][2][0] = 1;
permutation_operator_3d[2][0][1] = 1;
permutation_operator_3d[0][2][1] = -1;
permutation_operator_3d[1][0][2] = -1;
permutation_operator_3d[2][1][0] = -1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, that's nice -- you don't actually need to replace the zeros!

Co-authored-by: Wolfgang Bangerth <bangerth@colostate.edu>
@gassmoeller gassmoeller merged commit 5634c05 into geodynamics:main Jul 14, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants