Mercurial > repos > public > sbplib
view default_field.m @ 730:9f28cf266f86 feature/poroelastic
Bugfix Elastic2dVariable interface
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sat, 21 Apr 2018 16:04:46 -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