From c236276ec17510fb2fdfc8072a1e761024c0fe0e Mon Sep 17 00:00:00 2001 From: Sandro Elsweijer <49643115+sandro-elsweijer@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:20:02 +0200 Subject: [PATCH 1/3] typo --- example/IO/cmesh/gmsh/t8_read_msh_file.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/IO/cmesh/gmsh/t8_read_msh_file.cxx b/example/IO/cmesh/gmsh/t8_read_msh_file.cxx index 48616cf92f..192976f77a 100644 --- a/example/IO/cmesh/gmsh/t8_read_msh_file.cxx +++ b/example/IO/cmesh/gmsh/t8_read_msh_file.cxx @@ -3,7 +3,7 @@ t8code is a C library to manage a collection (a forest) of multiple connected adaptive space-trees of general element types in parallel. - Copyright (C) 2015 the developers + Copyright (C) 2024 the developers t8code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -140,7 +140,7 @@ main (int argc, char *argv[]) opt = sc_options_new (argv[0]); sc_options_add_switch (opt, 'h', "help", &helpme, "Display a short help message."); - sc_options_add_string (opt, 'f', "prefix", &prefix, "", "The prefix of the tetgen files."); + sc_options_add_string (opt, 'f', "prefix", &prefix, "", "The prefix of the gmsh files."); sc_options_add_switch (opt, 'p', "partition", &partition, "If true the generated cmesh is repartitioned uniformly."); sc_options_add_int (opt, 'd', "dim", &dim, 2, "The dimension of the mesh"); sc_options_add_int (opt, 'm', "master", &master, -1, From e68a0658639d4fae6fdf046f518f41712be16d86 Mon Sep 17 00:00:00 2001 From: Sandro Elsweijer <49643115+sandro-elsweijer@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:35:01 +0200 Subject: [PATCH 2/3] convert int to switch --- example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx b/example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx index fb8c862b89..3eaa922574 100644 --- a/example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx +++ b/example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx @@ -79,9 +79,9 @@ main (int argc, char **argv) sc_options_add_string (opt, 'f', "fileprefix", &fileprefix, NULL, "Fileprefix of the msh and brep files."); sc_options_add_int (opt, 'l', "level", &level, 2, "The uniform refinement level. Default: 2"); sc_options_add_int (opt, 'd', "dimension", &dim, 3, "The dimension of the mesh. Default: 3"); - sc_options_add_int ( - opt, 'c', "use_cad", &use_cad, 0, - "Enable CAD-based curvilinear geometry. Needs a `.brep` file with the same file prefix. Default: 0"); + sc_options_add_switch ( + opt, 'c', "use_cad", &use_cad, + "Enable CAD-based curvilinear geometry. Needs a `.brep` file with the same file prefix."); parsed = sc_options_parse (t8_get_package_id (), SC_LP_ERROR, opt, argc, argv); if (helpme) { From 37691ab37faabb6f334708eb9a162a6362cd27ca Mon Sep 17 00:00:00 2001 From: Sandro Elsweijer Date: Fri, 13 Sep 2024 13:46:55 +0200 Subject: [PATCH 3/3] indent --- example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx b/example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx index 3eaa922574..cb0e662e51 100644 --- a/example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx +++ b/example/IO/forest/gmsh/t8_gmsh_to_vtk.cxx @@ -79,9 +79,8 @@ main (int argc, char **argv) sc_options_add_string (opt, 'f', "fileprefix", &fileprefix, NULL, "Fileprefix of the msh and brep files."); sc_options_add_int (opt, 'l', "level", &level, 2, "The uniform refinement level. Default: 2"); sc_options_add_int (opt, 'd', "dimension", &dim, 3, "The dimension of the mesh. Default: 3"); - sc_options_add_switch ( - opt, 'c', "use_cad", &use_cad, - "Enable CAD-based curvilinear geometry. Needs a `.brep` file with the same file prefix."); + sc_options_add_switch (opt, 'c', "use_cad", &use_cad, + "Enable CAD-based curvilinear geometry. Needs a `.brep` file with the same file prefix."); parsed = sc_options_parse (t8_get_package_id (), SC_LP_ERROR, opt, argc, argv); if (helpme) {