view +time/+rkparameters/rk4.m @ 1342:d1dad4fbfe22 feature/D2_boundary_opt

Add support for glue interpolation operators, and separate wave speeds across interfaces
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Fri, 26 Aug 2022 14:19:29 +0200
parents ee4cfb37534d
children
line wrap: on
line source

function [a,b,c,s] = rk4()

% Butcher tableau for classical RK$
s = 4;
a = sparse(s,s);
a(2,1) = 1/2;
a(3,2) = 1/2;
a(4,3) = 1;
b = 1/6*[1; 2; 2; 1];
c = [0; 1/2; 1/2; 1];

end