|
447 | 447 | # allocations for in-place implementations |
448 | 448 | alloc1 = @allocated(solve(linmod_ODE_ip, Tsit5())) |
449 | 449 | alloc2 = @allocated(solve(linmod_PDS_ip, Tsit5())) |
450 | | - @test 0.95 < alloc1 / alloc2 < 1.05 |
| 450 | + @test 0.9 < alloc1 / alloc2 < 1.1 |
451 | 451 | end |
452 | 452 |
|
453 | 453 | @testset "PDSProblem error handling" begin |
@@ -531,10 +531,10 @@ end |
531 | 531 | alloc3 = @allocated(solve(linmod_PDS_ip_2, Tsit5())) |
532 | 532 | alloc4 = @allocated(solve(linmod_ConsPDS_ip, Tsit5())) |
533 | 533 | alloc5 = @allocated(solve(linmod_ConsPDS_ip_2, Tsit5())) |
534 | | - @test 0.95 < alloc1 / alloc2 < 1.05 |
535 | | - @test 0.95 < alloc1 / alloc3 < 1.05 |
536 | | - @test 0.95 < alloc1 / alloc4 < 1.05 |
537 | | - @test 0.95 < alloc1 / alloc5 < 1.05 |
| 534 | + @test 0.9 < alloc1 / alloc2 < 1.1 |
| 535 | + @test 0.9 < alloc1 / alloc3 < 1.1 |
| 536 | + @test 0.9 < alloc1 / alloc4 < 1.1 |
| 537 | + @test 0.9 < alloc1 / alloc5 < 1.1 |
538 | 538 | end |
539 | 539 |
|
540 | 540 | @testset "Lotka-Volterra" begin |
|
591 | 591 | alloc1 = @allocated(solve(lotvol_f_ip, Tsit5())) |
592 | 592 | alloc2 = @allocated(solve(lotvol_PDS_ip, Tsit5())) |
593 | 593 | alloc3 = @allocated(solve(lotvol_PDS_ip_2, Tsit5())) |
594 | | - @test 0.95 < alloc1 / alloc2 < 1.05 |
595 | | - @test 0.95 < alloc1 / alloc3 < 1.05 |
| 594 | + @test 0.9 < alloc1 / alloc2 < 1.1 |
| 595 | + @test 0.9 < alloc1 / alloc3 < 1.1 |
596 | 596 | end |
597 | 597 |
|
598 | 598 | @testset "Linear advection" begin |
@@ -660,11 +660,11 @@ end |
660 | 660 | alloc4 = @allocated(solve(linear_advection_fd_upwind_PDS_sparse_2, Tsit5())) |
661 | 661 | alloc5 = @allocated(solve(linear_advection_fd_upwind_ConsPDS_sparse, Tsit5())) |
662 | 662 | alloc6 = @allocated(solve(linear_advection_fd_upwind_ConsPDS_sparse_2, Tsit5())) |
663 | | - @test 0.95 < alloc1 / alloc2 < 1.05 |
664 | | - @test 0.95 < alloc1 / alloc3 < 1.05 |
665 | | - @test 0.95 < alloc1 / alloc4 < 1.05 |
666 | | - @test 0.95 < alloc1 / alloc5 < 1.05 |
667 | | - @test 0.95 < alloc1 / alloc6 < 1.05 |
| 663 | + @test 0.9 < alloc1 / alloc2 < 1.1 |
| 664 | + @test 0.9 < alloc1 / alloc3 < 1.1 |
| 665 | + @test 0.9 < alloc1 / alloc4 < 1.1 |
| 666 | + @test 0.9 < alloc1 / alloc5 < 1.1 |
| 667 | + @test 0.9 < alloc1 / alloc6 < 1.1 |
668 | 668 | end |
669 | 669 |
|
670 | 670 | # Here we check that PDSFunctions and ConservativePDSFunctions can be evaluated |
|
929 | 929 | end |
930 | 930 |
|
931 | 931 | # non-stiff conservative problems (in-place) |
932 | | - # Requires autodiff=false |
| 932 | + # Requires autodiff = false |
933 | 933 | probs = (prob_pds_linmod_inplace,) |
934 | 934 | algs = (Euler(), ImplicitEuler(autodiff = false), Tsit5(), |
935 | 935 | Rosenbrock23(autodiff = false), SDIRK2(autodiff = false), |
|
974 | 974 | # Bertolazzi problem |
975 | 975 | # Did not find any solver configuration to compute a reasonable solution and pass tests. |
976 | 976 | # - constant time stepping requires very small dt |
977 | | - # - adaptive time stepping generates solutions with different number of time steps |
| 977 | + # - adaptive time stepping generates solutions with different number of time steps |
978 | 978 | # |
979 | 979 | # Nevertheless, the following code shows that the same problem is solved in each case |
980 | 980 | # prob = prob_pds_bertolazzi |
@@ -1078,7 +1078,7 @@ end |
1078 | 1078 | dt = 0.1) |
1079 | 1079 | end |
1080 | 1080 |
|
1081 | | - # Here we check that algorithms which accept input parameters return constants |
| 1081 | + # Here we check that algorithms which accept input parameters return constants |
1082 | 1082 | # of the same type as the inputs |
1083 | 1083 | @testset "Constant types" begin |
1084 | 1084 | algs = (MPRK22(0.5f0), MPRK22(1.0f0), MPRK22(2.0f0), MPRK43I(1.0f0, 0.5f0), |
|
0 commit comments