Mercurial > repos > public > sbplib
view default_struct.m @ 1302:a0d615bde7f8 feature/poroelastic
Add the hollow option to the anisotropic diffops
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Fri, 10 Jul 2020 20:24:23 -0700 |
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