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
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 5 additions and 0 deletions

View File

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