diff --git a/src/QMCDrivers/WFOpt/QMCCostFunctionBase.cpp b/src/QMCDrivers/WFOpt/QMCCostFunctionBase.cpp index 2f7548266b..fc6e7a6483 100644 --- a/src/QMCDrivers/WFOpt/QMCCostFunctionBase.cpp +++ b/src/QMCDrivers/WFOpt/QMCCostFunctionBase.cpp @@ -271,7 +271,7 @@ void QMCCostFunctionBase::reportParametersH5() if (ci_size > 0) { CI_Opt = true; - newh5 = RootName + ".opt.h5"; + newh5 = RootName + ".opt.h5"; *msg_stream << " " << std::endl; hdf_archive hout; hout.create(newh5, H5F_ACC_TRUNC); diff --git a/src/QMCDrivers/WFOpt/QMCCostFunctionBase.h b/src/QMCDrivers/WFOpt/QMCCostFunctionBase.h index 9abb7e2ef2..7394803cb2 100644 --- a/src/QMCDrivers/WFOpt/QMCCostFunctionBase.h +++ b/src/QMCDrivers/WFOpt/QMCCostFunctionBase.h @@ -68,7 +68,7 @@ class QMCCostFunctionBase : public CostFunctionBase, 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); diff --git a/src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimize.cpp b/src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimize.cpp index 35efc3aaa4..5c65f09cd7 100644 --- a/src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimize.cpp +++ b/src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimize.cpp @@ -1169,7 +1169,7 @@ bool QMCFixedSampleLinearOptimize::adaptive_three_shift_run() // find the best shift and the corresponding update direction const std::vector* 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)) { diff --git a/src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimizeBatched.cpp b/src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimizeBatched.cpp index cb5018e062..186e725575 100644 --- a/src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimizeBatched.cpp +++ b/src/QMCDrivers/WFOpt/QMCFixedSampleLinearOptimizeBatched.cpp @@ -1494,7 +1494,7 @@ bool QMCFixedSampleLinearOptimizeBatched::adaptive_three_shift_run() // find the best shift and the corresponding update direction const std::vector* 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)) diff --git a/src/QMCWaveFunctions/RotatedSPOs.cpp b/src/QMCWaveFunctions/RotatedSPOs.cpp index b5a7be0f34..0815484c5e 100644 --- a/src/QMCWaveFunctions/RotatedSPOs.cpp +++ b/src/QMCWaveFunctions/RotatedSPOs.cpp @@ -32,7 +32,7 @@ RotatedSPOs::RotatedSPOs(const std::string& my_name, std::unique_ptr&& s RotatedSPOs::~RotatedSPOs() {} - + void RotatedSPOs::setRotationParameters(const std::vector& param_list) { params = param_list; diff --git a/src/QMCWaveFunctions/VariableSet.h b/src/QMCWaveFunctions/VariableSet.h index ba299a5485..8845f9a7cd 100644 --- a/src/QMCWaveFunctions/VariableSet.h +++ b/src/QMCWaveFunctions/VariableSet.h @@ -48,7 +48,7 @@ enum */ struct VariableSet { - using real_type = qmcplusplus::QMCTraits::RealType; + using real_type = qmcplusplus::QMCTraits::RealType; using pair_type = std::pair; using index_pair_type = std::pair; diff --git a/src/QMCWaveFunctions/tests/test_variable_set.cpp b/src/QMCWaveFunctions/tests/test_variable_set.cpp index fa97dcf8eb..8e8b97932a 100644 --- a/src/QMCWaveFunctions/tests/test_variable_set.cpp +++ b/src/QMCWaveFunctions/tests/test_variable_set.cpp @@ -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);