diff --git a/src/Containers/OhmmsSoA/PosTransformer.h b/src/Containers/OhmmsSoA/PosTransformer.h index 33ef4ec17f..f7cec870d0 100644 --- a/src/Containers/OhmmsSoA/PosTransformer.h +++ b/src/Containers/OhmmsSoA/PosTransformer.h @@ -129,12 +129,12 @@ void PosAoS2SoA(int nrows, int ncols, const T1* restrict iptr, int lda, T2* rest * * Modeled after blas/lapack for lda/ldb */ -template -void PosSoA2AoS(int nrows, int ncols, const T1* restrict iptr, int lda, T2* restrict out, int ldb) +template +void PosSoA2AoS(int nrows, int ncols, const T* restrict iptr, int lda, T* restrict out, int ldb) { - const T1* restrict x = iptr; - const T1* restrict y = iptr + lda; - const T1* restrict z = iptr + 2 * lda; + const T* restrict x = iptr; + const T* restrict y = iptr + lda; + const T* restrict z = iptr + 2 * lda; #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 2a46be72de..00ee232ae2 100644 --- a/src/Containers/OhmmsSoA/VectorSoaContainer.h +++ b/src/Containers/OhmmsSoA/VectorSoaContainer.h @@ -208,11 +208,9 @@ struct VectorSoaContainer * * The same sizes are assumed. */ - template - void copyIn(const Vector>& in) + void copyIn(const Vector>& in) { - //if(nLocal!=in.size()) resize(in.size()); - PosAoS2SoA(nLocal, D, reinterpret_cast(in.first_address()), D, myData, nGhosts); + PosAoS2SoA(nLocal, D, reinterpret_cast(in.first_address()), D, myData, nGhosts); } /** SoA to AoS : copy to Vector>