Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve FIXME comments #142

Merged
merged 8 commits into from
Jan 9, 2023
Merged

Resolve FIXME comments #142

merged 8 commits into from
Jan 9, 2023

Conversation

JTS22
Copy link
Contributor

@JTS22 JTS22 commented Nov 27, 2022

Resolves many of the FIXME comments spread throughout the code. The main changes are:

  • Removal of variables that are never used, only read, or only written to
  • Renaming the attribute<T> method in AttributeList to attributeTyped<T> to avoid overlap with the method returning an AttributeBase::Ptr
  • Adding a constructor taking the attribute map to component base classes for attribute initialization

Based on #141
Related to #132

m-mirz
m-mirz previously approved these changes Jan 8, 2023
Copy link
Contributor

@m-mirz m-mirz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase on master required. I can take care of that.

@sonarcloud
Copy link

sonarcloud bot commented Jan 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

0.0% 0.0% Coverage
5.0% 5.0% Duplication

@m-mirz m-mirz merged commit fc169e5 into master Jan 9, 2023
@m-mirz m-mirz deleted the fix-fixmes branch January 22, 2023 10:04
m-mirz added a commit that referenced this pull request Jan 22, 2023
Introduces two new base classes, MNASimPowerComp<T> and
CompositePowerComp<T>. For all composite components (as defined in
#131), MNASimPowerComp
provides default implementations for all methods in MNAInterface, as
well as default MnaPreStep and MnaPostStep tasks, such that MNAInterface
is only inherited once in the parent class and not in each component
individually. Additionally, CompositePowerComp provides mnaParent...
methods for most of the MNA methods in MNAInterface. Via the
addMNASubComponent method, a component can register subcomponents for
which the relevant MNA methods are called automatically by the
CompositePowerComp parent class. For each MNA method, the child
component class can decide to either override the normal mna... method
and provide subcomponent handling themselves, or override just the
mnaParent... method and let the subcomponents (and some other common
operations) get handled by the parent class methods.

While the MNASimPowerComp class is not used for any non-composite
components in this PR, the unification of MNA methods for these
components is covered in
#150 .

Based on #142
Related to #131
Rebase of #144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants