diff +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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+time/+rkparameters/rk4.m	Thu Mar 10 16:54:26 2022 +0100
@@ -0,0 +1,12 @@
+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
\ No newline at end of file