move source_base/memory.h to source_base/memory_recorder.h#7348
Merged
Conversation
added 3 commits
May 16, 2026 14:32
This commit renames the memory recording module from record_memory to memory_recorder.
**File Renames:**
- source/source_base/record_memory.h → memory_recorder.h
- source/source_base/record_memory.cpp → memory_recorder.cpp
**Header File Updates (35 files):**
Updated all #include references from "source_base/record_memory.h" to "source_base/memory_recorder.h" in:
- source_pw: sto_wf.cpp, sto_elecond.cpp, vnl_pw.cpp, structure_factor.cpp
- source_lcao: biggrid_info.cpp, gint_info.cpp, dftu.cpp, hcontainer.cpp, dspin_lcao.cpp,
hamilt_lcao.cpp, FORCE_gamma.cpp, FORCE_k.cpp, edm.cpp, klist_1.cpp
- source_hsolver: hsolver_lcao.cpp, parallel_k2d.cpp, diago_cg.cpp
- source_io: cal_test.cpp, write_wfc_nao.cpp
- source_estate: density_matrix.cpp, density_matrix_io.cpp, potential_new.cpp, charge.cpp
- source_esolver: esolver_sdft_pw.cpp, esolver_of_tool.cpp
- source_basis: pw_basis_k.cpp, two_center_bundle.cpp, ORB_gaunt_table.cpp
- source_base: memory_recorder.cpp, memory_test.cpp, sph_bessel_recursive-d2.cpp,
memory_op.cpp, memory_op.cu
- source_psi: psi_prepare.cpp
- source_main: driver.cpp
**CMakeLists.txt Updates (11 files):**
Updated all source file references from record_memory.cpp to memory_recorder.cpp in:
- source_relax/test/CMakeLists.txt
- source_pw/module_pwdft/test/CMakeLists.txt
- source_md/test/CMakeLists.txt
- source_io/test/CMakeLists.txt
- source_hamilt/module_xc/test/CMakeLists.txt
- source_cell/test/CMakeLists.txt
- source_basis/module_pw/kernels/test/CMakeLists.txt
- source_basis/module_pw/test/CMakeLists.txt
- source_basis/module_ao/test/CMakeLists.txt
- source_base/test/CMakeLists.txt
- source_base/test_parallel/CMakeLists.txt
- source_base/CMakeLists.txt
**Makefile Updates (1 file):**
- source_lcao/module_deepks/test/Makefile.Objects: Updated record_memory.o to memory_recorder.o
This change improves the naming consistency and clarity of the memory recording module.
Critsium-xy
approved these changes
May 16, 2026
Collaborator
Critsium-xy
left a comment
There was a problem hiding this comment.
This is a good change in filename. This makes the file's function clearer.
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
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.
move source_base/memory.h to source_base/record_memory.h