message: Allowing user to specify refinement levels
diff: @@ -77,6 +77,8 @@ int main(int argc, char *argv[])
  // 2. Parse command-line options.
  const char *mesh_file = "../data/inline-quad.mesh";
  + int ser_ref_levels = 1;
  + int par_ref_levels = 1;
  int order = 1;
  int prob = 0;
  double freq = -1.0;
  @@ -87,6 +89,10 @@ int main(int argc, char *argv[])
  OptionsParser args(argc, argv);
  args.AddOption(&mesh_file, "-m", "--mesh",
  "Mesh file to use.");
  + args.AddOption(&ser_ref_levels, "-rs", "--refine-serial",
  + "Number of times to refine the mesh uniformly in serial.");
  + args.AddOption(&par_ref_levels, "-rp", "--refine-parallel",
  + "Number of times to refine the mesh uniformly in parallel.");
  args.AddOption(&order, "-o", "--order",
  "Finite element order (polynomial degree).");
  args.AddOption(&prob, "-p", "--problem-type",
  @@ -143,7 +149,7 @@ int main(int argc, char *argv[])
  // 'ref_levels' to be the largest number that gives a final mesh with no
  // more than 10,000 elements.
  {
  - int ref_levels = 1;
  + int ref_levels = ser_ref_levels;
  // (int)floor(log(10000./mesh->GetNE())/log(2.)/dim);
  for (int l = 0; l < ref_levels; l++)
  {
  @@ -157,7 +163,6 @@ int main(int argc, char *argv[])
  ParMesh *pmesh = new ParMesh(MPI_COMM_WORLD, *mesh);
  delete mesh;
  {
  - int par_ref_levels = 0;
  for (int l = 0; l < par_ref_levels; l++)
  {
  pmesh->UniformRefinement();
  