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 norm operation for TensorValues #538

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

Paulms
Copy link
Contributor

@Paulms Paulms commented Feb 2, 2021

In the p-Laplacian tutorial you can use norm∘∇(u). If you try to do the same: norm∘T where T belongs to a Tensor Valued Space (like, TestFESpace(model,ReferenceFE(lagrangian,TensorValue{2,2,Float64,4},order),conformity=:L2)), it doesn`t work. Adding the method: norm(u::MultiValue{Tuple{D1,D2}}) where {D1,D2} = sqrt(inner(u,u)) in TensorValues/Operations.jl seems to solve the issue.

@fverdugo fverdugo merged commit 991bffc into gridap:master Feb 2, 2021
@fverdugo
Copy link
Member

fverdugo commented Feb 2, 2021

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants