view default_field.m @ 688:eb2f9233acc3 feature/poroelastic

Add scheme Heat2dVariable
author Martin Almquist <malmquist@stanford.edu>
date Mon, 12 Feb 2018 13:39:39 -0800
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