diff test/SbpOperators/boundaryops/boundary_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 45966c77cb20
children e79debd10f7d 5be8e25c81b3
line wrap: on
line diff
--- a/test/SbpOperators/boundaryops/boundary_operator_test.jl	Sat Mar 12 22:20:45 2022 +0100
+++ b/test/SbpOperators/boundaryops/boundary_operator_test.jl	Sat Mar 12 22:26:23 2022 +0100
@@ -72,6 +72,14 @@
             @test (op_r*v)[1] == 2*v[end] + v[end-1] + 3*v[end-2]
             @test op_l'*u == [2*u[]; u[]; 3*u[]; zeros(8)]
             @test op_r'*u == [zeros(8); 3*u[]; u[]; 2*u[]]
+
+            v = evalOn(g_1D, x->1. +x*im)
+            @test (op_l*v)[] isa ComplexF64
+
+            u = fill(1. +im)
+            @test (op_l'*u)[1] isa ComplexF64
+            @test (op_l'*u)[5] isa ComplexF64
+            @test (op_l'*u)[11] isa ComplexF64
         end
 
         @testset "2D" begin