Commits

Stephen Skory committed 2a045bb

Changing fscanf to fgets for when PresentParticleTypes isn't given.

  • Participants
  • Parent commits ab754b0

Comments (0)

Files changed (1)

src/enzo/grid/utilities/Grid_ReadGrid.C

     
     // We read these in but don't use them (yet?). Therefore we won't error
     // out if we can't read them in.
-    fscanf(fptr, "PresentParticleTypes = %s\n", &unused_string);
-    fscanf(fptr, "ParticleTypeCounts = %s\n", &unused_string);
-    
+    fgets(unused_string, MAX_LINE_LENGTH, fptr);
+    fgets(unused_string, MAX_LINE_LENGTH, fptr);
+
     if ((NumberOfParticles > 0) || (NumberOfActiveParticles > 0)) {
  
       /* Read particle file name. */