Commits

Stephen Skory  committed ab754b0

Noticed this typo for OutputOnDensity calculation.

  • Participants
  • Parent commits f12c714

Comments (0)

Files changed (1)

File src/enzo/grid/solvers/Grid_SolveHydroEquations.C

       int DensNum = FindField(Density, FieldType, NumberOfBaryonFields);
       for(i = 0; i < size; i++)
         CurrentMaximumDensity =
-            max(BaryonField[DensNum][size], CurrentMaximumDensity);
+            max(BaryonField[DensNum][i], CurrentMaximumDensity);
     }
 
   }  // end: if (NumberOfBaryonFields > 0)