-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2267 from ParamThakkar123/feagin
Added Feagin Package
- Loading branch information
Showing
14 changed files
with
114 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name = "OrdinaryDiffEqFeagin" | ||
uuid = "101fe9f7-ebb6-4678-b671-3a81e7194747" | ||
authors = ["ParamThakkar123 <paramthakkar864@gmail.com>"] | ||
version = "1.0.0" | ||
|
||
[deps] | ||
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed" | ||
|
||
[extras] | ||
DiffEqDevTools = "f3b72e0c-5b89-59e1-b016-84e28bfd966d" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[compat] | ||
julia = "1.10" | ||
|
||
[targets] | ||
test = ["DiffEqDevTools", "Random", "SafeTestsets", "Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module OrdinaryDiffEqFeagin | ||
|
||
import OrdinaryDiffEq: alg_order, calculate_residuals!, | ||
initialize!, perform_step!, @unpack, unwrap_alg, | ||
calculate_residuals, | ||
OrdinaryDiffEqAlgorithm, | ||
OrdinaryDiffEqMutableCache, OrdinaryDiffEqConstantCache, | ||
OrdinaryDiffEqAdaptiveAlgorithm, CompiledFloats, uses_uprev, | ||
alg_cache, _vec, _reshape, @cache, isfsal, full_cache, | ||
constvalue, _unwrap_val, du_alias_or_new, | ||
explicit_rk_docstring, trivial_limiter!, | ||
_ode_interpolant!, _ode_addsteps! | ||
using DiffEqBase, FastBroadcast, Polyester, MuladdMacro, RecursiveArrayTools | ||
using DiffEqBase: @def, @tight_loop_macros | ||
using Static: False | ||
|
||
include("algorithms.jl") | ||
include("alg_utils.jl") | ||
include("feagin_tableaus.jl") | ||
include("feagin_caches.jl") | ||
include("feagin_rk_perform_step.jl") | ||
|
||
export Feagin10, Feagin12, Feagin14 | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
alg_order(alg::Feagin10) = 10 | ||
alg_order(alg::Feagin12) = 12 | ||
alg_order(alg::Feagin14) = 14 | ||
|
||
alg_adaptive_order(alg::Feagin10) = 8 | ||
alg_adaptive_order(alg::Feagin14) = 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
""" | ||
@article{feagin2012high, | ||
title={High-order explicit Runge-Kutta methods using m-symmetry}, | ||
author={Feagin, Terry}, | ||
year={2012}, | ||
publisher={Neural, Parallel \\& Scientific Computations} | ||
} | ||
Feagin10: Explicit Runge-Kutta Method | ||
Feagin's 10th-order Runge-Kutta method. | ||
""" | ||
Base.@kwdef struct Feagin10{StepLimiter} <: OrdinaryDiffEqAdaptiveAlgorithm | ||
step_limiter!::StepLimiter = trivial_limiter! | ||
end | ||
|
||
""" | ||
@article{feagin2012high, | ||
title={High-order explicit Runge-Kutta methods using m-symmetry}, | ||
author={Feagin, Terry}, | ||
year={2012}, | ||
publisher={Neural, Parallel \\& Scientific Computations} | ||
} | ||
Feagin12: Explicit Runge-Kutta Method | ||
Feagin's 12th-order Runge-Kutta method. | ||
""" | ||
Base.@kwdef struct Feagin12{StepLimiter} <: OrdinaryDiffEqAdaptiveAlgorithm | ||
step_limiter!::StepLimiter = trivial_limiter! | ||
end | ||
|
||
""" | ||
Feagin, T., “An Explicit Runge-Kutta Method of Order Fourteen,” Numerical | ||
Algorithms, 2009 | ||
Feagin14: Explicit Runge-Kutta Method | ||
Feagin's 14th-order Runge-Kutta method. | ||
""" | ||
Base.@kwdef struct Feagin14{StepLimiter} <: OrdinaryDiffEqAdaptiveAlgorithm | ||
step_limiter!::StepLimiter = trivial_limiter! | ||
end | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters