Inconsistent memory behavior in Catalyst

The inconsistency was obviously coming from mpi processes of different sizes reaching this point at different times and throwing the error.