Commit
d4610e91e7815756f728e68785b58b884aead153 introduced a
clang-tidy warning in AWH tests with integer used in place of
bool argument (modernize-use-bool-literals,-warnings-as-errors).
This removes these warnings.
auto awhDimBuffer = awhDimParamSerialized();
auto awhDimArrayRef = gmx::arrayRefFromArray(&awhDimBuffer, 1);
params_ = std::make_unique<AwhTestParameters>(getAwhTestParameters(
auto awhDimBuffer = awhDimParamSerialized();
auto awhDimArrayRef = gmx::arrayRefFromArray(&awhDimBuffer, 1);
params_ = std::make_unique<AwhTestParameters>(getAwhTestParameters(
- eawhgrowth, eawhpotential, awhDimArrayRef, 0, 0.4, false, 0.5, 0));
+ eawhgrowth, eawhpotential, awhDimArrayRef, false, 0.4, false, 0.5, 0));
seed_ = params_->awhParams.seed();
seed_ = params_->awhParams.seed();
const AwhTestParameters params = getAwhTestParameters(AwhHistogramGrowthType::ExponentialLinear,
AwhPotentialType::Convolved,
awhDimArrayRef,
const AwhTestParameters params = getAwhTestParameters(AwhHistogramGrowthType::ExponentialLinear,
AwhPotentialType::Convolved,
awhDimArrayRef,
coordinateProvider, coordIndex, origin, end, period, diffusion));
}
params_ = std::make_unique<AwhTestParameters>(getAwhTestParameters(
coordinateProvider, coordIndex, origin, end, period, diffusion));
}
params_ = std::make_unique<AwhTestParameters>(getAwhTestParameters(
- AwhHistogramGrowthType::Linear, AwhPotentialType::Convolved, awhDimParameters, 1, 1.0, false, 0.5, 0));
+ AwhHistogramGrowthType::Linear, AwhPotentialType::Convolved, awhDimParameters, true, 1.0, false, 0.5, 0));
const AwhParams& awhParams = params_->awhParams;
const AwhBiasParams& awhBiasParams = awhParams.awhBiasParams()[0];
std::vector<DimParams> dimParams;
const AwhParams& awhParams = params_->awhParams;
const AwhBiasParams& awhBiasParams = awhParams.awhBiasParams()[0];
std::vector<DimParams> dimParams;