39 integer*4:: order, stages
40 real*8,
dimension(stages,stages) :: a
41 real*8,
dimension(stages) :: b, c, a_low, b_low
43 a = 0; b = 0; c = 0; a_low = 0; b_low = 0;
58 write(*,
'(A)')
'RK scheme not implemented'
66 b(1) = 1.d0/6; b(2) = 2.d0/3; b(3) = 1.d0/6
68 a(3,1) = -1; a(3,2) = 2
74 write(*,
'(A)')
'RK scheme not implemented'
82 c(2) = 0.5; c(3) = 0.5; c(4) = 1
83 b(1) = 1.d0/6; b(2) = 1.d0/3; b(3) = 1.d0/3; b(4) = 1.d0/6
92 write(*,
'(A)')
'RK scheme not implemented'
101 write(*,
'(A)')
'RK scheme not implemented'
131 real*8,
dimension(stages,stages) :: a
132 real*8,
dimension(stages) :: b, c, a_low, b_low
145 b_low(stages) = b(stages)
148 if (b(i) .ne. 0.d0)
then
149 a_low(i) = (b(i-1) - b_low(i-1))/b(i);
151 a_low(i) = (a(i+1,i-1) - c(i))/b_low(i);
subroutine make_butcherarray(order, stages, a_low, b_low, c)
Makes Butcher array for Runge-Kutta scheme.
subroutine make_low_storage_coefficients(stages, a, b, c, a_low, b_low)
Computes Low-storage memory coefficients for Runge-Kutta scheme.