Mercurial > repos > public > sbplib_julia
comparison test/BoundaryConditions/boundary_condition_test.jl @ 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 | b4ec84190e6b |
children | fefc81a9c155 |
comparison
equal
deleted
inserted
replaced
1416:031514327289 | 1417:5f79549f60ae |
---|---|
12 g = 3.14 | 12 g = 3.14 |
13 f(x,y) = x^2+y^2 | 13 f(x,y) = x^2+y^2 |
14 @test DirichletCondition(g,id_n) isa BoundaryCondition{Float64} | 14 @test DirichletCondition(g,id_n) isa BoundaryCondition{Float64} |
15 @test NeumannCondition(f,id_n) isa BoundaryCondition{<:Function} | 15 @test NeumannCondition(f,id_n) isa BoundaryCondition{<:Function} |
16 | 16 |
17 # g_n = discretize_data(grid_2d,DirichletCondition(f,id_n)) | 17 @test g*ones(11,1) ≈ discretize_data(grid_2d,DirichletCondition(g,id_n)) |
18 # @test g_n .≈ g*ones(1,11) | |
19 end | 18 end |