Skip to content

Try removing GlobalC::exx_info#7575

Open
mohanchen wants to merge 19 commits into
deepmodeling:developfrom
mohanchen:2026-07-01
Open

Try removing GlobalC::exx_info#7575
mohanchen wants to merge 19 commits into
deepmodeling:developfrom
mohanchen:2026-07-01

Conversation

@mohanchen

Copy link
Copy Markdown
Collaborator

Try removing GlobalC::exx_info

@mohanchen mohanchen requested a review from Critsium-xy July 1, 2026 07:46
@mohanchen mohanchen added Refactor Refactor ABACUS codes The Absolute Zero Reduce the "entropy" of the code to 0 labels Jul 1, 2026
@mohanchen mohanchen requested review from Flying-dragon-boxing and removed request for Critsium-xy July 2, 2026 00:19
@Flying-dragon-boxing

Copy link
Copy Markdown
Collaborator
图片

I'm not sure if such a code style fix should be included in this PR.

Aside from this, this PR is a intermediate state of removing GlobalC::exx_info. Given that this PR doesn't break the tested XC functionals, it might be OK to merge.

int func_type = XC_Functional::get_func_type();
if (func_type == 0 || func_type == 1)
{
ModuleBase::timer::end("Stress","stress_gga");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One note from codex: stress_gga.cpp directly uses ModuleBase::timer::start/end, so source_base/timer.h should remain a direct include. CI did compile successfully, so the issue may currently be masked by transitive includes in that configuration. Still, relying on transitive declarations is fragile, and keeping the direct include makes this translation unit self-contained. I’ll restore it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

OK, good suggestion

sigma_gradcorr[m][l] = sigma_gradcorr[l][m];
}
}
{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if this PR should be responsible for replacing tabs with spaces.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think it is OK.

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