avoid FPE in engine_repartition_trigger
An FPE (division by 0) may occur sometimes for values used to write to file. Makes debugging other FPEs a bit annoying, so here's a proposed fix.
An FPE (division by 0) may occur sometimes for values used to write to file. Makes debugging other FPEs a bit annoying, so here's a proposed fix.