Skip to content

Commit

Permalink
explicitly initialize the output buffer in `TEST(tHYDROCalcDt3D, Corr…
Browse files Browse the repository at this point in the history
…ectInputExpectCorrectOutput)`
  • Loading branch information
mabruzzo committed Feb 14, 2025
1 parent 1d51987 commit ce4db5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hydro/hydro_cuda_tests.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <stdlib.h>

#include <iostream>
#include <limits>
#include <string>
#include <vector>

Expand Down Expand Up @@ -43,6 +44,7 @@ TEST(tHYDROCalcDt3D, CorrectInputExpectCorrectOutput)
std::vector<Real> host_conserved(n_fields);
cuda_utilities::DeviceVector<Real> dev_conserved(n_fields);
cuda_utilities::DeviceVector<Real> dev_dti(1);
dev_dti.assign(std::numeric_limits<double>::lowest());
Real gamma = 5.0 / 3.0;

// Set values of conserved variables for input (host)
Expand Down

0 comments on commit ce4db5a

Please sign in to comment.