aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_SFORB.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-05-07 22:13:33 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-05-07 22:14:19 +0200
commit92bd33824bde6b6b21bfc7e30953092a74d3cce5 (patch)
treebb2e08ef15d8a4f4f7b04cf4f5312ec861ec1d1c /tests/testthat/test_SFORB.R
parent67c8163487e776e9a378c9dfcd39c74f6e6bc507 (diff)
Another overhaul of analytical solutions
Still in preparation for analytical solutions of coupled models
Diffstat (limited to 'tests/testthat/test_SFORB.R')
-rw-r--r--tests/testthat/test_SFORB.R8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/testthat/test_SFORB.R b/tests/testthat/test_SFORB.R
index ad9881a8..4fb736ec 100644
--- a/tests/testthat/test_SFORB.R
+++ b/tests/testthat/test_SFORB.R
@@ -15,16 +15,20 @@ test_that("Fitting the SFORB model is equivalent to fitting DFOP", {
use_of_ff = "max", quiet = TRUE)
SFORB_SFO <- mkinmod(parent = mkinsub("SFORB", "M1"),
M1 = mkinsub("SFO"),
+ use_of_ff = "min", quiet = TRUE)
+ SFORB_SFO_ff <- mkinmod(parent = mkinsub("SFORB", "M1"),
+ M1 = mkinsub("SFO"),
use_of_ff = "max", quiet = TRUE)
- SFORB_SFO$coefmat
-
f_dfop_sfo <- mkinfit(DFOP_SFO, DFOP_par_c, quiet = TRUE)
f_sforb_sfo <- mkinfit(SFORB_SFO, DFOP_par_c, quiet = TRUE)
+ f_sforb_sfo_ff <- mkinfit(SFORB_SFO_ff, DFOP_par_c, quiet = TRUE)
f_sforb_sfo_eigen <- mkinfit(SFORB_SFO, DFOP_par_c, solution_type = "eigen", quiet = TRUE)
expect_equivalent(endpoints(f_sforb_sfo)$distimes, endpoints(f_dfop_sfo)$distimes,
tolerance = 1e-6)
+ expect_equivalent(endpoints(f_sforb_sfo_ff)$distimes, endpoints(f_dfop_sfo)$distimes,
+ tolerance = 1e-6)
expect_equivalent(endpoints(f_sforb_sfo_eigen)$distimes, endpoints(f_dfop_sfo)$distimes,
tolerance = 1e-6)
})

Contact - Imprint