X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Flisted_forces%2Fpairs.cpp;h=064c837756c639b5c7da10f8d9c8566a9717cc69;hb=eb74bfa4c8a28798caf8cb5bb5fa922d87829d62;hp=4d2d7ae88238db4c13c0887bcc170d266ed0695d;hpb=7992d01cd70bc6895b131238bfff646c672d94e8;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/listed_forces/pairs.cpp b/src/gromacs/listed_forces/pairs.cpp index 4d2d7ae882..064c837756 100644 --- a/src/gromacs/listed_forces/pairs.cpp +++ b/src/gromacs/listed_forces/pairs.cpp @@ -242,6 +242,7 @@ static real free_energy_evaluate_single(real } sigma_pow[i] = sigma6[i]; } + // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required if constexpr (softcoreType == KernelSoftcoreType::Gapsys) { if ((c6[i] > 0) && (c12[i] > 0)) @@ -258,6 +259,7 @@ static real free_energy_evaluate_single(real } } + // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required if constexpr (softcoreType == KernelSoftcoreType::Beutler) { /* only use softcore if one of the states has a zero endstate - softcore is for avoiding infinities!*/ @@ -272,6 +274,7 @@ static real free_energy_evaluate_single(real alpha_coul_eff = scParams.alphaCoulomb; } } + // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required if constexpr (softcoreType == KernelSoftcoreType::Gapsys) { /* only use softcore if one of the states has a zero endstate - softcore is for avoiding infinities!*/ @@ -288,6 +291,7 @@ static real free_energy_evaluate_single(real } /* Loop over A and B states again */ + // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required for (i = 0; i < 2; i++) { fscal_elec[i] = 0; @@ -314,6 +318,7 @@ static real free_energy_evaluate_single(real r_coul = r; } + // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required if constexpr (softcoreType == KernelSoftcoreType::Gapsys) { if ((facel != 0) && (LFC[i] < 1)) @@ -333,6 +338,7 @@ static real free_energy_evaluate_single(real } } + // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required if ((softcoreType == KernelSoftcoreType::Gapsys) && (r < rQ)) { real rInvQ = one / rQ; @@ -397,6 +403,7 @@ static real free_energy_evaluate_single(real } } + // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required if ((softcoreType == KernelSoftcoreType::Gapsys) && (r < rLJ)) { // scaled values for c6 and c12 @@ -487,6 +494,7 @@ static real free_energy_evaluate_single(real dvdl_coul_sum += dvdl_elec[i]; dvdl_vdw_sum += dvdl_vdw[i]; } + // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required dvdl_coul_sum += velec[i] * DLF[i]; dvdl_vdw_sum += vvdw[i] * DLF[i]; if constexpr (softcoreType == KernelSoftcoreType::Beutler)