Skip to content
Snippets Groups Projects
Commit 36e2539a authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Zero-init vectors in hjv()

parent 271124f8
No related branches found
No related tags found
No related merge requests found
...@@ -1185,8 +1185,8 @@ void hjv( ...@@ -1185,8 +1185,8 @@ void hjv(
const int rfj_size = (lit > lmt) ? lit : lmt; const int rfj_size = (lit > lmt) ? lit : lmt;
const int rfn_size = c4->litpo; const int rfn_size = c4->litpo;
double *rfj, *rfn; double *rfj, *rfn;
rfj = new double[rfj_size]; rfj = new double[rfj_size]();
rfn = new double[rfn_size]; rfn = new double[rfn_size]();
jer = 0; jer = 0;
int ivhb = 0; int ivhb = 0;
for (int nf40 = 1; nf40 <= nsphmo; nf40++) { // GPU portable? for (int nf40 = 1; nf40 <= nsphmo; nf40++) { // GPU portable?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment