Mercurial > repos > public > sbplib
view default_field.m @ 733:a55d3c1e1f83 feature/poroelastic
Bugfix in multiblock.Grid.splitFunc, didnt work for vector-valued functions.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 25 Apr 2018 14:44:49 -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