Skip to content

Commit

Permalink
Merge branch 'develop' into walker_log_timer
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo authored Feb 10, 2025
2 parents caf12e3 + 0440704 commit 3f6eeee
Show file tree
Hide file tree
Showing 7 changed files with 274 additions and 213 deletions.
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/BsplineFactory/SplineR2R.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,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;
FullPrecValueType newval{0.};
FullPrecValue newval{0.};
for (IndexType k = 0; k < OrbitalSetSize; k++)
{
const auto index = i * Nsplines + k;
Expand Down
6 changes: 3 additions & 3 deletions src/QMCWaveFunctions/Fermion/DiracDeterminantBatched.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void DiracDeterminantBatched<PL, VT, FPVT>::mw_ratioGrad(const RefVectorWithLead
UpdateEngine::mw_getInvRow(engine_list, wfc_leader.mw_res_handle_.getResource().engine_rsc, mw_res.psiMinv_refs,
WorkingIndex, !Phi->isOMPoffload());

phi_vgl_v.resize(DIM_VGL, wfc_list.size(), NumOrbitals);
phi_vgl_v.resize(SPOSet::DIM_VGL, wfc_list.size(), NumOrbitals);
ratios_local.resize(wfc_list.size());
grad_new_local.resize(wfc_list.size());

Expand Down Expand Up @@ -387,7 +387,7 @@ void DiracDeterminantBatched<PL, VT, FPVT>::mw_ratioGradWithSpin(
UpdateEngine::mw_getInvRow(engine_list, wfc_leader.mw_res_handle_.getResource().engine_rsc, mw_res.psiMinv_refs,
WorkingIndex, !Phi->isOMPoffload());

phi_vgl_v.resize(DIM_VGL, wfc_list.size(), NumOrbitals);
phi_vgl_v.resize(SPOSet::DIM_VGL, wfc_list.size(), NumOrbitals);
ratios_local.resize(wfc_list.size());
grad_new_local.resize(wfc_list.size());
spingrad_new_local.resize(wfc_list.size());
Expand Down Expand Up @@ -770,7 +770,7 @@ void DiracDeterminantBatched<PL, VT, FPVT>::mw_calcRatio(const RefVectorWithLead
UpdateEngine::mw_getInvRow(engine_list, wfc_leader.mw_res_handle_.getResource().engine_rsc, mw_res.psiMinv_refs,
WorkingIndex, !Phi->isOMPoffload());

phi_vgl_v.resize(DIM_VGL, wfc_list.size(), NumOrbitals);
phi_vgl_v.resize(SPOSet::DIM_VGL, wfc_list.size(), NumOrbitals);
ratios_local.resize(wfc_list.size());
grad_new_local.resize(wfc_list.size());

Expand Down
4 changes: 3 additions & 1 deletion src/QMCWaveFunctions/Fermion/SlaterDetBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ class BackflowTransformation;
class DiracDeterminantBase;
class MultiSlaterDetTableMethod;
struct CSFData;
class SPOSet;
template<typename T>
class SPOSetT;
using SPOSet = SPOSetT<QMCTraits::QTBase::ValueType>;
class SPOSetBuilder;
class SPOSetBuilderFactory;
struct ci_configuration;
Expand Down
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/RotatedSPOs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,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 @@ -194,7 +194,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
Loading

0 comments on commit 3f6eeee

Please sign in to comment.