Mercurial > repos > public > sbplib
changeset 828:f82da6644f42 feature/operator_files
Fixed bug in tests
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Mon, 10 Sep 2018 19:17:41 +0200 |
parents | d1e5143d67ed |
children | e0913772dc1c |
files | operator_def/assemble_D1.m operator_def/assemble_opTest.m |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/operator_def/assemble_D1.m Mon Sep 10 18:50:29 2018 +0200 +++ b/operator_def/assemble_D1.m Mon Sep 10 19:17:41 2018 +0200 @@ -1,5 +1,5 @@ function [D1,e_l,e_r] = assemble_D1(stencil,h,m) stencil_variables = read_stencil(stencil); - D1 = assemble_op(stencil_variables.inner_stencil,stencil_variables.boundary_stencils,m)/h; + D1 = assemble_op(stencil_variables.inner_stencil,stencil_variables.boundary_stencils,m,-1)/h; [e_l, e_r] = assemble_boundary_op(stencil_variables.e,m); end \ No newline at end of file
--- a/operator_def/assemble_opTest.m Mon Sep 10 18:50:29 2018 +0200 +++ b/operator_def/assemble_opTest.m Mon Sep 10 19:17:41 2018 +0200 @@ -10,7 +10,7 @@ boundary_block = op.D1(1:4,1:6)*h; inner = op.D1(5,3:7)*h; -D1_new = assemble_op(inner,boundary_block,m)/h; +D1_new = assemble_op(inner,boundary_block,m,-1)/h; verifyEqual(testCase,D1_new,op.D1,'AbsTol',1e-10)