Skip to content

"::Vec" Type declaration outdated? #42

@thomaskroi1996

Description

@thomaskroi1996

Hello!

in lines 101 and 108 of create_basis.jl:

@inline function FEMBasis.eval_basis!(::Type{$name}, N::Vector{<:Number}, xi::Vec)
@inline function FEMBasis.eval_dbasis!(::Type{$name}, dN::Vector{<:Vec{$D}}, xi::Vec)

the type declaration throws me errors, when trying to use a Vector for xi. Is this on purpose or is it simply a relict from an older version? Changing them to xi::Vector fixed the issue. Furthermore, in the documentation of JuliaFEM.jl this is done with xi as a tuple.

This code should reproduce the example, with Julia v.1.9.2 and FEMBasis 0.3.2
B = Quad4()
N = zeros(1, length(B))
xi = [0.0, 0.0] #(or using (0.0, 0.0) as in JuliaFEM doc)
eval_basis!(B, N, xi)

I am trying to use FEMBasis as if i were using it from JuliaFEM, i.e. with the help of JuliaFEM documentation. A related issue is that basis functions are not defined in JuliaFEM, does anybody know about this?
using JuliaFEM
Tri3() #not defined error

I don't know if it is useful to open a seperate issue, or if this unavailability of the basis functions are related to this package. They seem to be exported in JuliaFEM, but not defined.

Thank you for the help in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions