From 176d9e4ca7899bb549b0ccf1621732fae87678f9 Mon Sep 17 00:00:00 2001 From: Steven Hahn Date: Thu, 26 Oct 2023 11:56:35 -0400 Subject: [PATCH] Remove unused template parameter Signed-off-by: Steven Hahn --- src/Containers/OhmmsSoA/PosTransformer.h | 10 +++++----- src/Containers/OhmmsSoA/VectorSoaContainer.h | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Containers/OhmmsSoA/PosTransformer.h b/src/Containers/OhmmsSoA/PosTransformer.h index f7cec870d0..3c85cda8bc 100644 --- a/src/Containers/OhmmsSoA/PosTransformer.h +++ b/src/Containers/OhmmsSoA/PosTransformer.h @@ -102,12 +102,12 @@ namespace qmcplusplus * * Modeled after blas/lapack for lda/ldb */ -template -void PosAoS2SoA(int nrows, int ncols, const T1* restrict iptr, int lda, T2* restrict out, int ldb) +template +void PosAoS2SoA(int nrows, int ncols, const T* restrict iptr, int lda, T* restrict out, int ldb) { - T2* restrict x = out; - T2* restrict y = out + ldb; - T2* restrict z = out + 2 * ldb; + T* restrict x = out; + T* restrict y = out + ldb; + T* restrict z = out + 2 * ldb; #if !defined(__ibmxl__) #pragma omp simd aligned(x, y, z: QMC_SIMD_ALIGNMENT) #endif diff --git a/src/Containers/OhmmsSoA/VectorSoaContainer.h b/src/Containers/OhmmsSoA/VectorSoaContainer.h index 00ee232ae2..5806818804 100644 --- a/src/Containers/OhmmsSoA/VectorSoaContainer.h +++ b/src/Containers/OhmmsSoA/VectorSoaContainer.h @@ -217,10 +217,9 @@ struct VectorSoaContainer * * The same sizes are assumed. */ - template - void copyOut(Vector>& out) const + void copyOut(Vector>& out) const { - PosSoA2AoS(nLocal, D, myData, nGhosts, reinterpret_cast(out.first_address()), D); + PosSoA2AoS(nLocal, D, myData, nGhosts, reinterpret_cast(out.first_address()), D); } /** return TinyVector