[EXTERNAL] Minimum image convention of triclinic boxes

Please submit future questions to the LAMMPS mailing list. The standard approach to dealing with things like this in LAMMPS is to first transform to the unit square.

if (triclinic) domain->x2lamda(atom->nlocal);