-
Notifications
You must be signed in to change notification settings - Fork 3
Code improvements #11
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Applied comprehensive naming standardization across entire codebase: - All struct/class member variables now have m_ prefix - Updated 347 files with 7,063 naming changes - Refactored all major structs: HyPar, TimeIntegration, PETScContext, MPIVariables - Refactored IB structs: Facet3D, FacetMap, Body3D, IBNode, ImmersedBoundary - Refactored interpolation structs: MUSCLParameters, WENOParameters, CompactScheme - Refactored utility structs: DomainBoundary, BandedMatrix, TridiagLU_Params - Refactored all PhysicalModel structs across 16 physics modules - Function pointers correctly excluded from m_ prefix - All compilation successful, all 8 unit tests passing Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
GPU CUDA files were not updated in previous struct member refactoring, causing MPI build errors (e.g., 'world' should be 'm_world'). Updated all GPU files to use m_ prefix for struct members: - MPIVariables: ip, iproc, bcperiodic, world, rank, nproc, comm - HyPar: ndims, nvars, ghosts, u, hyp, par, source, dim_local, x, dxinv - DomainBoundary: on_this_proc Fixes compilation for MPI builds with GPU support. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- Fixed function parameter naming to use a_ prefix consistently
- MPIBroadcast.c, MPIMax.c, MPIMin.c, MPISum.c: comm → a_comm
- MPIExchangeBoundaries1D.c: ndims → a_ndims
- MPIExchangeBoundariesnD.c: var → a_var
- All TridiagLU files: m → a_m
- Fixed struct member naming: world → m_world
- sparse_grids_simulation.h, ensemble_simulations.h, single_simulation.h
- Fixed format string: %a_s → %s in ReadArray.c
- Renamed all static variables to have s_ prefix
- Static constants: one_twelve, tolerance, one_fourth, thirteen_by_twelve, etc.
- Static counters: count
- Updated both declarations and all usages
- Fixed macro definitions in interpolation.h
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
- VlasovCleanup.c: Fixed all FFTW-related struct members - VlasovInitialize.c: Fixed all FFTW-related struct members - VlasovEField.c: Fixed all FFTW-related struct members Members renamed to follow m_ convention for consistency with recent naming convention changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A bunch of code refactorings
m_a_s_To do: