<div dir="ltr">Hi,<div><br></div><div>I don&#39;t have time to do this myself at the moment, but I think it would be very useful to</div><div>be able to ask TerminationTrigger to trigger termination at a multiple of a given iteration.</div><div><br></div><div>The main application for this is ReadInterpolate. I am trying to use the thorn to change</div><div>some fundamental parameters of the simulation of my ongoing runs. ReadInterpolate </div><div>requires the checkpoints to be all at the same time. The checkpoints my simulations</div><div>naturally produce do not fulfill this requirement, so what I have to do is to do a</div><div>small run with cctk_itlast set to a number I manually have to compute so that all the</div><div>refinement levels are synced. This is doable, but rather inconvenient to do every time.</div><div><br></div><div>The change I propose is to introduce a range of &quot;termination times&quot; to TerminationTrigger</div><div>instead of a single value (on_remaining_walltime). The idea is that as soon as the remaining</div><div>walltime is less than the lower end of the range, TerminationTrigger will terminate only</div><div>when the iteration is a multiple of a specified value. If the the high end of the range is reached,</div><div>than this condition is no longer checked and the termination is triggered immediately </div><div>(current behavior). Similarly, it would be nice to add a new sentinel value to the termination file. </div><div>E.g., if I write the number 2 in the termination file, then TerminationTrigger will stop at the</div><div>first iteration that is multiple of the given value instead of stopping immediately.</div><div><br></div><div>I think that these changes would be rather simple to implement, and if the default value for</div><div>&quot;terminate_at_multiple_of&quot; is set to 1, then they would be backwards compatible.</div><div><br></div><div>At the moment, I cannot implement these changes myself, but I leave the idea here as</div><div>a suggestion for future improvements. </div><div><br></div><div>If anyone has a better way to do what I want to do, I&#39;d be happy to hear that.</div><div><br></div><div>Best,</div><div>Gabriele</div><div><br></div></div>