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

Fix valgrind detected invalid read

parent f88ad025
Branches
Tags
No related merge requests found
...@@ -225,7 +225,7 @@ void sphere(string config_file, string data_file, string output_path) { ...@@ -225,7 +225,7 @@ void sphere(string config_file, string data_file, string output_path) {
c1->rc[i116][j115] = sconf->get_rcf(i116, j115) * c1->ros[i116]; c1->rc[i116][j115] = sconf->get_rcf(i116, j115) * c1->ros[i116];
} }
} }
gcs += c1->gcsv[iogi]; gcs += c1->gcsv[iogi - 1];
} }
double ****zpv = new double***[l_max]; //[l_max][3][2][2]; // Matrix: dim[LM x 3 x 2 x 2] double ****zpv = new double***[l_max]; //[l_max][3][2][2]; // Matrix: dim[LM x 3 x 2 x 2]
for (int zi = 0; zi < l_max; zi++) { for (int zi = 0; zi < l_max; zi++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment