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

Fix precision mishandling and more clang warning #2375

Merged
merged 3 commits into from
Apr 10, 2020
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion src/LongRange/EwaldHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ EwaldHandler::mRealType EwaldHandler::evaluate_vlr_k(mRealType k)
return uk;
}

EwaldHandler::mRealType EwaldHandler::evaluate_slab(mRealType z, const std::vector<int>& kshell,
EwaldHandler::mRealType EwaldHandler::evaluate_slab(pRealType z, const std::vector<int>& kshell,
const pComplexType* restrict eikr_i,
const pComplexType* restrict eikr_j)
{
Expand Down
4 changes: 2 additions & 2 deletions src/LongRange/EwaldHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ class EwaldHandler : public LRHandlerBase

/** evaluate k-dependent
*/
mRealType evaluate_slab(mRealType z,
mRealType evaluate_slab(pRealType z,
const std::vector<int>& kshell,
const pComplexType* restrict rk1,
const pComplexType* restrict rk2);
const pComplexType* restrict rk2) override;

/** evaluate k=0 term at z
* @param z distance in the slab direction
Expand Down
4 changes: 2 additions & 2 deletions src/LongRange/EwaldHandler3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class EwaldHandler3D : public LRHandlerBase
}

//This returns the stress derivative of Fk, except for the explicit volume dependence. The explicit volume dependence is factored away into V.
inline SymTensor<mRealType, OHMMS_DIM> evaluateLR_dstrain(TinyVector<mRealType, OHMMS_DIM> k, mRealType kmag)
inline SymTensor<mRealType, OHMMS_DIM> evaluateLR_dstrain(TinyVector<pRealType, OHMMS_DIM> k, pRealType kmag) override
{
SymTensor<mRealType, OHMMS_DIM> deriv_tensor = 0;

Expand All @@ -143,7 +143,7 @@ class EwaldHandler3D : public LRHandlerBase
}


inline SymTensor<mRealType, OHMMS_DIM> evaluateSR_dstrain(TinyVector<mRealType, OHMMS_DIM> r, mRealType rmag)
inline SymTensor<mRealType, OHMMS_DIM> evaluateSR_dstrain(TinyVector<pRealType, OHMMS_DIM> r, pRealType rmag) override
{
SymTensor<mRealType, OHMMS_DIM> deriv_tensor = 0;

Expand Down