INTERPOLATION: kappa parameter should be >= 1.
The kappa parameter is calculated from CFL value. It is a decreasing value with increasing CFL. However, to maintain the precision of MP limiter, it should be kept above 1. Therefore, instead of taking the min values between the user defined kappa and the one calculated from the CFL value, take its maximum. Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
ebd7f3ef59
commit
403a1e2f3f
@ -224,7 +224,7 @@ module interpolations
|
||||
|
||||
! calculate κ = (1 - ν) / ν
|
||||
!
|
||||
kappa = min(kappa, (1.0d+00 - cfl) / cfl)
|
||||
kappa = max(kappa, (1.0d+00 - cfl) / cfl)
|
||||
|
||||
! correct central weight
|
||||
!
|
||||
|
Loading…
x
Reference in New Issue
Block a user