Skip to content

2026PKUCourseHW5: Fix uninitialized variable in lattice_change_cg.cpp#7038

Merged
mohanchen merged 2 commits intodeepmodeling:developfrom
PKUJZX:hw5-fix-case
Mar 19, 2026
Merged

2026PKUCourseHW5: Fix uninitialized variable in lattice_change_cg.cpp#7038
mohanchen merged 2 commits intodeepmodeling:developfrom
PKUJZX:hw5-fix-case

Conversation

@PKUJZX
Copy link
Copy Markdown

@PKUJZX PKUJZX commented Mar 18, 2026

修复内容:修复了 source/source_relax/lattice_change_cg.cpp 文件中变量声明后未初始化的问题(作业案例9)。
修复方法:在声明时直接赋初值(如 = 0.0;),避免潜在的未定义行为。

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 the Refactor Refactor ABACUS codes label Mar 19, 2026
@mohanchen mohanchen merged commit eb1665c into deepmodeling:develop Mar 19, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants