Skip to content

Conversation

@fangjian19
Copy link
Contributor

The implemetation of particle periodic condition is wrong. particles would be still out of the domain.
the bug is fixed

mathrack
mathrack previously approved these changes Mar 12, 2025
Copy link
Contributor

@mathrack mathrack left a comment

Choose a reason for hiding this comment

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

LGTM, the next reviewer can squash and merge

@fangjian19 fangjian19 closed this Mar 12, 2025
@fangjian19 fangjian19 reopened this Mar 12, 2025
@mathrack mathrack dismissed their stale review March 12, 2025 14:32

modified after approved

@mathrack mathrack requested review from mathrack and removed request for mathrack March 12, 2025 14:32
@mathrack mathrack requested a review from pbartholomew08 March 17, 2025 11:13
src/particle.f90 Outdated
! local data
real(mytype) :: iface
real(mytype),save :: bcord(6)
real(mytype),save :: bcord(6),lenpe(6)
Copy link
Member

Choose a reason for hiding this comment

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

For consistency with the rest of the code this should be

real(mytype), dimension(6), save :: bcord, lenpe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines +2103 to +2108
lenpe(1)=xlx
lenpe(2)=-xlx
lenpe(3)=yly
lenpe(4)=-yly
lenpe(5)=zlz
lenpe(6)=-zlz
Copy link
Member

Choose a reason for hiding this comment

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

Why is the length being defined as 2xL in each direction?

Copy link
Member

Choose a reason for hiding this comment

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

perhaps add a comment to explain this

@mathrack mathrack merged commit de0e287 into xcompact3d:master Mar 20, 2025
1 check passed
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.

4 participants