Skip to content

Solved bug in orientational_order_parameter().#114

Merged
andrewtarzia merged 1 commit intoGMPavanLab:mainfrom
matteobecchi:devel
Aug 27, 2025
Merged

Solved bug in orientational_order_parameter().#114
andrewtarzia merged 1 commit intoGMPavanLab:mainfrom
matteobecchi:devel

Conversation

@matteobecchi
Copy link
Copy Markdown
Collaborator

Related Issues: close #112
Requested Reviewers: @SimoneMartino98

The present code gives psi = 1.0 when only one neighbor is present. This is wrong, there is no order with only one neighbor, and it should be psi = 0.0. The new code fixes this.

@matteobecchi matteobecchi self-assigned this Jul 31, 2025
@matteobecchi matteobecchi added the bug Something isn't working label Jul 31, 2025
@matteobecchi matteobecchi marked this pull request as ready for review August 19, 2025 07:53
@andrewtarzia
Copy link
Copy Markdown
Collaborator

Good solve - you can merge when ready

@andrewtarzia andrewtarzia merged commit 2978382 into GMPavanLab:main Aug 27, 2025
31 of 41 checks passed
@matteobecchi matteobecchi deleted the devel branch August 27, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compute_order_parameter() wrong for particles with 1 neighbor

2 participants