diff --git a/framework/src/mesh/GeneratedMesh.C b/framework/src/mesh/GeneratedMesh.C index daa5d0e07278..8157c4987736 100644 --- a/framework/src/mesh/GeneratedMesh.C +++ b/framework/src/mesh/GeneratedMesh.C @@ -32,8 +32,7 @@ GeneratedMesh::validParams() MooseEnum elem_types(LIST_GEOM_ELEM); // no default MooseEnum dims("1=1 2 3"); - params.addRequiredParam( - "dim", dims, "The dimension of the mesh to be generated"); // Make this parameter required + params.addRequiredParam("dim", dims, "The dimension of the mesh to be generated"); params.addParam("nx", 1, "Number of elements in the X direction"); params.addParam("ny", 1, "Number of elements in the Y direction"); diff --git a/modules/thermal_hydraulics/src/base/THMMesh.C b/modules/thermal_hydraulics/src/base/THMMesh.C index 512973dfcc7f..2dbf249339cd 100644 --- a/modules/thermal_hydraulics/src/base/THMMesh.C +++ b/modules/thermal_hydraulics/src/base/THMMesh.C @@ -26,6 +26,8 @@ THMMesh::validParams() { InputParameters params = MooseMesh::validParams(); params.addClassDescription("Creates a mesh (nodes and elements) for the Components"); + MooseEnum dims("1=1 2 3", "3"); + params.addParam("dim", dims, "The dimension of the mesh to be generated"); // we do not allow renumbering, because we generate our meshes params.set("allow_renumbering") = false; return params; diff --git a/python/MooseDocs/test/extensions/test_appsyntax.py b/python/MooseDocs/test/extensions/test_appsyntax.py index 818ed0e8842a..1a23b8e027da 100755 --- a/python/MooseDocs/test/extensions/test_appsyntax.py +++ b/python/MooseDocs/test/extensions/test_appsyntax.py @@ -76,7 +76,7 @@ def testAST(self): def testHTML(self): _, res = self.execute(self.TEXT, renderer=base.HTMLRenderer()) - self.assertSize(res, 9) + self.assertSize(res, 11) self.assertHTMLTag(res(0), 'h2', id_='input-parameters', size=3) self.assertEqual(res(0).text(), 'Input Parameters') @@ -111,7 +111,7 @@ def testHTML(self): def testMaterialize(self): _, res = self.execute(self.TEXT, renderer=base.MaterializeRenderer()) - self.assertSize(res, 9) + self.assertSize(res, 11) self.assertHTMLTag(res(0), 'h2', id_='input-parameters', size=3) self.assertEqual(res(0).text(), 'Input Parameters')