diff 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
line wrap: on
line diff
--- a/test/SbpOperators/volumeops/volume_operator_test.jl	Sat Mar 12 22:20:45 2022 +0100
+++ b/test/SbpOperators/volumeops/volume_operator_test.jl	Sat Mar 12 22:26:23 2022 +0100
@@ -89,6 +89,8 @@
     @testset "Application" begin
         @test op_x*v ≈ rx rtol = 1e-14
         @test op_y*v ≈ ry rtol = 1e-14
+
+        @test (op_x*rand(ComplexF64,size(g_2D)))[2,2] isa ComplexF64
     end
 
     @testset "Regions" begin