Skip to content

Commit

Permalink
Address test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
GiudGiud committed Dec 25, 2024
1 parent 2d98798 commit 070d8cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions framework/src/mesh/GeneratedMesh.C
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ GeneratedMesh::validParams()
MooseEnum elem_types(LIST_GEOM_ELEM); // no default

MooseEnum dims("1=1 2 3");
params.addRequiredParam<MooseEnum>(
"dim", dims, "The dimension of the mesh to be generated"); // Make this parameter required
params.addRequiredParam<MooseEnum>("dim", dims, "The dimension of the mesh to be generated");

params.addParam<unsigned int>("nx", 1, "Number of elements in the X direction");
params.addParam<unsigned int>("ny", 1, "Number of elements in the Y direction");
Expand Down
2 changes: 2 additions & 0 deletions modules/thermal_hydraulics/src/base/THMMesh.C
Original file line number Diff line number Diff line change
Expand Up @@ -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<MooseEnum>("dim", dims, "The dimension of the mesh to be generated");
// we do not allow renumbering, because we generate our meshes
params.set<bool>("allow_renumbering") = false;
return params;
Expand Down
2 changes: 1 addition & 1 deletion python/MooseDocs/test/extensions/test_appsyntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class TestList(AppSyntaxTestCase):

def testAST(self):
ast = self.tokenize(self.TEXT)
self.assertToken(ast(0), 'Heading', size=11)
self.assertToken(ast(0), 'Heading', size=9)
self.assertEqual(ast(0).text(), "Available Objects Actions and Subsystems") # text() omits commas

self.assertToken(ast(1), 'SyntaxList')
Expand Down

0 comments on commit 070d8cd

Please sign in to comment.