Skip to content

Commit

Permalink
Fixing issues with these tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Mullowney authored and Paul Mullowney committed Aug 30, 2023
1 parent a7bcc39 commit 401ff07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/gcl/MeshVelocityAlg.C
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ MeshVelocityAlg<AlgTraits>::MeshVelocityAlg(Realm& realm, stk::mesh::Part* part)
elemData_.add_gathered_nodal_field(meshDispN_, AlgTraits::nDim_);

elemData_.add_master_element_call(SCS_AREAV, CURRENT_COORDINATES);
meSCS_->general_shape_fcn(
auto* hostMeSCS =
MasterElementRepo::get_surface_master_element_on_host(AlgTraits::topo_);
hostMeSCS->general_shape_fcn(
NUM_IP, isoParCoords_, isoCoordsShapeFcnHostView_.data());
Kokkos::deep_copy(isoCoordsShapeFcnDeviceView_, isoCoordsShapeFcnHostView_);

Expand Down
4 changes: 2 additions & 2 deletions unit_tests/gcl/UnitTestGCL.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "gcl/UnitTestGCL.h"

#ifndef KOKKOS_ENABLE_GPU
//#ifndef KOKKOS_ENABLE_GPU

namespace {

Expand Down Expand Up @@ -342,4 +342,4 @@ TEST_F(GCLTest, mesh_airy_waves)
compute_absolute_error();
}

#endif // KOKKOS_ENABLE_GPU
//#endif // KOKKOS_ENABLE_GPU
4 changes: 2 additions & 2 deletions unit_tests/gcl/UnitTestMeshVelocityAlg.C
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "UnitTestRealm.h"
#include "UnitTestUtils.h"

#ifndef KOKKOS_ENABLE_GPU
//#ifndef KOKKOS_ENABLE_GPU

namespace {

Expand Down Expand Up @@ -476,4 +476,4 @@ TEST_F(TestKernelHex8Mesh, mesh_velocity_y_rot_scs_center)
} // namespace =::hex8_golds_y_rot::mesh_velocity;
}

#endif // KOKKOS_ENABLE_GPU
//#endif // KOKKOS_ENABLE_GPU

0 comments on commit 401ff07

Please sign in to comment.