Skip to content

Commit

Permalink
Fixes usage of templated type from parent in point in cell tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyweiss committed Oct 14, 2024
1 parent af983a8 commit 27552e8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/axom/quest/tests/quest_point_in_cell_mfem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ class PointInCell2DTest : public PointInCellTest<2, ExecSpace>
static constexpr int DIM = 2;
static constexpr int ELT_MULT_FAC = 4;

using typename PointInCellTest<2, ExecSpace>::mesh_tag;

protected:
virtual void SetUp()
{
Expand Down Expand Up @@ -786,9 +788,9 @@ class PointInCell2DTest : public PointInCellTest<2, ExecSpace>
// compute bounding boxes
this->m_boundingBoxes.resize(mesh->GetNE());
axom::quest::detail::PointInCellMeshWrapper<mesh_tag> meshWrapper(mesh);
meshWrapper.computeBoundingBoxes<DIM>(1. + 1e-8,
this->m_boundingBoxes.data(),
this->m_meshBoundingBox);
meshWrapper.template computeBoundingBoxes<DIM>(1. + 1e-8,
this->m_boundingBoxes.data(),
this->m_meshBoundingBox);
}

private:
Expand All @@ -808,6 +810,8 @@ class PointInCell3DTest : public PointInCellTest<3, ExecSpace>
static constexpr int DIM = 3;
static constexpr int ELT_MULT_FAC = 8;

using typename PointInCellTest<3, ExecSpace>::mesh_tag;

protected:
virtual void SetUp()
{
Expand Down Expand Up @@ -1009,9 +1013,9 @@ class PointInCell3DTest : public PointInCellTest<3, ExecSpace>
// compute bounding boxes
this->m_boundingBoxes.resize(mesh->GetNE());
axom::quest::detail::PointInCellMeshWrapper<mesh_tag> meshWrapper(mesh);
meshWrapper.computeBoundingBoxes<DIM>(1 + 1e-8,
this->m_boundingBoxes.data(),
this->m_meshBoundingBox);
meshWrapper.template computeBoundingBoxes<DIM>(1 + 1e-8,
this->m_boundingBoxes.data(),
this->m_meshBoundingBox);
}

private:
Expand Down

0 comments on commit 27552e8

Please sign in to comment.