const DVec firstCoords = c1.toDVec();
const DVec secondCoords = c2.toDVec();
double result = 0;
- if constexpr (x) // NOLINT // NOLINTNEXTLINE
+ if constexpr (x)
{
result += (firstCoords[XX] - secondCoords[XX]) * (firstCoords[XX] - secondCoords[XX]);
}
- if constexpr (y) // NOLINT // NOLINTNEXTLINE
+ // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required
+ if constexpr (y)
{
result += (firstCoords[YY] - secondCoords[YY]) * (firstCoords[YY] - secondCoords[YY]);
}
- if constexpr (z) // NOLINT // NOLINTNEXTLINE
+ // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required
+ if constexpr (z)
{
result += (firstCoords[ZZ] - secondCoords[ZZ]) * (firstCoords[ZZ] - secondCoords[ZZ]);
}
- return result; // NOLINT
+ // NOLINTNEXTLINE(readability-misleading-indentation) remove when clang-tidy-13 is required
+ return result;
}
/*! \brief Calculate average displacement between sets of points
MsdCoordinateManager(const int numAtoms,
ArrayRef<const MoleculeData> molecules,
ArrayRef<const int> moleculeIndexMapping) :
- current_(numAtoms),
- previous_(numAtoms),
- molecules_(molecules),
- moleculeIndexMapping_(moleculeIndexMapping)
+ current_(numAtoms), previous_(numAtoms), molecules_(molecules), moleculeIndexMapping_(moleculeIndexMapping)
{
}
/*! \brief Prepares coordinates for the current frame.
/*! \brief Implements the gmx msd module
*
- * \todo Implement -(no)mw. Right now, all calculations are mass-weighted with -mol, and not otherwise
* \todo Implement -tensor for full MSD tensor calculation
* \todo Implement -rmcomm for total-frame COM removal
* \todo Implement -pdb for molecule B factors
- * \todo Implement -maxtau option proposed at https://gitlab.com/gromacs/gromacs/-/issues/3870
- * \todo Update help text as options are added and clarifications decided on at https://gitlab.com/gromacs/gromacs/-/issues/3869
*/
class Msd : public TrajectoryAnalysisModule
{