Mercurial > repos > public > sbplib
view default_field.m @ 838:bd43256f0c41 feature/poroelastic
Added tag Heimisson2018 for changeset 08f3ffe63f48
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Fri, 14 Sep 2018 10:41:00 -0700 |
parents | 14bf01b7a068 |
children | 50cafc4b9e40 |
line wrap: on
line source
function default_field(s, f, val) if isfield(s,f) return end s.(f) = val; assignin('caller', inputname(1),s); end