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

Fix type of _adaptive and _periodic parameters in FMM to bool #288

Merged

Conversation

cniethammer
Copy link
Contributor

The adaptive parameter was inconsistently used as integer and bool throughout the code.

This was discovered during work on #286

The adaptive parameter was inconsistently used as integer and bool throughout
the code.

Signed-off-by: Christoph Niethammer <[email protected]>
@cniethammer cniethammer added the bug Something isn't working label Feb 13, 2024
@cniethammer cniethammer requested a review from HomesGH February 13, 2024 10:01
HomesGH
HomesGH previously approved these changes Feb 13, 2024
@FG-TUM
Copy link
Member

FG-TUM commented Feb 13, 2024

While you are at it: The xml parameter right below systemIsPeriodic which is parsed into _periodic in FastMultipoleMethod.cpp also appears to be a candidate with the same problem

The periodic parameter was used as bool throughout the code.

Signed-off-by: Christoph Niethammer <[email protected]>
@cniethammer
Copy link
Contributor Author

cniethammer commented Feb 14, 2024

Sure! I updatet the PR to include the periodic parameter as well.

Concerning the also _wellSeparated next to it: This seems to be unused in the codebase and I will include its removal in the next cleanup PR.

@cniethammer cniethammer changed the title Fix type of _adaptive parameter in FMM to bool Fix type of _adaptive and _periodic parameters in FMM to bool Feb 14, 2024
@cniethammer
Copy link
Contributor Author

@HomesGH can you review this so it can be merged in a timely manner - if everything looks good - and I can come up with the next PR that otherwise would conflict? THX

@HomesGH HomesGH self-requested a review February 20, 2024 15:24
@cniethammer cniethammer merged commit 635c788 into ls1mardyn:master Feb 20, 2024
52 checks passed
@cniethammer cniethammer deleted the fix_adaptie_parameter_in_FMM branch February 20, 2024 16:10
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.

3 participants