Mercurial > repos > public > sbplib
view default_field.m @ 1284:5412fd72a7d8 feature/boundary_optimized_grids
New branch for developing grids based on the boundary optimized sbp opertors
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 01 Jul 2020 17:44:34 +0200 |
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