Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/volumeops/volume_operator_test.jl @ 946:469ed954b493 feature/tensormapping_application_promotion
Allow volume_operator, boundary_operator, and constant_interior_scaling_operator to act on arbitrary arrays
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 12 Mar 2022 22:26:23 +0100 |
parents | 80d88bb1c5bd |
children | 1ba8a398af9c |
comparison
equal
deleted
inserted
replaced
945:1f41cf9454f2 | 946:469ed954b493 |
---|---|
87 ry[:,Ny-1:Ny] = -v[:,Ny-1:Ny] | 87 ry[:,Ny-1:Ny] = -v[:,Ny-1:Ny] |
88 | 88 |
89 @testset "Application" begin | 89 @testset "Application" begin |
90 @test op_x*v ≈ rx rtol = 1e-14 | 90 @test op_x*v ≈ rx rtol = 1e-14 |
91 @test op_y*v ≈ ry rtol = 1e-14 | 91 @test op_y*v ≈ ry rtol = 1e-14 |
92 | |
93 @test (op_x*rand(ComplexF64,size(g_2D)))[2,2] isa ComplexF64 | |
92 end | 94 end |
93 | 95 |
94 @testset "Regions" begin | 96 @testset "Regions" begin |
95 @test (op_x*v)[Index(1,Lower),Index(3,Interior)] ≈ rx[1,3] rtol = 1e-14 | 97 @test (op_x*v)[Index(1,Lower),Index(3,Interior)] ≈ rx[1,3] rtol = 1e-14 |
96 @test (op_x*v)[Index(2,Lower),Index(3,Interior)] ≈ rx[2,3] rtol = 1e-14 | 98 @test (op_x*v)[Index(2,Lower),Index(3,Interior)] ≈ rx[2,3] rtol = 1e-14 |