Commit f98fbd2f authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix uninitialized scalar values

CID:248693,248678,248652
parent 0cb5076c
......@@ -549,7 +549,11 @@ find_NUBcoefs_1d_d (NUBasis* restrict basis, BCtype_d bc,
else {
int M = basis->grid->num_points;
// Setup boundary conditions
double bfuncs[4], dbfuncs[4], abcd_left[4], abcd_right[4];
double bfuncs[4] {};
double dbfuncs[4] {};
double abcd_left[4] {};
double abcd_right[4] {};
// Left boundary
if (bc.lCode == FLAT || bc.lCode == NATURAL)
bc.lVal = 0.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment