add missing convesion to fractional coordinates and back for enforced PBC dumps of triclinic cells

This commit is contained in:
Axel Kohlmeyer
2019-03-25 12:25:50 -04:00
parent 52f9e4a960
commit a20d58312d

View File

@ -423,7 +423,12 @@ void Dump::write()
atom->x = xpbc; atom->x = xpbc;
atom->v = vpbc; atom->v = vpbc;
atom->image = imagepbc; atom->image = imagepbc;
// for triclinic, PBC is applied in lamda coordinates
if (domain->triclinic) domain->x2lamda(nlocal);
domain->pbc(); domain->pbc();
if (domain->triclinic) domain->lamda2x(nlocal);
} }
// pack my data into buf // pack my data into buf