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

Fields converting Tensor variables to Arrays #57

Open
jvaara opened this issue Oct 1, 2019 · 1 comment
Open

Fields converting Tensor variables to Arrays #57

jvaara opened this issue Oct 1, 2019 · 1 comment

Comments

@jvaara
Copy link
Member

jvaara commented Oct 1, 2019

How to reproduce:

  1. Update a value to integration point
    update!(ip, variable, time => value),
    where value <: AbstractTensor.
    typeof(value)
    [ Info: Tensors.SymmetricTensor{2,3,Float64,6}

  2. Check the realized type
    typeof(ip(variable, time))
    [ Info: Array{Float64,2}

ahojukka5 added a commit that referenced this issue Oct 1, 2019
Related to issue #57.
@ahojukka5
Copy link
Member

julia> update!(element, 0.0 => data)
ERROR: MethodError: no method matching update!(::Element{Seg2}, ::Pair{Float64,Tensor{1,3,Int64,3}})

I cannot even update the field.

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

No branches or pull requests

2 participants