Mercurial > repos > public > sbplib_julia
changeset 1417:5f79549f60ae feature/boundary_conditions
Test constant dirichlet data
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 23 Aug 2023 09:27:32 +0200 |
parents | 031514327289 |
children | ebd359176b41 |
files | test/BoundaryConditions/boundary_condition_test.jl |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/BoundaryConditions/boundary_condition_test.jl Tue Aug 22 22:44:42 2023 +0200 +++ b/test/BoundaryConditions/boundary_condition_test.jl Wed Aug 23 09:27:32 2023 +0200 @@ -14,6 +14,5 @@ @test DirichletCondition(g,id_n) isa BoundaryCondition{Float64} @test NeumannCondition(f,id_n) isa BoundaryCondition{<:Function} -# g_n = discretize_data(grid_2d,DirichletCondition(f,id_n)) -# @test g_n .≈ g*ones(1,11) + @test g*ones(11,1) ≈ discretize_data(grid_2d,DirichletCondition(g,id_n)) end