From 38b1e9960a926254930f0975ee8b2be4b2d6d55e Mon Sep 17 00:00:00 2001 From: Bob Caddy Date: Wed, 13 Mar 2024 16:36:14 -0400 Subject: [PATCH] Formatting and fix a test --- src/reconstruction/pcm_cuda.h | 2 +- src/reconstruction/plmc_cuda_tests.cu | 1 - src/reconstruction/reconstruction_internals_tests.cu | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/reconstruction/pcm_cuda.h b/src/reconstruction/pcm_cuda.h index 68af49881..4a6585922 100644 --- a/src/reconstruction/pcm_cuda.h +++ b/src/reconstruction/pcm_cuda.h @@ -9,7 +9,7 @@ namespace reconstruction { - /*! +/*! * \brief Perform PCM reconstruction for a given cell * * \tparam direction The direction that the solve is taking place in. 0=X, 1=Y, 2=Z diff --git a/src/reconstruction/plmc_cuda_tests.cu b/src/reconstruction/plmc_cuda_tests.cu index 6b8e95021..7763e9509 100644 --- a/src/reconstruction/plmc_cuda_tests.cu +++ b/src/reconstruction/plmc_cuda_tests.cu @@ -148,7 +148,6 @@ TEST(tHYDROPlmcReconstructor, CorrectInputExpectCorrectOutput) cuda_utilities::DeviceVector dev_interface_right(host_grid.size(), true); // Launch kernel - std::cout << "direction = " << direction << std::endl; switch (direction) { case 0: hipLaunchKernelGGL(PLMC_cuda<0>, dev_grid.size(), 1, 0, 0, dev_grid.data(), dev_interface_left.data(), diff --git a/src/reconstruction/reconstruction_internals_tests.cu b/src/reconstruction/reconstruction_internals_tests.cu index 1ddf36b4e..857a7d70f 100644 --- a/src/reconstruction/reconstruction_internals_tests.cu +++ b/src/reconstruction/reconstruction_internals_tests.cu @@ -207,13 +207,13 @@ TEST(tALLReconstructionRiemannThreadGuard, CorrectInputExpectCorrectOutput) { // Test parameters int const order = 3; - int const nx = 5; - int const ny = 5; - int const nz = 5; + int const nx = 6; + int const ny = 6; + int const nz = 6; // fiducial data std::vector fiducial_vals(nx * ny * nz, 1); - fiducial_vals.at(62) = 0; + fiducial_vals.at(86) = 0; // loop through all values of the indices and check them for (int xid = 0; xid < nx; xid++) {