You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function FEMBase.get_integration_points(::Problem{Beam}, ::Element{Seg2})
return FEMQuad.get_quadrature_points(Val{:GLSEG3})
end
causes the following error: LoadError: TypeError: in AbstractElement, in M, expected M <: FEMBase.AbstractFieldSet, got Type{Seg2} in version 0.3.1, with Julia 1.4.1. It seems to me that it is caused by FEMBase.Element having two type parameters, so supplying any subtype of AbstractFieldSet as the first type param resolves the issue. (If there is a way to ignore a type parameter, that would also work, since only the second is needed for dispatch, but I couldn't find it.)
function FEMBase.get_integration_points(::Problem{Beam},
::Element{<:FEMBase.AbstractFieldSet, Seg2})
return FEMQuad.get_quadrature_points(Val{:GLSEG3})
end
To test this out, we can try:
e =Element(Seg2, [1, 2])
p =Problem(Beam, "example 1", 6)
FEMBase.get_integration_points(p, e)
This works, and produces an Iterator of tuples. (@which also confirms this method is called.)
The text was updated successfully, but these errors were encountered:
The following method definition
causes the following error:
LoadError: TypeError: in AbstractElement, in M, expected M <: FEMBase.AbstractFieldSet, got Type{Seg2}
in version 0.3.1, with Julia 1.4.1. It seems to me that it is caused byFEMBase.Element
having two type parameters, so supplying any subtype ofAbstractFieldSet
as the first type param resolves the issue. (If there is a way to ignore a type parameter, that would also work, since only the second is needed for dispatch, but I couldn't find it.)To test this out, we can try:
This works, and produces an
Iterator
of tuples. (@which
also confirms this method is called.)The text was updated successfully, but these errors were encountered: