@@ -522,8 +522,8 @@ TaskStatus DotProductLocal(const std::shared_ptr<MeshData<Real>> &md_a,
522522 pack_a.GetNBlocks () - 1 , 0 , nvars - 1 , kb.s , kb.e , jb.s , jb.e , ib.s , ib.e ,
523523 KOKKOS_LAMBDA (const int b, const int c, const int k, const int j, const int i,
524524 Real &lsum) {
525- const auto vol = pack_a.GetCoordinates (b).CellVolume (k, j, i);
526- lsum += pack_a (b, te, c, k, j, i) * pack_b (b, te, c, k, j, i) * vol * vol;
525+ // const auto vol = pack_a.GetCoordinates(b).CellVolume(k, j, i);
526+ lsum += pack_a (b, te, c, k, j, i) * pack_b (b, te, c, k, j, i); // * vol * vol;
527527 },
528528 Kokkos::Sum<Real>(gsum));
529529 adotb->val += gsum;
@@ -571,9 +571,9 @@ TaskStatus DoubleDotProductLocal(const std::shared_ptr<MeshData<Real>> &md_a,
571571 pack_a.GetNBlocks () - 1 , 0 , nvars - 1 , kb.s , kb.e , jb.s , jb.e , ib.s , ib.e ,
572572 KOKKOS_LAMBDA (const int b, const int c, const int k, const int j, const int i,
573573 summable_array_t <Real, 2 > &lsum) {
574- const auto vol = pack_a.GetCoordinates (b).CellVolume (k, j, i);
575- lsum[0 ] += pack_a (b, c, k, j, i) * pack_a (b, c, k, j, i) * vol * vol;
576- lsum[1 ] += pack_a (b, c, k, j, i) * pack_b (b, c, k, j, i) * vol * vol;
574+ // const auto vol = pack_a.GetCoordinates(b).CellVolume(k, j, i);
575+ lsum[0 ] += pack_a (b, c, k, j, i) * pack_a (b, c, k, j, i); // * vol * vol;
576+ lsum[1 ] += pack_a (b, c, k, j, i) * pack_b (b, c, k, j, i); // * vol * vol;
577577 },
578578 Kokkos::Sum<summable_array_t <Real, 2 >>(gsum));
579579 adotb->val += gsum;
0 commit comments