g1: GROUP ATOMS=1-10,10,9,8 REMOVE=8-10,20 SORT
g2: GROUP ATOMS=71-79,77,77,77 UNIQUE
c2a: COM ATOMS=70
c2b: COM ATOMS=g2 NOPBC
c1: COM   ATOMS=g1
c2: COM   ATOMS=c2a,c2b NOPBC

d1: DISTANCE ATOMS=1,10
d2: DISTANCE ATOMS=c1,50
d3: DISTANCE ATOMS=50,c2

RESTRAINT ARG=d2 AT=0.9 KAPPA=3.0
DUMPPROJECTIONS ARG=d1,d3 FILE=projections STRIDE=20

DEBUG logActivity

PRINT ...
  STRIDE=1
  ARG=d1,d2,d3
  FILE=COLVAR FMT=%6.3f
... PRINT

ENDPLUMED

