Skip to content

Remove parameter.h include of files in source_base#7318

Merged
mohanchen merged 6 commits into
deepmodeling:developfrom
Critsium-xy:remove_parameter_h
May 7, 2026
Merged

Remove parameter.h include of files in source_base#7318
mohanchen merged 6 commits into
deepmodeling:developfrom
Critsium-xy:remove_parameter_h

Conversation

@Critsium-xy
Copy link
Copy Markdown
Collaborator

@Critsium-xy Critsium-xy commented May 7, 2026

About this PR:

Because modules in source_base is quite basic, so changing the function parameters directly will lead to a extremely huge change in the whole project.

So I added static variables, then injecting them when reading INPUT instead of directly using global variables or input parameters. In this way these files can get rid of having to include parameter.h to get the parameter.

About variables:

g_xxx means global_xxx

And the next PR is about global_file.cpp. It will affect a huge amount of files so it will not included in this PR.

@Critsium-xy Critsium-xy marked this pull request as ready for review May 7, 2026 07:29
@Critsium-xy Critsium-xy marked this pull request as draft May 7, 2026 08:10
@Critsium-xy Critsium-xy marked this pull request as ready for review May 7, 2026 08:41
@Critsium-xy
Copy link
Copy Markdown
Collaborator Author

There are about 5 files left to work on after this PR

Copy link
Copy Markdown
Collaborator

@mohanchen mohanchen left a comment

Choose a reason for hiding this comment

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

LGTM

@mohanchen mohanchen added Features Needed The features are indeed needed, and developers should have sophisticated knowledge Refactor Refactor ABACUS codes The Absolute Zero Reduce the "entropy" of the code to 0 and removed Features Needed The features are indeed needed, and developers should have sophisticated knowledge labels May 7, 2026
@mohanchen mohanchen merged commit 49c309c into deepmodeling:develop May 7, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactor ABACUS codes The Absolute Zero Reduce the "entropy" of the code to 0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants