view +time/+rkparameters/rk4.m @ 1056:b4fa176b4287 feature/poroelastic

Elastic2dVariable: boundary condition type can now be a string, normal or tangential, as well as component number.
author Martin Almquist <malmquist@stanford.edu>
date Fri, 25 Jan 2019 15:15:44 -0800
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