add missing convesion to fractional coordinates and back for enforced PBC dumps of triclinic cells
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user