add new constructor arguments in test instantiations

This commit is contained in:
Tobias Meyer Andersen 2024-07-08 11:35:26 +02:00
parent 844c7d9f67
commit 085c3a9b16

View File

@ -211,7 +211,7 @@ BOOST_AUTO_TEST_CASE(TestDiluApply)
// Initialize preconditioner objects // Initialize preconditioner objects
Dune::MultithreadDILU<Sp1x1BlockMatrix, B1x1Vec, B1x1Vec> cpudilu(matA); Dune::MultithreadDILU<Sp1x1BlockMatrix, B1x1Vec, B1x1Vec> cpudilu(matA);
auto gpudilu = CuDilu1x1(matA); auto gpudilu = CuDilu1x1(matA, true, true);
// Use the apply // Use the apply
gpudilu.apply(d_output, d_input); gpudilu.apply(d_output, d_input);
@ -235,7 +235,7 @@ BOOST_AUTO_TEST_CASE(TestDiluApplyBlocked)
// init matrix with 2x2 blocks // init matrix with 2x2 blocks
Sp2x2BlockMatrix matA = get2x2BlockTestMatrix(); Sp2x2BlockMatrix matA = get2x2BlockTestMatrix();
auto gpudilu = CuDilu2x2(matA); auto gpudilu = CuDilu2x2(matA, true, true);
Dune::MultithreadDILU<Sp2x2BlockMatrix, B2x2Vec, B2x2Vec> cpudilu(matA); Dune::MultithreadDILU<Sp2x2BlockMatrix, B2x2Vec, B2x2Vec> cpudilu(matA);
// create input/output buffers for the apply // create input/output buffers for the apply
@ -275,7 +275,7 @@ BOOST_AUTO_TEST_CASE(TestDiluInitAndUpdateLarge)
{ {
// create gpu dilu preconditioner // create gpu dilu preconditioner
Sp1x1BlockMatrix matA = get1x1BlockTestMatrix(); Sp1x1BlockMatrix matA = get1x1BlockTestMatrix();
auto gpudilu = CuDilu1x1(matA); auto gpudilu = CuDilu1x1(matA, true, true);
matA[0][0][0][0] = 11.0; matA[0][0][0][0] = 11.0;
matA[0][1][0][0] = 12.0; matA[0][1][0][0] = 12.0;