Commit fd14bc4e authored by Boudewijn Rempt's avatar Boudewijn Rempt

Initialize all arrays

CID:248835,248811,248799
parent 7782c26f
......@@ -207,7 +207,10 @@ find_NUBcoefs_1d_s (NUBasis* restrict basis, BCtype_s bc,
else {
int M = basis->grid->num_points;
// Setup boundary conditions
float bfuncs[4], dbfuncs[4], abcd_left[4], abcd_right[4];
float bfuncs[4] = {};
float dbfuncs[4] = {};
float abcd_left[4] = {};
float 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