1. The Enzo Project
  2. Untitled project
  3. enzo-dev
  4. Pull requests

Pull requests

#31 Merged
Repository
jsoishi
Branch
week-of-code
Repository
enzo
Branch
week-of-code

moved ENZO_FAIL before the loop to see if fields already exist. this loop will be infinite if OldNumberOfBaryonFields + FieldsToAdd > MAX_NUMBER_OF_BARYON_FIELDS, so it's best to do the check first.

Author
  1. J. S. Oishi
Reviewers
Description

IF the MAX_NUMBER_OF_BARYON_FIELDS is not set right, an infinite loop can occur. This ENZO_FAILs before that loop begins instead of afterward, as before!

Comments (1)