This function can be used to sort colvars according to their magnitudes.
Description of components
This function sorts its arguments according to their magnitudes. The lowest argument will be labelled label.1, the second lowest will be labelled label.2 and so on.
Examples
The following input tells plumed to print the distance of the closest and of the farthest atoms to atom 1, chosen among atoms from 2 to 5
Click on the labels of the actions for more information on what each action computes
the pair of atom that we are calculating the distance between.
=1,2 The DISTANCE action with label d12 calculates a single scalar valued13: DISTANCE
ATOMS
the pair of atom that we are calculating the distance between.
=1,3 The DISTANCE action with label d13 calculates a single scalar valued14: DISTANCE
ATOMS
the pair of atom that we are calculating the distance between.
=1,4 The DISTANCE action with label d14 calculates a single scalar valued15: DISTANCE
ATOMS
the pair of atom that we are calculating the distance between.
=1,5 The DISTANCE action with label d15 calculates a single scalar valuePRINT
ARG
compulsory keyword
the labels of the values that you would like to print to the file
=sort.1,sort.4 The PRINT action with label
Glossary of keywords and components
Description of components
The names of the components in this action will be customized in accordance with the contents of the input file. The largest value is called label.1th, the second largest label.2th, the third label.3th and so on