mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-10-03 06:41:30 +00:00
Moved core functionality to FEMBase
Core functionality is moved to base package called FEMBase.jl. The aim is that when developing new elements, solvers, materials and so on, user only imports FEMBase.jl and uses the functionality there. JuliaFEM.jl is a sort of "metapackage" collecting together all the packages and features can be programmed in smaller packages focusing only on one thing. This structure makes it attractive to contribute smaller amount of code e.g. in the form of thesis. Moreover, FEMBase.jl is under 2000 lines of code, which will be very clearly documented thus everyone can understand the basic concepts behing JuliaFEM easily.
This commit is contained in:
@@ -52,12 +52,6 @@ function haskey(solver::Solver, field_name::String)
|
||||
return haskey(solver.fields, field_name)
|
||||
end
|
||||
|
||||
# one-liner helpers to identify problem types
|
||||
|
||||
is_field_problem(problem) = false
|
||||
is_field_problem{P<:FieldProblem}(problem::Problem{P}) = true
|
||||
is_boundary_problem(problem) = false
|
||||
is_boundary_problem{P<:BoundaryProblem}(problem::Problem{P}) = true
|
||||
get_field_problems(solver::Solver) = filter(is_field_problem, get_problems(solver))
|
||||
get_boundary_problems(solver::Solver) = filter(is_boundary_problem, get_problems(solver))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user