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