Skip to content

Commit

Permalink
Merge Pull Request #8556 from kyungjoo-kim/Trilinos/issue-8537
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Intrepid2 - issue 8357
PR Author: kyungjoo-kim
  • Loading branch information
trilinos-autotester authored Jan 9, 2021
2 parents 0a48e9d + 28723b8 commit 0b1cc10
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/intrepid2/unit-test/Shared/RealSpaceTools/test_01.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,12 @@ namespace Intrepid2 {
INTREPID2_TEST_ERROR_EXPECTED( rst::inverse(b_2_2, a_2_2) );
INTREPID2_TEST_ERROR_EXPECTED( rst::inverse(b_3_3, a_3_3) );

a_2_2(0, 0) = 1.0;
a_3_3(0, 0) = 1.0;
auto a_2_2_host = Kokkos::create_mirror_view(Kokkos::HostSpace(), a_2_2);
a_2_2_host(0, 0) = 1.0;
Kokkos::deep_copy(a_2_2,a_2_2_host);
auto a_3_3_host = Kokkos::create_mirror_view(Kokkos::HostSpace(), a_3_3);
a_3_3_host(0, 0) = 1.0;
Kokkos::deep_copy(a_3_3,a_3_3_host);
INTREPID2_TEST_ERROR_EXPECTED( rst::inverse(b_2_2, a_2_2) );
INTREPID2_TEST_ERROR_EXPECTED( rst::inverse(b_3_3, a_3_3) );

Expand All @@ -254,9 +258,13 @@ namespace Intrepid2 {
INTREPID2_TEST_ERROR_EXPECTED( rst::det(a_9, a_10_2_2) );
INTREPID2_TEST_ERROR_EXPECTED( rst::det(b_10, a_10_2_3) );
INTREPID2_TEST_ERROR_EXPECTED( rst::det(b_10_15, a_10_15_4_4) );
rst::Serial::det(a_10_15_4_4);
rst::Serial::det(a_2_3);
rst::Serial::det(a_4_4);

const auto a_10_15_4_4_host = Kokkos::create_mirror_view(Kokkos::HostSpace(), a_10_15_4_4);
const auto a_2_3_host = Kokkos::create_mirror_view(Kokkos::HostSpace(), a_2_3);
const auto a_4_4_host = Kokkos::create_mirror_view(Kokkos::HostSpace(), a_4_4);
rst::Serial::det(a_10_15_4_4_host);
rst::Serial::det(a_2_3_host);
rst::Serial::det(a_4_4_host);

*outStream << "-> matrix-vector product with multidimensional arrays:\n";

Expand Down

0 comments on commit 0b1cc10

Please sign in to comment.