Skip to content

Commit

Permalink
Avoid QTFull.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Nov 11, 2023
1 parent 778cbcf commit 98f57f4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/BsplineFactory/SplineR2R.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void SplineR2R<ST>::applyRotation(const ValueMatrix& rot_mat, bool use_stored_co
for (IndexType j = 0; j < OrbitalSetSize; j++)
{
const auto cur_elem = Nsplines * i + j;
QTFull::ValueType newval{0.};
FullPrecValue newval{0.};
for (IndexType k = 0; k < OrbitalSetSize; k++)
{
const auto index = i * Nsplines + k;
Expand Down
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/RotatedSPOs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ void RotatedSPOs::evaluateDerivatives(ParticleSet& P,
void RotatedSPOs::evaluateDerivativesWF(ParticleSet& P,
const opt_variables_type& optvars,
Vector<ValueType>& dlogpsi,
const QTFull::ValueType& psiCurrent,
const FullPrecValue& psiCurrent,
const std::vector<ValueType>& Coeff,
const std::vector<size_t>& C2node_up,
const std::vector<size_t>& C2node_dn,
Expand Down
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/RotatedSPOs.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class RotatedSPOs : public SPOSet, public OptimizableObject
void evaluateDerivativesWF(ParticleSet& P,
const opt_variables_type& optvars,
Vector<ValueType>& dlogpsi,
const QTFull::ValueType& psiCurrent,
const FullPrecValue& psiCurrent,
const std::vector<ValueType>& Coeff,
const std::vector<size_t>& C2node_up,
const std::vector<size_t>& C2node_dn,
Expand Down
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/SPOSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ template<typename VALUE>
void SPOSetT<VALUE>::evaluateDerivativesWF(ParticleSet& P,

Check warning on line 369 in src/QMCWaveFunctions/SPOSet.cpp

View check run for this annotation

Codecov / codecov/patch

src/QMCWaveFunctions/SPOSet.cpp#L369

Added line #L369 was not covered by tests
const opt_variables_type& optvars,
Vector<Value>& dlogpsi,
const QMCTraits::QTFull::ValueType& psiCurrent,
const FullPrecValue& psiCurrent,
const std::vector<Value>& Coeff,
const std::vector<size_t>& C2node_up,
const std::vector<size_t>& C2node_dn,
Expand Down
4 changes: 2 additions & 2 deletions src/QMCWaveFunctions/SPOSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class SPOSetT
using ComplexType = Complex;
using Value = VALUE;
using ValueType = Value;
using FullPrecValue = ValueAlias<OHMMS_PRECISION_FULL, Value>;
using Grad = typename OrbitalSetTraits<VALUE>::GradType;
using GradType = Grad;
using ValueVector = typename OrbitalSetTraits<VALUE>::ValueVector;
Expand All @@ -77,7 +78,6 @@ class SPOSetT
using OffloadMWVArray = Array<Value, 2, OffloadPinnedAllocator<Value>>; // [walker, Orbs]
template<typename DT>
using OffloadMatrix = Matrix<DT, OffloadPinnedAllocator<DT>>;
using QTFull = QMCTraits::QTFull;

/** constructor */
SPOSetT(const std::string& my_name);
Expand Down Expand Up @@ -188,7 +188,7 @@ class SPOSetT
virtual void evaluateDerivativesWF(ParticleSet& P,
const opt_variables_type& optvars,
Vector<Value>& dlogpsi,
const QTFull::ValueType& psiCurrent, //FIXME it is still a compile time type
const FullPrecValue& psiCurrent, //FIXME it is still a compile time type
const std::vector<Value>& Coeff,
const std::vector<size_t>& C2node_up,
const std::vector<size_t>& C2node_dn,
Expand Down

0 comments on commit 98f57f4

Please sign in to comment.