comparison +time/+rkparameters/rk4.m @ 1331:60c875c18de3 feature/D2_boundary_opt

Merge with feature/poroelastic for Elastic schemes
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 10 Mar 2022 16:54:26 +0100
parents ee4cfb37534d
children
comparison
equal deleted inserted replaced
1330:855871e0b852 1331:60c875c18de3
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