Fixed calculation of boxlen for lammps output.