Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rprospero committed Nov 2, 2023
1 parent 81c5b52 commit 326ae8d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/classes/serializablePairPotential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ SerialisedValue SerializablePairPotential::serialise() const
{"autoChargeSource", autoCharge_},
{"coulombTruncation", PairPotential::coulombTruncationSchemes().serialise(coulombTruncationScheme_)},
{"shortRangeTruncation", PairPotential::shortRangeTruncationSchemes().serialise(shortRangeTruncationScheme_)}};
if (!autoCharge_) pairPotentials["autoChargeSource"] = false;
if (forceCharge_) pairPotentials["forceChargeSource"] = true;
if (atomTypeChargeSource_) pairPotentials["includeCoulomb"] = true;
if (!autoCharge_)
pairPotentials["autoChargeSource"] = false;
if (forceCharge_)
pairPotentials["forceChargeSource"] = true;
if (atomTypeChargeSource_)
pairPotentials["includeCoulomb"] = true;
for (auto &atomType : atomTypes_)
pairPotentials["atomTypes"][atomType->name().data()] = atomType->serialise();
return pairPotentials;
Expand Down

0 comments on commit 326ae8d

Please sign in to comment.