comparison +time/+rkparameters/rk4.m @ 856:ee4cfb37534d feature/poroelastic

Merge with feature/d1_staggered to get RK timestepper for discrete data.
author Martin Almquist <malmquist@stanford.edu>
date Tue, 02 Oct 2018 13:39:10 -0700
parents
children
comparison
equal deleted inserted replaced
855:5751262b323b 856:ee4cfb37534d
1 function [a,b,c,s] = rk4()
2
3 % Butcher tableau for classical RK$
4 s = 4;
5 a = sparse(s,s);
6 a(2,1) = 1/2;
7 a(3,2) = 1/2;
8 a(4,3) = 1;
9 b = 1/6*[1; 2; 2; 1];
10 c = [0; 1/2; 1/2; 1];
11
12 end