Mercurial > repos > public > sbplib
view default_field.m @ 1199:dfb1b84b63f4 feature/joingrids
Add multiblock.joinGrids, which joins several multiblock grids into one.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sat, 17 Aug 2019 16:20:07 -0700 |
parents | d1c13505182a |
children |
line wrap: on
line source
function default_field(s, f, val) if isfield(s,f) && ~isempty(s.(f)) return end s.(f) = val; assignin('caller', inputname(1),s); end