mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-25 19:36:58 +00:00
more general way to define saddle point problem.
This commit is contained in:
+3
-3
@@ -3,7 +3,7 @@
|
||||
|
||||
abstract AbstractProblem
|
||||
|
||||
type Problem{T<:AbstractProblem}
|
||||
type FieldProblem{T<:AbstractProblem}
|
||||
name :: ASCIIString
|
||||
dim :: Int
|
||||
elements :: Vector{Element}
|
||||
@@ -17,9 +17,9 @@ type BoundaryProblem{T<:AbstractProblem}
|
||||
elements :: Vector{Element}
|
||||
end
|
||||
|
||||
typealias FieldProblem Problem
|
||||
typealias Problem FieldProblem
|
||||
|
||||
typealias AllProblems Union{Problem, BoundaryProblem}
|
||||
typealias AllProblems Union{FieldProblem, BoundaryProblem}
|
||||
|
||||
function get_elements(problem::AllProblems)
|
||||
return problem.elements
|
||||
|
||||
Reference in New Issue
Block a user