diff --git a/src/MDI/fix_mdi_qmmm.cpp b/src/MDI/fix_mdi_qmmm.cpp index 25c8f2f254..5a1b35c6d5 100644 --- a/src/MDI/fix_mdi_qmmm.cpp +++ b/src/MDI/fix_mdi_qmmm.cpp @@ -11,53 +11,6 @@ See the README file in the top-level LAMMPS directory. ------------------------------------------------------------------------- */ -/* ---------------------------------------------------------------------- - -QMMM with LAMMPS as MDI driver for MM and a quantum code as MDI engine for QM -specified group = QM atoms, remaining atoms are MM atoms -two modes for QMMM coupling: DIRECT and POTENTIAL - --- DIRECT mode: - -charge on all QM atoms must be zero -QM atoms have no bonds between them - -post_force: - MDI send QM coords via >COORDS - MDI send MM coords, MM charges via >CLATTICE, >LATTICE - invoke the QM code - MDI recv QM energy via COORDS, >POTENTIAL_AT_NUCLEI - invoke the QM code - MDI recv QM energy, forces, charges via MAXSMALLINT) error->all(FLERR,"Fix mdi/qmmm quantum group has too many atoms"); nqm = ngroup; - nmm = atom->natoms = nqm; + nmm = atom->natoms - nqm; // QM atom memory @@ -413,7 +366,6 @@ void FixMDIQMMM::init() set_qmm(); ierr = MDI_Send_command(">LATTICE", mdicomm); if (ierr) error->all(FLERR, "MDI: >LATTICE command"); - printf("SEND LATTICE nmm %d qmm %g %g %g\n",nmm,qmm[0],qmm[1],qmm[2]); ierr = MDI_Send(qmm, nmm, MDI_DOUBLE, mdicomm); if (ierr) error->all(FLERR, "MDI: >LATTICE data"); } @@ -511,6 +463,7 @@ void FixMDIQMMM::pre_force(int vflag) // use xqm_mine and qqm_mine for all QM atoms set_xqm(); + set_qqm(); for (int i = 0; i < nqm; i++) qpotential_mine[i] = 0.0;