mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-10-02 06:13:59 +00:00
Fix return types for fields not defined
Problem arises typically when boundary condition is created using
"nodal" elements of type Poi1, but forget to define geometry and
```solvers("geometry", 0.0)``` fails in Xdmf update function. Fixed.
This commit is contained in:
+1
-1
@@ -313,7 +313,7 @@ function getindex(problem::Problem, field_name::AbstractString)
|
||||
end
|
||||
|
||||
""" Return field calculated to nodal points for elements in problem p. """
|
||||
function (problem::Problem)(field_name::AbstractString, time::Float64=0.0)
|
||||
function (problem::Problem)(field_name::AbstractString, time::AbstractFloat=0.0)
|
||||
#if haskey(problem, field_name)
|
||||
# return problem[field_name](time)
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user