You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pbehne opened this issue
Jan 9, 2025
· 0 comments
· May be fixed by #29671
Assignees
Labels
P: normalA defect affecting operation with a low possibility of significantly affects.T: defectAn anomaly, which is anything that deviates from expectations.
MooseApp is derived from MooseBase. MooseBase has an attribute called _name,
which described the name of the object. MooseApp erroneously redeclares this
attribute and does not initialize it. Thus, when a MooseApp or more derived
class tries to access _name, it defaults to the empty MooseApp::_name instead
of the desired MooseBase::_name. MooseBase::_name is still accessible without
using the namespace operator through the name() method because the name()
method is not erroneously redeclare in MooseApp.
Steps to Reproduce
From any MooseApp or more derived object, print out the values of _name and name() and note the difference.
Impact
MooseApp::_name and name() (which returns MooseBase::_name) are different, leading to confusion and unexpected behavior.
The solution is to remove the redeclaration of MooseApp::_name from MooseApp.h.
[Optional] Diagnostics
No response
The text was updated successfully, but these errors were encountered:
pbehne
added
T: defect
An anomaly, which is anything that deviates from expectations.
P: normal
A defect affecting operation with a low possibility of significantly affects.
labels
Jan 9, 2025
MooseApp is derived from MooseBase. MooseBase has an attribute called _name,
which described the name of the object. MooseApp erroneously redeclares this
attribute and does not initialize it. Thus, when a MooseApp or more derived
class tries to access _name, it defaults to the empty MooseApp::_name instead
of the desired MooseBase::_name. MooseBase::_name is still accessible without
using the namespace operator through the name() method because the name()
method is not erroneously redeclare in MooseApp. This commit removes the
erroneous redeclaration of MooseApp::_name. Ref idaholab#29670.
P: normalA defect affecting operation with a low possibility of significantly affects.T: defectAn anomaly, which is anything that deviates from expectations.
Bug Description
MooseApp
is derived fromMooseBase
.MooseBase
has an attribute called_name
,which described the name of the object.
MooseApp
erroneously redeclares thisattribute and does not initialize it. Thus, when a
MooseApp
or more derivedclass tries to access
_name
, it defaults to the emptyMooseApp::_name
insteadof the desired
MooseBase::_name
.MooseBase::_name
is still accessible withoutusing the namespace operator through the
name()
method because thename()
method is not erroneously redeclare in
MooseApp
.Steps to Reproduce
From any
MooseApp
or more derived object, print out the values of_name
andname()
and note the difference.Impact
MooseApp::_name
andname()
(which returnsMooseBase::_name
) are different, leading to confusion and unexpected behavior.The solution is to remove the redeclaration of
MooseApp::_name
fromMooseApp.h
.[Optional] Diagnostics
No response
The text was updated successfully, but these errors were encountered: