message: ex6p: added the option --max-dofs to the command line.
diff: @@ -56,11 +56,12 @@ int main(int argc, char *argv[])
  MPI_Comm_rank(MPI_COMM_WORLD, &myid);
  // 2. Parse command-line options.
  - const char *mesh_file = "../data/star.mesh";
  + const char *mesh_file = "../data/star-hilbert.mesh";
  int order = 1;
  bool pa = false;
  const char *device_config = "cpu";
  bool visualization = true;
  + int max_dofs = 100000;
  bool restart = false;
  OptionsParser args(argc, argv);
  @@ -75,6 +76,8 @@ int main(int argc, char *argv[])
  args.AddOption(&visualization, "-vis", "--visualization", "-no-vis",
  "--no-visualization",
  "Enable or disable GLVis visualization.");
  + args.AddOption(&max_dofs, "-md", "--max-dofs",
  + "Stop after reaching this many degrees of freedom.");
  args.AddOption(&restart, "-res", "--restart", "-no-res", "--no-restart",
  "Restart computation from the last checkpoint.");
  args.Parse();
  @@ -208,7 +211,6 @@ int main(int argc, char *argv[])
  // 14. The main AMR loop. In each iteration we solve the problem on the
  // current mesh, visualize the solution, and refine the mesh.
  - const int max_dofs = 100000;
  for (int it = 1; ; it++)
  {
  HYPRE_Int global_dofs = fespace.GlobalTrueVSize();
  @@ -273,7 +275,7 @@ int main(int argc, char *argv[])
  sout << "solution\n" << *pmesh << x << flush;
  }
  - if (global_dofs > max_dofs)
  + if (global_dofs >= max_dofs)
  {
  if (myid == 0)
  {
  