Skip to content

Commit 7de58a0

Browse files
lxz2023lxz2023
andauthored
2026PKUCourseHW5:mathzone_add1/Line 66:Variable initialization (#7181)
Co-authored-by: lxz2023 <root@LxiaoxinXZ.localdomain>
1 parent 2aa8583 commit 7de58a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/source_base/mathzone_add1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void Mathzone_Add1::SplineD2 // modified by pengfei 13-8-8 add second derivative
6363
{
6464
ModuleBase::timer::start("Mathzone_Add1","SplineD2");
6565

66-
double dx1, dx2, dy1, dy2, p, qn, sig, un;
66+
double dx1 = 0.0, dx2 = 0.0, dy1 = 0.0, dy2 = 0.0, p = 0.0, qn = 0.0, sig = 0.0, un = 0.0;
6767
double * u = nullptr;
6868

6969
u = new double[mesh-1];

0 commit comments

Comments
 (0)