Skip to content

Commit

Permalink
__host__ __device__ apparently can't handle an return type
Browse files Browse the repository at this point in the history
  • Loading branch information
jhp-lanl committed Mar 3, 2025
1 parent 01c59d8 commit c667d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_modifier_floored_energy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ using EOS =
// temperature for the lookup is T_lookup. The energy for the lookup is given by
// e(rho, T_lookup) - e_offset
PORTABLE_INLINE_FUNCTION
auto diff_pressures(const int n_eos, EOS *v_EOS, const Real T_lookup,
const Real e_offset = 0., const Real rho_factor = 1.2) {
std::vector<Real> diff_pressures(const int n_eos, EOS *v_EOS, const Real T_lookup,
const Real e_offset = 0., const Real rho_factor = 1.2) {
// Create storage for relative diffs
std::vector<Real> P_rdiffs(n_eos); // zero initialized
const size_t bytes = n_eos * sizeof(Real);
Expand Down

0 comments on commit c667d49

Please sign in to comment.