view default_field.m @ 503:feebfca90080 feature/quantumTriangles

Added the new abstract classes to hypsyst3D and Upwind1D to make them work with Jonatans changes
author Ylva Rydin <ylva.rydin@telia.com>
date Tue, 16 May 2017 09:18:10 +0200
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