Mercurial > repos > public > sbplib
view default_arg.m @ 564:9bf49338f8e6 feature/grids/laplace_refactor
Fix bug in creation of boundary inner products
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 30 Aug 2017 17:33:41 +0200 |
parents | 48b6fb693025 |
children |
line wrap: on
line source
function default_arg(s, val) if evalin('caller',sprintf('~exist(''%s'',''var'') || isempty(%s)',s,s)) assignin('caller',s,val) end end