Virial was not tallied on needed timestep ..(compute pressure.cpp:223)

Dear lammps user
While simulating a polymer I get this error with nvt ensemble while deforming the simulation box using fix fix deform. Earlier I tried with NPT, with npt it was fine. What is the solution?

Thanks

Rajesh

Now is a good time for you to get acquainted with the
"Section_errors.html" doc page.
http://lammps.sandia.gov/doc/Section_errors.html

Whenever you run into a LAMMPS error message, check that page first. It says:

"You are using a thermo keyword that requires potentials to have
tallied the virial, but they didn’t on this timestep. See the variable
doc page for ideas on how to make this work."

(which is located here: http://lammps.sandia.gov/doc/variable.html)

Also, for more detailed discussion, there have been a number of posts
on the mailing list about this error. Google is your friend here:
https://www.google.com/search?q=lammps+Virial+was+not+tallied+on+needed+timestep&oq=lammps+Virial+was+not+tallied+on+needed+timestep

Cheers

Andrew