Skip to content

Commit

Permalink
Fix class errors
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfgc committed Jul 24, 2023
1 parent e847a6e commit dbbd2c9
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/QMCWaveFunctions/SPOSetT.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ namespace qmcplusplus
{
class ResourceCollection;

class SPOSet;
template<class T>
class SPOSetT;
namespace testing
{
opt_variables_type& getMyVars(SPOSet& spo);
}
opt_variables_type& getMyVars(SPOSetT<float>& spo);
opt_variables_type& getMyVars(SPOSetT<double>& spo);
opt_variables_type& getMyVars(SPOSetT<std::complex<float>>& spo);
opt_variables_type& getMyVars(SPOSetT<std::complex<double>>& spo);
} // namespace testing


/** base class for Single-particle orbital sets
Expand Down Expand Up @@ -520,11 +524,11 @@ class SPOSetT : public QMCTraits

/** acquire a shared resource from collection
*/
virtual void acquireResource(ResourceCollection& collection, const RefVectorWithLeader<SPOSet>& spo_list) const {}
virtual void acquireResource(ResourceCollection& collection, const RefVectorWithLeader<SPOSetT<T>>& spo_list) const {}

/** return a shared resource to collection
*/
virtual void releaseResource(ResourceCollection& collection, const RefVectorWithLeader<SPOSet>& spo_list) const {}
virtual void releaseResource(ResourceCollection& collection, const RefVectorWithLeader<SPOSetT<T>>& spo_list) const {}

/** make a clone of itself
* every derived class must implement this to have threading working correctly.
Expand Down Expand Up @@ -564,7 +568,8 @@ class SPOSetT : public QMCTraits
friend opt_variables_type& testing::getMyVars(SPOSetT<std::complex<double>>& spo);
};

using SPOSetPtr = SPOSet*;
template<class T>
using SPOSetTPtr = SPOSetT<T>*;

} // namespace qmcplusplus
#endif

0 comments on commit dbbd2c9

Please sign in to comment.