Skip to content

Commit

Permalink
Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
shivupa committed Jul 26, 2021
1 parent ba14d31 commit 3ee5798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/QMCWaveFunctions/Jastrow/RadialJastrowBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ std::unique_ptr<WaveFunctionComponent> RadialJastrowBuilder::buildComponent(xmlN
// it's a one body jastrow factor
if (Jastfunction == "bspline")
{
if (SpinOpt.find("yes") < SpinOpt.size())
if (SpinOpt == "yes")
{
return createJ1Spin<BsplineFunctor<RealType>>(cur);
}
Expand All @@ -611,7 +611,7 @@ std::unique_ptr<WaveFunctionComponent> RadialJastrowBuilder::buildComponent(xmlN
else if (Jastfunction == "pade")
{
guardAgainstPBC();
if (SpinOpt.find("yes") < SpinOpt.size())
if (SpinOpt == "yes")
{
return createJ1Spin<PadeFunctor<RealType>>(cur);
}
Expand All @@ -628,7 +628,7 @@ std::unique_ptr<WaveFunctionComponent> RadialJastrowBuilder::buildComponent(xmlN
else if (Jastfunction == "shortrangecusp")
{
//guardAgainstPBC(); // is this needed?
if (SpinOpt.find("yes") < SpinOpt.size())
if (SpinOpt == "yes")
{
return createJ1Spin<ShortRangeCuspFunctor<RealType>>(cur);
}
Expand All @@ -639,7 +639,7 @@ std::unique_ptr<WaveFunctionComponent> RadialJastrowBuilder::buildComponent(xmlN
}
else if (Jastfunction == "user")
{
if (SpinOpt.find("yes") < SpinOpt.size())
if (SpinOpt == "yes")
{
return createJ1Spin<UserFunctor<RealType>>(cur);
}
Expand Down
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/tests/test_J1SpinOrbitalSoA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ TEST_CASE("J1 spin evaluate derivatives Jastrow", "[wavefunction]")

opt_variables_type active;
twf.checkInVariables(active);

active.removeInactive();
int nparam = active.size_of_active();
REQUIRE(nparam == 4);

Expand Down

0 comments on commit 3ee5798

Please sign in to comment.