Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/boundaryops/boundary_operator_test.jl @ 960:e79debd10f7d feature/variable_derivatives
Merge feature/tensormapping_application_promotion
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 14 Mar 2022 10:14:38 +0100 |
parents | 18f63f1a0c44 469ed954b493 |
children | f885e1de6dc4 |
comparison
equal
deleted
inserted
replaced
959:e9752c1e92f8 | 960:e79debd10f7d |
---|---|
70 @test (op_l*v)[] == 2*v[1] + v[2] + 3*v[3] | 70 @test (op_l*v)[] == 2*v[1] + v[2] + 3*v[3] |
71 @test (op_r*v)[] == 2*v[end] + v[end-1] + 3*v[end-2] | 71 @test (op_r*v)[] == 2*v[end] + v[end-1] + 3*v[end-2] |
72 @test (op_r*v)[1] == 2*v[end] + v[end-1] + 3*v[end-2] | 72 @test (op_r*v)[1] == 2*v[end] + v[end-1] + 3*v[end-2] |
73 @test op_l'*u == [2*u[]; u[]; 3*u[]; zeros(8)] | 73 @test op_l'*u == [2*u[]; u[]; 3*u[]; zeros(8)] |
74 @test op_r'*u == [zeros(8); 3*u[]; u[]; 2*u[]] | 74 @test op_r'*u == [zeros(8); 3*u[]; u[]; 2*u[]] |
75 | |
76 v = evalOn(g_1D, x->1. +x*im) | |
77 @test (op_l*v)[] isa ComplexF64 | |
78 | |
79 u = fill(1. +im) | |
80 @test (op_l'*u)[1] isa ComplexF64 | |
81 @test (op_l'*u)[5] isa ComplexF64 | |
82 @test (op_l'*u)[11] isa ComplexF64 | |
75 end | 83 end |
76 | 84 |
77 @testset "2D" begin | 85 @testset "2D" begin |
78 v = rand(size(g_2D)...) | 86 v = rand(size(g_2D)...) |
79 u = fill(3.124) | 87 u = fill(3.124) |