&FORCE_EVAL
  METHOD QMMM
  &DFT
    BASIS_SET_FILE_NAME ../BASIS_SET
    POTENTIAL_FILE_NAME ../POTENTIAL
    &MGRID
      COMMENSURATE
      CUTOFF 50
    &END MGRID
    &QS
    &END QS
    &SCF
      SCF_GUESS atomic
    &END SCF
    &XC
      &XC_FUNCTIONAL pade
      &END XC_FUNCTIONAL
    &END XC
  &END DFT
  &MM
    &FORCEFIELD
      parm_file_name ../sample_pot/5H2O.pot
      parmtype CHM
      &spline
       rcut_nb 5.2917720830
      &end
    &END FORCEFIELD
    &POISSON
      &EWALD
        EWALD_TYPE spme
        ALPHA .44
        GMAX 64
        O_SPLINE 6
      &END EWALD
    &END POISSON
  &END MM
  &QMMM
    CENTER SETUP_ONLY
    MM_POTENTIAL_FILE_NAME ../MM_POTENTIAL
    &CELL
      ABC 17.0 7.0 7.0
    &END CELL
    ECOUPL GAUSS
    USE_GEEP_LIB 6
    NOCOMPATIBILITY

    # core list
    &QM_KIND H
      MM_INDEX 2 3
    &END QM_KIND
    &QM_KIND O
      MM_INDEX 1
    &END QM_KIND

    # Noam's new section
    &FORCE_MIXING
      R_CORE 2.5 3.5
      R_QM 2.5 3.5
      R_BUF 2.5 3.5
      QM_KIND_ELEMENT_MAPPING H H
      QM_KIND_ELEMENT_MAPPING O O
#      &RESTART_INFO
#	INDICES 1 2 3 4 5 6
#	LABELS 10 10 10 8 8 8
#      &END RESTART_INFO
    &END FORCE_MIXING
  # 
  # QM_KINDS
  # 
  &END QMMM
  &SUBSYS
    &CELL
      ABC 20.00 20.00 20.00
    &END CELL
    &KIND H
      BASIS_SET DZVP-GTH-BLYP
      POTENTIAL GTH-BLYP-q1
    &END KIND
    &KIND O
      BASIS_SET DZVP-GTH-BLYP
      POTENTIAL GTH-BLYP-q6
    &END KIND
    &TOPOLOGY
      CONN_FILE_NAME ../sample_psf/5H2O.psf
      CONNECTIVITY UPSF
      COORD_FILE_NAME ../sample_pdb/5H2O.pdb
      COORDINATE pdb
    &END TOPOLOGY
    &PRINT
#      &ATOMIC_COORDINATES
#      &END ATOMIC_COORDINATES
#      &CELL
#      &END CELL
    &END PRINT
  &END SUBSYS
  &PRINT
    &FORCES
    &END FORCES
  &END PRINT
&END FORCE_EVAL
&GLOBAL
  PROJECT H2O-qmmm-none-force_mixing-1
  PRINT_LEVEL MEDIUM
  RUN_TYPE MD
&END GLOBAL
&MOTION
  &MD
    STEPS 8
    ENSEMBLE REFTRAJ
    &REFTRAJ
      TRAJ_FILE_NAME ../sample_xyz/5H2O_adaptive.xyz
      EVAL_ENERGY_FORCES
    &END REFTRAJ
  &END MD

  &PRINT
    &RESTART
    &END RESTART
  &END PRINT

&END MOTION
