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

Unify subcomponent handling and call MNA methods through the parent #141

Merged
merged 1 commit into from
Jan 8, 2023

Conversation

JTS22
Copy link
Contributor

@JTS22 JTS22 commented Nov 24, 2022

For all components that declare some kind of subcomponents, this PR unifies the handling of these subcomponents such that:

  • Subcomponents are always added to mSubComponents
  • Subcomponent MNA methods (mnaPreStep, mnaPostStep...) are called directly in the same-named parent method and not through custom tasks
  • The parent calls the subcomponent's methods by iterating through mSubComponents

Based on #140
Related to #131

Signed-off-by: Jonas Schroeder <jonas.schroeder1@rwth-aachen.de>
@sonarcloud
Copy link

sonarcloud bot commented Dec 30, 2022

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 2 Code Smells

0.0% 0.0% Coverage
9.6% 9.6% Duplication

@m-mirz m-mirz merged commit 0d3870d into master Jan 8, 2023
m-mirz added a commit that referenced this pull request Jan 9, 2023
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 deleted the subcomponents branch January 22, 2023 10:05
m-mirz added a commit that referenced this pull request Feb 28, 2023
Documentation for subcomponents describes the behavior added in #141 
Documentation for mna components describes the behavior added in #150 

Closes #133 
Closes #135 
Closes #131
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