Commit a1bfb2b
committed
_compute_estimate: change order of T() and ^Q in denominator
Running a simple test
using Unitful: @u_str
import Interpolations as Ilib
import Interpolations
import FiniteDifferences as FDlib
tt = (0.0 : 0.01 : 1.1) .* u"s"
fn = 3u"J / s" .* tt
ii = Ilib.interpolate((tt,),fn, ComposedFunction(Ilib.Gridded, Ilib.Linear)())
cdm = FDlib.central_fdm(5,1)
@show dd = cdm(ii, 0.6u"s")
without this change in the order of operations causes the code to crash
in _limit_step, because of a dimension mismatch. This is a temporary "fix",
that actually not a fix. The given order of operations should really
work as-is...1 parent 311bf8a commit a1bfb2b
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
| |||
0 commit comments