comparison +scheme/Wave.m @ 905:459eeb99130f feature/utux2D

Include type as (optional) input parameter in the interface method of all schemes.
author Martin Almquist <malmquist@stanford.edu>
date Thu, 22 Nov 2018 22:03:44 -0800
parents cb2b12246b7e
children b9c98661ff5d
comparison
equal deleted inserted replaced
904:14b093a344eb 905:459eeb99130f
110 otherwise 110 otherwise
111 error('No such boundary condition: type = %s',type); 111 error('No such boundary condition: type = %s',type);
112 end 112 end
113 end 113 end
114 114
115 function [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary) 115 function [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary,type)
116 % u denotes the solution in the own domain 116 % u denotes the solution in the own domain
117 % v denotes the solution in the neighbour domain 117 % v denotes the solution in the neighbour domain
118 [e_u,d_u,s_u] = obj.get_boundary_ops(boundary); 118 [e_u,d_u,s_u] = obj.get_boundary_ops(boundary);
119 [e_v,d_v,s_v] = neighbour_scheme.get_boundary_ops(neighbour_boundary); 119 [e_v,d_v,s_v] = neighbour_scheme.get_boundary_ops(neighbour_boundary);
120 120