RenameMeshGenerator Bug

22 views
Skip to first unread message

Srinath Chakravarthy

unread,
Oct 2, 2019, 2:15:52 PM10/2/19
to moose-users
On using RenameMeshGenerator I get the following error 

*** ERROR ***
ERROR: no std::vector<BoundaryName, std::allocator<BoundaryName> > parameter named "old_boundary_id" found.

Known parameters:
Name Type Value
---------------------
 _aux_sys AuxiliarySystem* 0x7ffff3ef6b78
 _eigen_problem EigenProblem* 0x657361625f6d656c
 _executioner Transient* 0x7ffff3ef6b78
 _fe_problem FEProblem* 0
 _fe_problem_base FEProblemBase* 0
 _moose_app MooseApp* 0xaed1a0
 _moose_base std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > MeshGenerator
 _nl_sys SystemBase* 0x7ffff3ef6b78
 _object_name std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > boundary
 _subproblem SubProblem* 0
 _sys SystemBase* 0x79742f797261646e
 _tid unsigned int 0
 _type std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > RenameBoundaryGenerator
 _unique_name std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > MeshGenerator::boundary
 control_tags std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > Mesh 
 enable bool 1
 input MeshGeneratorName mesh
 new_boundary_id std::vector<short, std::allocator<short> > 15 
 new_boundary_name std::vector<BoundaryName, std::allocator<BoundaryName> >  
 old_boundary_id std::vector<short, std::allocator<short> >  
 old_boundary_name std::vector<BoundaryName, std::allocator<BoundaryName> > Li_bottom 


I found the cause of the error and it is typo in RenameMeshGenerator.C 

Attached is a patch. I have not done a PR on moose before and i'm hoping that someone on the moose team will. 

Cheers
Srinath
0001-bugfix-for-RenameMeshGenerator-to-prevent-error.patch

Cody Permann

unread,
Oct 3, 2019, 11:19:59 AM10/3/19
to <moose-users@googlegroups.com>
Thanks for the info and the patch. Looks like we don't have test coverage for that exact case. We'll take your patch and make a test case for it.

Cheers!

--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/6c4b6c41-53c0-4d6c-8d75-d30f29d164a9%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages