#CPQA DEPENDS hcn_md.inp

&FORCE_EVAL
  METHOD Quickstep
  &DFT
      BASIS_SET_FILE_NAME GTH_BASIS_SETS
      POTENTIAL_FILE_NAME GTH_POTENTIALS
      RESTART_FILE_NAME  hcn_md-RESTART.wfn
    &MGRID
      CUTOFF 50
    &END MGRID
    &QS
      EXTRAPOLATION_ORDER 3
    &END QS

    &SCF
      MAX_SCF 100
      EPS_SCF 1.0E-6
      SCF_GUESS RESTART
      &OT
        PRECONDITIONER FULL_SINGLE_INVERSE
        MINIMIZER DIIS
        N_DIIS 7
      &END OT

      &OUTER_SCF
        MAX_SCF 10
        EPS_SCF 1.0E-06
      &END OUTER_SCF
      &PRINT
        &RESTART
          LOG_PRINT_KEY
        &END
      &END
     &END SCF
     &XC
      &XC_FUNCTIONAL PADE
      &END XC_FUNCTIONAL
     &END XC
     &POISSON
       POISSON_SOLVER MT
       PERIODIC NONE
       &MT
       &END
     &END


  &END DFT

  &SUBSYS
    &CELL
      ABC 8.00 8.00 8.00
      PERIODIC NONE
    &END CELL

    &COORD
        N          0.00     0.000    0.0
        C          1.220   -0.000    0.0
        H          2.1000   0.000    0.0
    &END COORD

    &KIND N
      BASIS_SET DZVP-GTH
      POTENTIAL GTH-PADE-q5
    &END KIND

    &KIND C
      BASIS_SET DZVP-GTH
      POTENTIAL GTH-PADE-q4
    &END KIND

    &KIND H
      BASIS_SET DZVP-GTH
      POTENTIAL GTH-PADE-q1
    &END KIND

    &COLVAR
       &COORDINATION
          ATOMS_FROM  3
          ATOMS_TO   2
          R_0 [angstrom]  1.1
          NN  10
          ND  16
       &END COORDINATION
    &END COLVAR


  &END SUBSYS

&END FORCE_EVAL

&GLOBAL
  PROJECT hcn_coord
  RUN_TYPE MD
  PRINT_LEVEL LOW
&END GLOBAL

&MOTION
  &MD
    ENSEMBLE NVT
    STEPS 10
    TIMESTEP 0.5
    TEMPERATURE 50.0
    TEMP_TOL  100
    &THERMOSTAT
      &NOSE
        LENGTH 3
        YOSHIDA 3
        TIMECON 100.0
        MTS 2
      &END NOSE
    &END
  &END MD
  &FREE_ENERGY
    &METADYN
      DO_HILLS
      LAGRANGE
      NT_HILLS 3
      WW 1.0e-3
      &METAVAR
        LAMBDA 0.8
        MASS 50.0
        SCALE 0.02
        COLVAR 1
      &END METAVAR
      &PRINT
        &COLVAR
           COMMON_ITERATION_LEVELS 3
           &EACH
             MD 1
           &END
        &END
        &HILLS
           COMMON_ITERATION_LEVELS 3
           &EACH
             MD 1
           &END
        &END
      &END
    &END METADYN
  &END
  &PRINT
    &RESTART
       &EACH
         MD     1
       &END
    &END
  &END
&END MOTION
&EXT_RESTART
  RESTART_FILE_NAME  hcn_md-1.restart
  RESTART_COUNTERS F
  RESTART_POS T
  RESTART_VEL  T
  RESTART_THERMOSTAT T
&END EXT_RESTART
