From e8565772b048f81204747f0fbb22cea97a6fa78f Mon Sep 17 00:00:00 2001 From: dyzheng Date: Tue, 24 Mar 2026 21:26:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E6=9C=AA=E5=88=9D=E5=A7=8B=E5=8C=96=E9=97=AE=E9=A2=98=EF=BC=9A?= =?UTF-8?q?=E5=B0=86=20gamma=20=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=BA=200.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/source_relax/lattice_change_cg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/source_relax/lattice_change_cg.cpp b/source/source_relax/lattice_change_cg.cpp index 442b37e671..dea4ca9207 100644 --- a/source/source_relax/lattice_change_cg.cpp +++ b/source/source_relax/lattice_change_cg.cpp @@ -279,7 +279,7 @@ void Lattice_Change_CG::setup_cg_grad(double *grad, { ModuleBase::TITLE("Lattice_Change_CG", "setup_cg_grad"); assert(Lattice_Change_Basic::stress_step > 0); - double gamma; + double gamma == 0.0; double cg0_cg, cg0_cg0, cg0_g; if (ncggrad % 10000 == 0 || flag == 2) From 5e97059a2a9774111af4328d1d7e8d92afd1f853 Mon Sep 17 00:00:00 2001 From: xiyouhehua0601 <2274686429@qq.com> Date: Tue, 24 Mar 2026 21:50:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=9A=E5=B0=86=20gamma=20=E7=9A=84?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=8E=E6=AF=94=E8=BE=83=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/source_relax/lattice_change_cg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/source_relax/lattice_change_cg.cpp b/source/source_relax/lattice_change_cg.cpp index dea4ca9207..1ed2449c26 100644 --- a/source/source_relax/lattice_change_cg.cpp +++ b/source/source_relax/lattice_change_cg.cpp @@ -279,7 +279,7 @@ void Lattice_Change_CG::setup_cg_grad(double *grad, { ModuleBase::TITLE("Lattice_Change_CG", "setup_cg_grad"); assert(Lattice_Change_Basic::stress_step > 0); - double gamma == 0.0; + double gamma = 0.0; double cg0_cg, cg0_cg0, cg0_g; if (ncggrad % 10000 == 0 || flag == 2)