Mercurial > repos > public > sbplib_julia
view src/BoundaryConditions/boundary_condition.jl @ 1133:a8c8517a310f feature/boundary_conditions
Merge with default
| author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
|---|---|
| date | Wed, 05 Oct 2022 22:05:23 +0200 |
| parents | b4ee47f2aafb |
| children | 667e9c588f23 |
line wrap: on
line source
abstract type BoundaryConditionType end struct Dirichlet <: BoundaryConditionType end struct Neumann <: BoundaryConditionType end struct BoundaryCondition{BCType <: BoundaryConditionType, ID <: BoundaryIdentifier, DType} id::ID data::DType BoundaryCondition{BCType}(id::ID, data::DType) where {BCType <: BoundaryConditionType, ID <: BoundaryIdentifier, DType} = new{BCType,ID,DType}(id, data) end
