Skip to content

Commit

Permalink
clang formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
camelto2 committed Nov 7, 2023
1 parent 8658d35 commit cf0c220
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/QMCDrivers/WFOpt/QMCCostFunctionBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void QMCCostFunctionBase::reportParametersH5()
if (ci_size > 0)
{
CI_Opt = true;
newh5 = RootName + ".opt.h5";
newh5 = RootName + ".opt.h5";
*msg_stream << " <Ci Coeffs saved in opt_coeffs=\"" << newh5 << "\">" << std::endl;
hdf_archive hout;
hout.create(newh5, H5F_ACC_TRUNC);
Expand Down
2 changes: 1 addition & 1 deletion src/QMCDrivers/WFOpt/QMCCostFunctionBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class QMCCostFunctionBase : public CostFunctionBase<QMCTraits::RealType>, public
SUM_INDEX_SIZE
};

using EffectiveWeight = QMCTraits::QTFull::RealType;
using EffectiveWeight = QMCTraits::QTFull::RealType;
using FullPrecRealType = QMCTraits::FullPrecRealType;
///Constructor.
QMCCostFunctionBase(ParticleSet& w, TrialWaveFunction& psi, QMCHamiltonian& h, Communicate* comm);
Expand Down
2 changes: 1 addition & 1 deletion src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ bool QMCFixedSampleLinearOptimize::adaptive_three_shift_run()

// find the best shift and the corresponding update direction
const std::vector<RealType>* bestDirection = 0;
int best_shift = -1;
int best_shift = -1;
for (int k = 0; k < costValues.size() && std::abs((initCost - initCost) / initCost) < max_relative_cost_change; k++)
if (is_best_cost(k, costValues, shifts_i, initCost) && good_update.at(k))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ bool QMCFixedSampleLinearOptimizeBatched::adaptive_three_shift_run()

// find the best shift and the corresponding update direction
const std::vector<RealType>* bestDirection = 0;
int best_shift = -1;
int best_shift = -1;
for (int k = 0;
k < costValues.size() && std::abs((initCost - initCost) / initCost) < options_LMY_.max_relative_cost_change; k++)
if (is_best_cost(k, costValues, shifts_i, initCost) && good_update.at(k))
Expand Down
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/RotatedSPOs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RotatedSPOs::RotatedSPOs(const std::string& my_name, std::unique_ptr<SPOSet>&& s

RotatedSPOs::~RotatedSPOs() {}


void RotatedSPOs::setRotationParameters(const std::vector<RealType>& param_list)
{
params = param_list;
Expand Down
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/VariableSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ enum
*/
struct VariableSet
{
using real_type = qmcplusplus::QMCTraits::RealType;
using real_type = qmcplusplus::QMCTraits::RealType;

using pair_type = std::pair<std::string, real_type>;
using index_pair_type = std::pair<std::string, int>;
Expand Down
2 changes: 1 addition & 1 deletion src/QMCWaveFunctions/tests/test_variable_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ TEST_CASE("VariableSet one", "[optimize]")
REQUIRE(vs.getIndex("first") == 0);
REQUIRE(vs.name(0) == "first");
double first_val_real = 1.123456789;
CHECK(std::real(vs[0] ) == Approx(first_val_real));
CHECK(vs[0] == Approx(first_val_real));

std::ostringstream o;
vs.print(o, 0, false);
Expand Down

0 comments on commit cf0c220

Please sign in to comment.