Mercurial > repos > public > sbplib
view default_struct.m @ 559:e3f587bfd7f8 feature/grids/laplace_refactor
Fix bug where boundary operators were not stored in their properties
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 29 Aug 2017 13:03:45 +0200 |
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