Skip to content

Commit

Permalink
Merge pull request #554 from hvdijk/refract-mixed-precision
Browse files Browse the repository at this point in the history
refract: match argument types earlier.
  • Loading branch information
hvdijk authored Oct 8, 2024
2 parents 5df3663 + f835037 commit 6a99ac4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <abacus/abacus_type_traits.h>

namespace {
template <typename T, typename U>
T refract(const T i, const T n, const U eta) {
template <typename T>
T refract(const T i, const T n, const typename TypeTraits<T>::ElementType eta) {
typedef typename TypeTraits<T>::ElementType ElementType;

const ElementType intermediate = __abacus_dot(n, i);
Expand Down

0 comments on commit 6a99ac4

Please sign in to comment.