MRKISS 2025-09-10
A tiny library with zero dependencies that aims to make it easy to use & experiment with explicit Runge-Kutta methods.
Loading...
Searching...
No Matches
mrkiss_eerk_verner_1978_6_5.f90
Go to the documentation of this file.
1! -*- Mode:F90; Coding:us-ascii-unix; fill-column:129 -*-
2!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.H.S.!!
3!>
4!! @file mrkiss_eerk_verner_1978_6_5.f90
5!! @author Mitch Richling http://www.mitchr.me/
6!! @brief Butcher tableau for Verner's 8 stage, Order (6,5) Runge-Kutta method (1978).@EOL
7!! @keywords ode ivp differential equation initial value problem rk
8!! @std F2023
9!! @see https://github.com/richmit/MRKISS
10!! @copyright
11!! @parblock
12!! Copyright (c) 2025, Mitchell Jay Richling <http://www.mitchr.me/> All rights reserved.
13!!
14!! Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
15!! conditions are met:
16!!
17!! 1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following
18!! disclaimer.
19!!
20!! 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following
21!! disclaimer in the documentation and/or other materials provided with the distribution.
22!!
23!! 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
24!! derived from this software without specific prior written permission.
25!!
26!! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
27!! INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28!! DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29!! EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
30!! USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31!! LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
32!! OF THE POSSIBILITY OF SUCH DAMAGE.
33!! @endparblock
34!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.H.E.!!
35
36!----------------------------------------------------------------------------------------------------------------------------------
37!> Butcher tableau for Verner's 8 stage, Order (6,5) Runge-Kutta method (1978)
38!!
39!! @image html eerk_verner_1978_6_5-stab.png
40!!
41!! @par IMO
42!! This is a good general method; however, I think mrkiss_eerk_verner_2010_6_5 should be preferred.
43!!
44!! @par Known Aliases
45!! 'ARKODE_VERNER_8_5_6' (SUNDIALS).
46!!
47!! @par Stability Image Links
48!! <a href="eerk_verner_1978_6_5-stab.png"> <img src="eerk_verner_1978_6_5-stab.png" width="256px"> </a>
49!! <a href="eerk_verner_1978_6_5-astab.png"> <img src="eerk_verner_1978_6_5-astab.png" width="256px"> </a>
50!! <a href="eerk_verner_1978_6_5-star1.png"> <img src="eerk_verner_1978_6_5-star1.png" width="256px"> </a>
51!! <a href="eerk_verner_1978_6_5-star2.png"> <img src="eerk_verner_1978_6_5-star2.png" width="256px"> </a>
52!!
53!! @par References:
54!! - Verner (1978); Explicit Runge-Kutta methods with estimates of the local truncation error; SIAM J. Numer. Anal 15;
55!! (4)1; p772-790; zotero://select/items/0_9HLA6P9B
56!!
58 use mrkiss_config, only: rk
59 implicit none
60 public
61 !> The order of the overall method
62 integer, parameter :: s = 8
63 !> Number of methods
64 integer, parameter :: m = 2
65 !> The @f$\mathbf{a}@f$ matrix for the Butcher Tableau. @hideinitializer @hideinlinesource
66 real(kind=rk), parameter :: a(s,s) = reshape([ 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, &
67 & 3026340000.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, &
68 & 968428800.0_rk, 3873715200.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, &
69 & 15131700000.0_rk, -48421440000.0_rk, 45395100000.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, &
70 & -46813696875.0_rk, 166448700000.0_rk, -120580734375.0_rk, 16077431250.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, &
71 & 43579296000.0_rk, -145264320000.0_rk, 119125050000.0_rk, -5548290000.0_rk, 6266304000.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, &
72 & -10002658968.0_rk, 30021292800.0_rk, -17170029000.0_rk, -5883204960.0_rk, 4245136128.0_rk, 0.0_rk, 0.0_rk, 0.0_rk, &
73 & 36960057000.0_rk, -126684000000.0_rk, 102559875000.0_rk, -2494580000.0_rk, 5198688000.0_rk, 0.0_rk, 2618000000.0_rk, 0.0_rk], [s, s]) / 18158040000.0_rk
74 !> The @f$\mathbf{b}@f$ matrix for the Butcher Tableau. @hideinitializer @hideinlinesource
75 real(kind=rk), parameter :: b(s,m) = reshape([ 3251556.0_rk, 0.0_rk, 16905000.0_rk, 13849220.0_rk, 5854464.0_rk, 0.0_rk, 467500.0_rk, 3026340.0_rk, &
76 & 3522519.0_rk, 0.0_rk, 17206875.0_rk, 13548150.0_rk, 6120576.0_rk, 2955960.0_rk, 0.0_rk, 0.0_rk], [s, m]) / 43354080.0_rk
77 !> The @f$\mathbf{c}@f$ matrix for the Butcher Tableau. @hideinitializer @hideinlinesource
78 real(kind=rk), parameter :: c(s) = [ 0.0_rk, 5.0_rk, 8.0_rk, 20.0_rk, 25.0_rk, 30.0_rk, 2.0_rk, 30.0_rk] / 30.0_rk
79 !> The method orders
80 integer, parameter :: p(m) = [6, 5]
81 !> Number of stages for each method
82 integer, parameter :: se(m) = [8, 6]
Configuration for MRKISS == MR RK KISS == Mitch Richling's Runge-Kutta Keep It Simple Stupid.
integer, parameter, public rk
Real kind used across the library.
Butcher tableau for Verner's 8 stage, Order (6,5) Runge-Kutta method (1978)
integer, dimension(m), parameter p
The method orders.
real(kind=rk), dimension(s, s), parameter a
The matrix for the Butcher Tableau.
integer, parameter m
Number of methods.
real(kind=rk), dimension(s), parameter c
The matrix for the Butcher Tableau.
integer, parameter s
The order of the overall method.
integer, dimension(m), parameter se
Number of stages for each method.
real(kind=rk), dimension(s, m), parameter b
The matrix for the Butcher Tableau.