diff operator_def/assemble_D1.m @ 821:95c26000c0ba feature/operator_files

Add files for parsing operator data stencil file
author Ylva Rydin <ylva.rydin@telia.com>
date Mon, 10 Sep 2018 16:57:17 +0200
parents
children 4808c4bd844e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/operator_def/assemble_D1.m	Mon Sep 10 16:57:17 2018 +0200
@@ -0,0 +1,6 @@
+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_block)/h;
+  
+  end
\ No newline at end of file