Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused template parameter #4786

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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