WarpX
WarpX copied to clipboard
remove unnecessary limit check in UpdateMomentumPerezElastic
trafficstars
Third PR of several related to cleaning/streamlining UpdateMomentumPerezElastic.
Context: we introduced this to prevent NaNs in #4304
It looks like this could still apply. If it does, let us add an inline comment on the if condition.
Thanks for the comment @ax3l. There is no division in these lines by vcms. So it is safe to remove the limit check.