Skip to content

Commit

Permalink
Merge pull request #4786 from quantumsteve/unused_template_parameter
Browse files Browse the repository at this point in the history
Remove unused template parameter
  • Loading branch information
ye-luo authored Oct 20, 2023
2 parents de0975a + 5ed0234 commit 148d66d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/Containers/OhmmsSoA/PosTransformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename T1, typename T2>
void PosSoA2AoS(int nrows, int ncols, const T1* restrict iptr, int lda, T2* restrict out, int ldb)
template<typename T>
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
Expand Down
6 changes: 2 additions & 4 deletions src/Containers/OhmmsSoA/VectorSoaContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,9 @@ struct VectorSoaContainer
*
* The same sizes are assumed.
*/
template<typename T1>
void copyIn(const Vector<TinyVector<T1, D>>& in)
void copyIn(const Vector<TinyVector<T, D>>& in)
{
//if(nLocal!=in.size()) resize(in.size());
PosAoS2SoA(nLocal, D, reinterpret_cast<const T1*>(in.first_address()), D, myData, nGhosts);
PosAoS2SoA(nLocal, D, reinterpret_cast<const T*>(in.first_address()), D, myData, nGhosts);
}

/** SoA to AoS : copy to Vector<TinyVector<>>
Expand Down

0 comments on commit 148d66d

Please sign in to comment.