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:
Jukka Aho
2017-06-28 13:54:04 +03:00
committed by Jukka Aho
parent 938b6245ce
commit 7a827e0a12
2 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -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