Run simulation until special event occurs

Submitted by PaulWinkler on Tue, 07/30/2013 - 22:22


I want to generate a dense packing with fix insert/pack and particle growing. This is very common and no problem with fix adapt. The growing ends when the particles have a reached a given pressure. The pressure is calculated by compute pressure. Since I have a lot of particles and slightly CPU I wonder if there is something new in interrupting a run when a special event occurs to save CPU time? Or is run N every n, check with if and going on else dump results and quit still the preferred solution?