Skip to content

Commit

Permalink
More fixes to headers. (Exawind#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Mar 14, 2022
1 parent 048a276 commit 2ea7ed0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
6 changes: 1 addition & 5 deletions amr-wind/core/FieldUtils.H
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ inline bool is_valid_field_name(const std::string& name)
{
// Else make sure that our guard is not in the last 8 characters
auto found = name.rfind("__FS_");
if (found != std::string::npos) {
return false;
}

return true;
return found == std::string::npos;
}

/** Return an AMReX coarse-to-fine field interpolation object based on
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/core/vs/tensor.H
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct TensorT
using const_iterator = const T*;
using Traits = DTraits<T>;

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE constexpr TensorT() {}
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE constexpr TensorT() = default;

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE constexpr TensorT(
const T& xx,
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/core/vs/vector.H
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct VectorT
using VType = VectorT<T>;

//! Construct a default vector, all components set to zero
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT() {}
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT() = default;

/** New vector given the three components
*/
Expand Down
3 changes: 2 additions & 1 deletion amr-wind/utilities/linear_interpolation.H
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ check_bounds(const It begin, const It end, const T& x)

if ((sz < 2) || (x < *begin)) {
return Index{0, Limits::LOWLIM};
} else if (x > *(begin + (sz - 1))) {
}
if (x > *(begin + (sz - 1))) {
return Index{sz - 1, Limits::UPLIM};
}

Expand Down

0 comments on commit 2ea7ed0

Please sign in to comment.