Skip to content

Commit

Permalink
Merge pull request #4802 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 26, 2023
2 parents 78340fd + 176d9e4 commit eff2ca0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/Containers/OhmmsSoA/PosTransformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ namespace qmcplusplus
*
* Modeled after blas/lapack for lda/ldb
*/
template<typename T1, typename T2>
void PosAoS2SoA(int nrows, int ncols, const T1* restrict iptr, int lda, T2* restrict out, int ldb)
template<typename T>
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
Expand Down
5 changes: 2 additions & 3 deletions src/Containers/OhmmsSoA/VectorSoaContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,9 @@ struct VectorSoaContainer
*
* The same sizes are assumed.
*/
template<typename T1>
void copyOut(Vector<TinyVector<T1, D>>& out) const
void copyOut(Vector<TinyVector<T, D>>& out) const
{
PosSoA2AoS(nLocal, D, myData, nGhosts, reinterpret_cast<T1*>(out.first_address()), D);
PosSoA2AoS(nLocal, D, myData, nGhosts, reinterpret_cast<T*>(out.first_address()), D);
}

/** return TinyVector<T,D>
Expand Down

0 comments on commit eff2ca0

Please sign in to comment.