Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit f9dc4c1

Browse files
Merge pull request #284 from cqql/dirichlet-float32
Make multi-dim Dirichlet BCs work with Float32
2 parents a08a6cd + 114525b commit f9dc4c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/derivative_operators/multi_dim_bc_operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ PeriodicBC(T,s) = MultiDimBC(PeriodicBC(T), s)
101101
NeumannBC{dim}::NTuple{2,T}, dx, order, s) where {T,dim} = RobinBC{dim}((zero(T), one(T), α[1]), (zero(T), one(T), α[2]), dx, order, s)
102102
NeumannBC::NTuple{2,T}, dxyz, order, s) where T = RobinBC((zero(T), one(T), α[1]), (zero(T), one(T), α[2]), dxyz, order, s)
103103

104-
DirichletBC{dim}(αl::T, αr::T, s) where {T,dim} = RobinBC{dim}((one(T), zero(T), αl), (one(T), zero(T), αr), 1.0, 2.0, s)
104+
DirichletBC{dim}(αl::T, αr::T, s) where {T,dim} = RobinBC{dim}((one(T), zero(T), αl), (one(T), zero(T), αr), one(T), 2.0, s)
105105
DirichletBC(αl::T, αr::T, s) where T = RobinBC((one(T), zero(T), αl), (one(T), zero(T), αr), fill(one(T), length(s)), 2.0, s)
106106

107107
Dirichlet0BC{dim}(T::Type, s) where {dim} = DirichletBC{dim}(zero(T), zero(T), s)

0 commit comments

Comments
 (0)