Skip to content

Commit

Permalink
Hush compiler warning and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-mk committed Nov 5, 2024
1 parent 486ae16 commit 4339f89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/TiledArray/math/linalg/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ inline DistArray<Tile, Policy> concat(const DistArray<Tile, Policy>& a,
case Concat::Both:
return TiledArray::concat<Tile, Policy>({a, b},
std::vector<bool>{true, true});
default:
TA_EXCEPTION("Invalid Concat value");
}
}

Expand Down Expand Up @@ -257,7 +259,7 @@ inline auto norm2(
TiledArray::math::linalg::detail::prefer_distributed(MATRIX)) \
return TiledArray::math::linalg::ttg::FN; \
if (get_linalg_backend() == LinearAlgebraBackend::ScaLAPACK) \
TA_EXCEPTION("ScaLAPACK lineear algebra backend is not available"); \
TA_EXCEPTION("ScaLAPACK linear algebra backend is not available"); \
return non_distributed::FN;
#elif !TILEDARRAY_HAS_TTG && TILEDARRAY_HAS_SCALAPACK
#define TILEDARRAY_MATH_LINALG_DISPATCH_W_TTG(FN, MATRIX) \
Expand All @@ -274,7 +276,7 @@ inline auto norm2(
if (get_linalg_backend() == LinearAlgebraBackend::TTG) \
TA_EXCEPTION("TTG linear algebra backend is not available"); \
if (get_linalg_backend() == LinearAlgebraBackend::ScaLAPACK) \
TA_EXCEPTION("ScaLAPACK lineear algebra backend is not available"); \
TA_EXCEPTION("ScaLAPACK linear algebra backend is not available"); \
return non_distributed::FN;
#endif // !TILEDARRAY_HAS_TTG && !TILEDARRAY_HAS_SCALAPACK
#endif // defined(TILEDARRAY_MATH_LINALG_DISPATCH_W_TTG)
Expand All @@ -301,7 +303,7 @@ inline auto norm2(
TA_EXCEPTION(TILEDARRAY_MATH_LINALG_DISPATCH_WO_TTG_STRINGIFY( \
FN) " is not provided by the TTG backend"); \
if (get_linalg_backend() == LinearAlgebraBackend::ScaLAPACK) \
TA_EXCEPTION("ScaLAPACK lineear algebra backend is not available"); \
TA_EXCEPTION("ScaLAPACK linear algebra backend is not available"); \
return non_distributed::FN;
#elif !TILEDARRAY_HAS_TTG && TILEDARRAY_HAS_SCALAPACK
#define TILEDARRAY_MATH_LINALG_DISPATCH_WO_TTG(FN, MATRIX) \
Expand All @@ -318,7 +320,7 @@ inline auto norm2(
if (get_linalg_backend() == LinearAlgebraBackend::TTG) \
TA_EXCEPTION("TTG linear algebra backend is not available"); \
if (get_linalg_backend() == LinearAlgebraBackend::ScaLAPACK) \
TA_EXCEPTION("ScaLAPACK lineear algebra backend is not available"); \
TA_EXCEPTION("ScaLAPACK linear algebra backend is not available"); \
return non_distributed::FN;
#endif // !TILEDARRAY_HAS_TTG && !TILEDARRAY_HAS_SCALAPACK
#endif // defined(TILEDARRAY_MATH_LINALG_DISPATCH_WO_TTG)
Expand Down

0 comments on commit 4339f89

Please sign in to comment.