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

Remove #ifdef MPI from main routines and minor refactoring #251

Merged
merged 39 commits into from
Mar 3, 2022

Conversation

conradtchan
Copy link
Collaborator

Type of PR:
other

Description:

  • Small formatting and comment changes
  • Added #ifdef MPI around all use mpi statements in MPI-related modules, making them safe to call when compiling without MPI
  • Removed #ifdef MPI from density, force, and kdtree routines to improve code readability
  • Refactored conditional blocks in density and force to improve code readability
  • Aligned OMP pragmas with code indentation
  • Reorganised public and private variables and routines, hiding unnecessarily public declarations
  • Renamed MPI-related modules to begin with mpi_
  • Fixed some compiler warnings related to unused variables
  • Remove unused MPI functions

Testing:
Test suite with and without MPI enabled

Did you run the bots? yes

@conradtchan conradtchan requested a review from dliptai March 2, 2022 05:57
@dliptai
Copy link
Collaborator

dliptai commented Mar 3, 2022

Addresses #55

@conradtchan conradtchan merged commit 8743426 into danieljprice:master Mar 3, 2022
@conradtchan conradtchan deleted the use-mpi branch March 3, 2022 23:19
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