Continuation lines

If your input lines get very long then editing them using vi and other such text editors becomes a massive pain in the arse.

We at PLUMED are aware of this fact and thus have provided a way of doing line continuations so as to make your life that much easier - aren't we kind? Well no not really, we have to use this code too. Anyway, you can do continuations by using the "..." syntax as this makes this:

Click on the labels of the actions for more information on what each action computes

dist:DISTANCESATOMS1=1,300the atoms involved in each of the distances you wish to calculate.ATOMS2=1,400the atoms involved in each of the distances you wish to calculate.ATOMS3=1,500the atoms involved in each of the distances you wish to calculate.

(see DISTANCES)

equivalent to this:

Click on the labels of the actions for more information on what each action computes

dist:DISTANCES ... # we can also insert comments hereATOMS1=1,300 # multiple kewords per line are allowedthe atoms involved in each of the distances you wish to calculate.ATOMS2=1,400the atoms involved in each of the distances you wish to calculate.ATOMS3=1,500 #empty lines are also allowed ...the atoms involved in each of the distances you wish to calculate.

Notice that the closing `...`

is followed by the word `DISTANCES`

. This is optional, but might be useful to find more easily which is the matching start of the statement. The following is equally correct

Click on the labels of the actions for more information on what each action computes

dist:DISTANCES ... # we can also insert comments hereATOMS1=1,300 # multiple kewords per line are allowedthe atoms involved in each of the distances you wish to calculate.ATOMS2=1,400the atoms involved in each of the distances you wish to calculate.ATOMS3=1,500 #empty lines are also allowed ...the atoms involved in each of the distances you wish to calculate.

Notice that PLUMED makes a check that the word following the closing `...`

is actually identical to the first word in the line with the first `...`

. If not, it will throw an error. Also notice that you might put more than one word in the first line. E.g.

Click on the labels of the actions for more information on what each action computes

dist:DISTANCES ... # we can also insert comments hereATOMS1=1,300 # multiple kewords per line are allowedthe atoms involved in each of the distances you wish to calculate.ATOMS2=1,400the atoms involved in each of the distances you wish to calculate.ATOMS3=1,500 #empty lines are also allowed ...the atoms involved in each of the distances you wish to calculate.

or, equivalently,

Click on the labels of the actions for more information on what each action computes

dist:DISTANCES ... # we can also insert comments hereATOMS1=1,300 # multiple kewords per line are allowedthe atoms involved in each of the distances you wish to calculate.ATOMS2=1,400the atoms involved in each of the distances you wish to calculate.ATOMS3=1,500 #empty lines are also allowed ...the atoms involved in each of the distances you wish to calculate.