mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-10-03 06:41:30 +00:00
Fix deprecations (#206)
This commit is contained in:
committed by
Jukka Aho
parent
86fdc59f20
commit
a8a3e0b46e
@@ -4,17 +4,19 @@
|
||||
using JuliaFEM
|
||||
using JuliaFEM.Testing
|
||||
|
||||
abstract HeatProblem <: AbstractProblem
|
||||
abstract type HeatProblem <: AbstractProblem
|
||||
|
||||
end
|
||||
|
||||
function HeatProblem(dim::Int=1, elements=[])
|
||||
return Problem{HeatProblem}(dim, elements)
|
||||
end
|
||||
|
||||
function get_unknown_field_name{P<:HeatProblem}(::Type{P})
|
||||
function get_unknown_field_name(::Type{P}) where P<:HeatProblem
|
||||
return "temperature"
|
||||
end
|
||||
|
||||
function get_unknown_field_type{P<:HeatProblem}(::Type{P})
|
||||
function get_unknown_field_type(::Type{P}) where P<:HeatProblem
|
||||
return Float64
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user