Skip to content

Reorder DistributedGenerator variables#378

Merged
pelesh merged 3 commits intodevelopfrom
alex/power-elec-dg-reorder
Apr 30, 2026
Merged

Reorder DistributedGenerator variables#378
pelesh merged 3 commits intodevelopfrom
alex/power-elec-dg-reorder

Conversation

@alexander-novo
Copy link
Copy Markdown
Collaborator

Description

Re-ordered the internal variables of DistributedGenerator to place the angle delta at the end of the internal variables. This is a prerequisite for removing the copy to components vectors, since the indexing of internal variables currently differs between the references and non-reference generators.

This PR changes it so all internal variables (besides the angle delta) have the same index between reference and non-reference generators.

Proposed changes

Checklist

  • All tests pass.
  • Code compiles cleanly with flags -Wall -Wpedantic -Wconversion -Wextra.
  • The new code follows GridKit™ style guidelines.
  • There are unit tests for the new code.
  • The new code is documented.
  • The feature branch is rebased with respect to the target branch.
  • I have updated CHANGELOG.md to reflect the changes in this PR. If this is a minor PR that is part of a larger fix already included in the file, state so.

I will include this in the changelog update for removing the data copying (coming next)

Further comments

@alexander-novo alexander-novo changed the base branch from develop to alex/pow-elec-internal-external-residuals April 22, 2026 17:41
@alexander-novo alexander-novo changed the base branch from alex/pow-elec-internal-external-residuals to develop April 22, 2026 17:48
@alexander-novo alexander-novo changed the base branch from develop to alex/pow-elec-internal-external-residuals April 22, 2026 17:48
@alexander-novo alexander-novo requested a review from pelesh April 22, 2026 17:50
Copy link
Copy Markdown
Collaborator

@pelesh pelesh left a comment

Choose a reason for hiding this comment

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

Looks good. Go ahead and merge to the target branch.

@alexander-novo alexander-novo force-pushed the alex/pow-elec-internal-external-residuals branch from c4b3e6f to 241cf82 Compare April 27, 2026 19:47
@alexander-novo alexander-novo force-pushed the alex/power-elec-dg-reorder branch from db31722 to 491b7ca Compare April 27, 2026 19:48
@alexander-novo alexander-novo force-pushed the alex/pow-elec-internal-external-residuals branch from 88b1700 to 52c72eb Compare April 30, 2026 20:46
@alexander-novo alexander-novo force-pushed the alex/power-elec-dg-reorder branch 2 times, most recently from d87c9b3 to 77be7b9 Compare April 30, 2026 20:52
@alexander-novo alexander-novo changed the base branch from alex/pow-elec-internal-external-residuals to develop April 30, 2026 21:05
Changed angle delta to be the last variable, since this variable isn't an internal for the reference generator.
@alexander-novo alexander-novo force-pushed the alex/power-elec-dg-reorder branch from 77be7b9 to 6e597c3 Compare April 30, 2026 21:08
@alexander-novo
Copy link
Copy Markdown
Collaborator Author

@pelesh Rebased and pointing at develop now

@pelesh pelesh merged commit 0db7c3a into develop Apr 30, 2026
6 checks passed
@alexander-novo alexander-novo deleted the alex/power-elec-dg-reorder branch May 1, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants