view stuffStruct.m @ 1031:2ef20d00b386 feature/advectionRV

For easier comparison, return both the first order and residual viscosity when evaluating the residual. Add the first order and residual viscosity to the state of the RungekuttaRV time steppers
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 17 Jan 2019 10:25:06 +0100
parents 7ea4b6de59d9
children
line wrap: on
line source

function s = stuffStruct(varargin)
    s = struct();

    for i = 1:nargin
        assert(~isempty(inputname(i)), 'All inputs must be variables.');
        s.(inputname(i)) = varargin{i};
    end
end