Mercurial > repos > public > sbplib
view default_arg.m @ 681:7368affc8f78 feature/poroelastic
Add D2 variable periodic for second order.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 07 Feb 2018 15:42:50 -0800 |
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