comparison DiffOps/src/laplace.jl @ 255:e960b877e07e boundary_conditions

Be more precise about grid dimension in BoundaryValue and NormalDerivative
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 27 Jun 2019 16:23:37 +0200
parents 9405c19b76bc
children 3ea8c60ccef3
comparison
equal deleted inserted replaced
254:4ca3794fffef 255:e960b877e07e
41 41
42 Implements the boundary operator `e` as a TensorMapping 42 Implements the boundary operator `e` as a TensorMapping
43 """ 43 """
44 struct BoundaryValue{T,N,M,K} <: TensorMapping{T,2,1} 44 struct BoundaryValue{T,N,M,K} <: TensorMapping{T,2,1}
45 op::D2{T,N,M,K} 45 op::D2{T,N,M,K}
46 grid::EquidistantGrid 46 grid::EquidistantGrid{2}
47 bId::CartesianBoundary 47 bId::CartesianBoundary
48 end 48 end
49 export BoundaryValue 49 export BoundaryValue
50 50
51 # TODO: This is obviouly strange. Is domain_size just discarded? Is there a way to avoid storing grid in BoundaryValue? 51 # TODO: This is obviouly strange. Is domain_size just discarded? Is there a way to avoid storing grid in BoundaryValue?
72 72
73 Implements the boundary operator `d` as a TensorMapping 73 Implements the boundary operator `d` as a TensorMapping
74 """ 74 """
75 struct NormalDerivative{T,N,M,K} <: TensorMapping{T,2,1} 75 struct NormalDerivative{T,N,M,K} <: TensorMapping{T,2,1}
76 op::D2{T,N,M,K} 76 op::D2{T,N,M,K}
77 grid::EquidistantGrid 77 grid::EquidistantGrid{2}
78 bId::CartesianBoundary 78 bId::CartesianBoundary
79 end 79 end
80 export NormalDerivative 80 export NormalDerivative
81 81
82 # TODO: This is obviouly strange. Is domain_size just discarded? Is there a way to avoid storing grid in BoundaryValue? 82 # TODO: This is obviouly strange. Is domain_size just discarded? Is there a way to avoid storing grid in BoundaryValue?