changeset 949:7168d28b03e3 feature/laplace_opset

Remove unnecessary parentheses
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 14 Mar 2022 08:03:40 +0100
parents 1484073dfe27
children 97e9a8337a86
files test/SbpOperators/boundaryops/boundary_operator_test.jl test/SbpOperators/boundaryops/boundary_restriction_test.jl test/SbpOperators/boundaryops/normal_derivative_test.jl
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/test/SbpOperators/boundaryops/boundary_operator_test.jl	Mon Mar 14 07:50:53 2022 +0100
+++ b/test/SbpOperators/boundaryops/boundary_operator_test.jl	Mon Mar 14 08:03:40 2022 +0100
@@ -32,8 +32,8 @@
             @test e_w isa TensorMapping{T,1,2} where T
         end
     end
-    (op_l, op_r) = map(id -> boundary_operator(g_1D, closure_stencil, id), boundary_identifiers(g_1D))
-    (op_w, op_e, op_s, op_n) = map(id -> boundary_operator(g_2D, closure_stencil, id), boundary_identifiers(g_2D))
+    op_l, op_r = map(id -> boundary_operator(g_1D, closure_stencil, id), boundary_identifiers(g_1D))
+    op_w, op_e, op_s, op_n = map(id -> boundary_operator(g_2D, closure_stencil, id), boundary_identifiers(g_2D))
 
     @testset "Sizes" begin
         @testset "1D" begin
--- a/test/SbpOperators/boundaryops/boundary_restriction_test.jl	Mon Mar 14 07:50:53 2022 +0100
+++ b/test/SbpOperators/boundaryops/boundary_restriction_test.jl	Mon Mar 14 08:03:40 2022 +0100
@@ -37,7 +37,7 @@
 
     @testset "Application" begin
         @testset "1D" begin
-            (e_l, e_r) = 
+            e_l, e_r =
                 map(id -> boundary_restriction(g_1D, e_closure, id), boundary_identifiers(g_1D))
 
             v = evalOn(g_1D,x->1+x^2)
@@ -49,7 +49,7 @@
         end
 
         @testset "2D" begin
-            (e_w, e_e, e_s, e_n) = 
+            e_w, e_e, e_s, e_n =
                 map(id -> boundary_restriction(g_2D, e_closure, id), boundary_identifiers(g_2D))
 
             v = rand(11, 15)
--- a/test/SbpOperators/boundaryops/normal_derivative_test.jl	Mon Mar 14 07:50:53 2022 +0100
+++ b/test/SbpOperators/boundaryops/normal_derivative_test.jl	Mon Mar 14 08:03:40 2022 +0100
@@ -40,7 +40,7 @@
         @testset "2nd order" begin
         	stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order=2)
         	d_closure = parse_stencil(stencil_set["d1"]["closure"])
-            (d_w, d_e, d_s, d_n) = 
+            d_w, d_e, d_s, d_n =
                 map(id -> normal_derivative(g_2D, d_closure, id), boundary_identifiers(g_2D))
 
             @test d_w*v ≈ -v∂x[1,:] atol = 1e-13
@@ -52,7 +52,7 @@
         @testset "4th order" begin
             stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order=4)
         	d_closure = parse_stencil(stencil_set["d1"]["closure"])
-            (d_w, d_e, d_s, d_n) = 
+            d_w, d_e, d_s, d_n =
                 map(id -> normal_derivative(g_2D, d_closure, id), boundary_identifiers(g_2D))
 
             @test d_w*v ≈ -v∂x[1,:] atol = 1e-13