Mercurial > repos > public > sbplib
view default_struct.m @ 982:a0b3161e44f3 feature/getBoundaryOp
Add the following methods in LaplaceCurvilinear: getBoundaryOperator, getBoundaryQuadrature, getBoundaryBorrowing. Remove get_boundary_ops. Make interface and boundary_condition methods use the new methods.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Tue, 08 Jan 2019 11:51:24 +0100 |
parents | 46256fffa329 |
children |
line wrap: on
line source
function default_struct(s, val) if evalin('caller',sprintf('~exist(''%s'',''var'')',s)) given = []; else given = evalin('caller', s); end final = copyWithDefault(given, val); assignin('caller', s, final); end