lattice spacing after clear

Dear Lammps-users,

I am having a problem where I do

lattice diamond $a
...
clear
...
lattice diamond $a

The issue is that I get output for the first lattice command:
lattice diamond ${a}
lattice diamond 3.55645087
Lattice spacing in x,y,z = 3.55645 3.55645 3.55645

But I get for the output for the second (and subsequent) lattice command:
lattice diamond ${a}
lattice diamond 3.787389238
Lattice spacing in x,y,z = 1.28307 1.28307 1.28307

I don't know if this is a bug - Is there a way to change the
lattice scale when looping for a scan?

Thanks,
John

Dear Lammps-users,

I am having a problem where I do

lattice diamond $a
...
clear
...
lattice diamond $a

The issue is that I get output for the first lattice command:
lattice diamond ${a}
lattice diamond 3.55645087
Lattice spacing in x,y,z = 3.55645 3.55645 3.55645

But I get for the output for the second (and subsequent) lattice command:
lattice diamond ${a}
lattice diamond 3.787389238
Lattice spacing in x,y,z = 1.28307 1.28307 1.28307

I don't know if this is a bug - Is there a way to change the
lattice scale when looping for a scan?

there is too little information to give a qualified answer.
the explanation has to be in the parts that you don't show.

my guess would be that you have inconsistent units
before and after the "clear".

axel.