Skip to content

Commit d5c38a7

Browse files
committed
fixed bug in constructors of MPRK schemes
1 parent 628d684 commit d5c38a7

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/mprk.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ function MPRK22(alpha; linsolve = LUFactorization(),
383383
else # assume small_constant isa Function
384384
small_constant_function = small_constant
385385
end
386-
MPRK22{typeof(alpha), typeof(linsolve)}(alpha, linsolve, small_constant_function)
386+
MPRK22{typeof(alpha), typeof(linsolve), typeof(small_constant_function)}(alpha,
387+
linsolve,
388+
small_constant_function)
387389
end
388390

389391
alg_order(::MPRK22) = 2
@@ -753,7 +755,9 @@ function MPRK43I(alpha, beta; linsolve = LUFactorization(),
753755
else # assume small_constant isa Function
754756
small_constant_function = small_constant
755757
end
756-
MPRK43I{typeof(alpha), typeof(linsolve)}(alpha, beta, linsolve, small_constant_function)
758+
MPRK43I{typeof(alpha), typeof(linsolve), typeof(small_constant_function)}(alpha, beta,
759+
linsolve,
760+
small_constant_function)
757761
end
758762

759763
alg_order(::MPRK43I) = 3
@@ -848,7 +852,9 @@ function MPRK43II(gamma; linsolve = LUFactorization(), small_constant = nothing)
848852
else # assume small_constant isa Function
849853
small_constant_function = small_constant
850854
end
851-
MPRK43II{typeof(gamma), typeof(linsolve)}(gamma, linsolve, small_constant_function)
855+
MPRK43II{typeof(gamma), typeof(linsolve), typeof(small_constant_function)}(gamma,
856+
linsolve,
857+
small_constant_function)
852858
end
853859

854860
alg_order(::MPRK43II) = 3

0 commit comments

Comments
 (0)