Mercurial > repos > public > sbplib
view default_struct.m @ 917:878652b22157 feature/timesteppers
Make time.rk.rungekutta return stage approximations and stage rates in addition to the solution after one time step.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Mon, 26 Nov 2018 16:12:27 -0800 |
parents | 46256fffa329 |
children |
line wrap: on
line source
function default_struct(s, val) if evalin('caller',sprintf('~exist(''%s'',''var'')',s)) given = []; else given = evalin('caller', s); end final = copyWithDefault(given, val); assignin('caller', s, final); end