Mercurial > repos > public > sbplib
view default_struct.m @ 689:60eb7f46d8d9 feature/poroelastic
Bugfix get_boundary_op in Elastic2d and Heat2d
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Thu, 15 Feb 2018 16:38:36 -0800 |
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