Mercurial > repos > public > sbplib_julia
view src/BoundaryConditions/boundary_condition.jl @ 1132:302d36b5ba8e feature/boundary_conditions
Merge feature/grids
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 15 Jul 2022 15:24:02 +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