Fixed grid read to handle Periodic entry.

This commit is contained in:
falgout 2011-11-30 23:31:49 +00:00
parent 3d19517831
commit 8bfdaa7ad7

View File

@ -803,6 +803,7 @@ hypre_StructGridRead( MPI_Comm comm,
hypre_Index ilower;
hypre_Index iupper;
hypre_IndexRef periodic;
HYPRE_Int dim;
HYPRE_Int num_boxes;
@ -827,6 +828,12 @@ hypre_StructGridRead( MPI_Comm comm,
hypre_StructGridSetExtents(grid, ilower, iupper);
}
periodic = hypre_StructGridPeriodic(grid);
hypre_fscanf(file, "Periodic: %d %d %d\n",
&hypre_IndexX(periodic),
&hypre_IndexX(periodic),
&hypre_IndexX(periodic));
hypre_StructGridAssemble(grid);
*grid_ptr = grid;