Mercurial > repos > public > sbplib
view default_field.m @ 1267:e61083f178be feature/poroelastic
Add preallocation for D in StaggeredAnisotropic
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Thu, 30 Apr 2020 21:19:47 -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