Remove functions used rarely

A new problem can be defined with 8(!) different styles. Let's remove
the ones not used often.
This commit is contained in:
Jukka Aho
2017-08-16 13:49:41 +03:00
parent 2ffe1589d7
commit 8ca459fc3a
3 changed files with 4 additions and 13 deletions
-9
View File
@@ -106,9 +106,6 @@ julia> prob2 = Problem(Elasticity, 3)
function Problem{P<:FieldProblem}(::Type{P}, name::AbstractString, dimension::Int64)
return Problem{P}(name, dimension, "none", [], Dict(), Assembly(), Dict(), Vector(), P())
end
function Problem{P<:FieldProblem}(::Type{P}, dimension::Int64)
return Problem(P, "$P problem", dimension)
end
""" Construct a new boundary problem.
@@ -122,12 +119,6 @@ solver.
function Problem{P<:BoundaryProblem}(::Type{P}, name, dimension, parent_field_name)
return Problem{P}(name, dimension, parent_field_name, [], Dict(), Assembly(), Dict(), Vector(), P())
end
function Problem{P<:BoundaryProblem}(::Type{P}, main_problem::Problem)
name = "$P problem"
dimension = get_unknown_field_dimension(main_problem)
parent_field_name = get_unknown_field_name(main_problem)
return Problem{P}(name, dimension, parent_field_name, [], Dict(), Assembly(), Dict(), Vector(), P())
end
function get_formulation_type(problem::Problem)
return :incremental