Checks whether any abundances are non-finite and if any are found, a warning is issued and the simulation is truncated at the last time step where all results are finite.

validSim(sim)

## Arguments

sim A MizerSim object

## Value

A MizerSim object with possibly fewer time steps