Mercurial > repos > public > sbplib
view default_field.m @ 966:4a85cff53107 feature/poroelastic
Fix bug in Elastic2dVariable that caused crash for m_x neq m_y
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Sat, 22 Dec 2018 18:08:51 +0100 |
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