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

Do not compute forces, velocity and position for fixed points #616

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented May 3, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
No

What kind of change does this PR introduce?
"Bug" fix

What is the current behavior?
Forces and velocity are computed for fixed points

What is the new behavior (if this is a feature change)?
Forces and velocity are not computed for fixed points

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@flo-dup flo-dup requested a review from So-Fras May 3, 2024 08:07
flo-dup and others added 3 commits May 13, 2024 17:14
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Copy link

sonarcloud bot commented May 22, 2024

@@ -302,15 +314,10 @@ private void updateVelocity() {
}

private void updatePosition() {
// TODO do not compute forces or update velocities for fixed nodes
// We have computed forces and velocities for all nodes, even for the fixed ones
Copy link
Collaborator

Choose a reason for hiding this comment

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

// We have computed forces and velocities for all nodes, even for the fixed ones
// We can optimize calculations by ignoring fixed nodes in those calculations

Are those comments up-to-date? Is velocity still computed for fixed points and is there still a possibility for optimization?

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.

None yet

2 participants