Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
shivupa committed Jul 31, 2021
1 parent 2fd2de8 commit 023f8c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
21 changes: 11 additions & 10 deletions src/QMCWaveFunctions/Jastrow/J1Spin.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ struct J1Spin : public WaveFunctionComponent
J1Spin(const J1Spin& rhs) = delete;

J1Spin(const J1Spin& rhs, ParticleSet& tqp)
: WaveFunctionComponent("J1Spin", rhs.myName), myTableID(rhs.myTableID),
: WaveFunctionComponent("J1Spin", rhs.myName),
myTableID(rhs.myTableID),
Nions(rhs.Nions),
Nelec(rhs.Nelec),
NumGroups(rhs.NumGroups),
Expand Down Expand Up @@ -363,9 +364,9 @@ struct J1Spin : public WaveFunctionComponent
for (int jg = 0; jg < NumGroups; ++jg)
{
auto gid = jg * NumTargetGroups + P.getGroupID(iat);
if (J1UniqueFunctors[gid])
curVat += J1UniqueFunctors[gid]->evaluateV(-1, Ions.first(jg), Ions.last(jg), dist.data(),
DistCompressed.data());
if (J1UniqueFunctors[gid])
curVat +=
J1UniqueFunctors[gid]->evaluateV(-1, Ions.first(jg), Ions.last(jg), dist.data(), DistCompressed.data());
}
}
else
Expand All @@ -392,8 +393,8 @@ struct J1Spin : public WaveFunctionComponent
{
auto gid = ig * NumTargetGroups + jg;
if (J1UniqueFunctors[gid] != nullptr)
curAt += J1UniqueFunctors[gid]->evaluateV(-1, Ions.first(ig), Ions.last(ig), dist.data(),
DistCompressed.data());
curAt +=
J1UniqueFunctors[gid]->evaluateV(-1, Ions.first(ig), Ions.last(ig), dist.data(), DistCompressed.data());
}
}
}
Expand Down Expand Up @@ -468,9 +469,9 @@ struct J1Spin : public WaveFunctionComponent
for (int jg = 0; jg < NumGroups; ++jg)
{
auto gid = NumTargetGroups * jg + P.getGroupID(iat);
if (J1UniqueFunctors[gid] )
J1UniqueFunctors[gid]->evaluateVGL(-1, Ions.first(jg), Ions.last(jg), dist.data(), U.data(), dU.data(),
d2U.data(), DistCompressed.data(), DistIndice.data());
if (J1UniqueFunctors[gid])
J1UniqueFunctors[gid]->evaluateVGL(-1, Ions.first(jg), Ions.last(jg), dist.data(), U.data(), dU.data(),
d2U.data(), DistCompressed.data(), DistIndice.data());
}
}
else
Expand Down Expand Up @@ -582,7 +583,7 @@ struct J1Spin : public WaveFunctionComponent

std::unique_ptr<WaveFunctionComponent> makeClone(ParticleSet& tqp) const override
{
auto cloned_J1Spin = std::make_unique<J1Spin<FT>>( *this, tqp);
auto cloned_J1Spin = std::make_unique<J1Spin<FT>>(*this, tqp);
return cloned_J1Spin;
}

Expand Down
3 changes: 1 addition & 2 deletions src/QMCWaveFunctions/Jastrow/RadialJastrowBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@

namespace qmcplusplus
{

// quick helper class to allow use of RPA
class RPAFunctor
{};
Expand Down Expand Up @@ -344,7 +343,7 @@ template<class RadFuncType, unsigned Implementation>
std::unique_ptr<WaveFunctionComponent> RadialJastrowBuilder::createJ1(xmlNodePtr cur)
{
ReportEngine PRE(ClassName, "createJ1(xmlNodePtr)");
using Real = typename RadFuncType::real_type;
using Real = typename RadFuncType::real_type;
using J1Type = typename JastrowTypeHelper<RadFuncType, Implementation>::J1Type;

XMLAttrString input_name(cur, "name");
Expand Down

0 comments on commit 023f8c4

Please sign in to comment.