forked from lijiext/lammps
add missing convesion to fractional coordinates and back for enforced PBC dumps of triclinic cells
This commit is contained in:
parent
52f9e4a960
commit
a20d58312d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue