diff --git a/src/sphere/sphere.cpp b/src/sphere/sphere.cpp index c3dbdc02dc989224c70fa2b4bb3befc7840d91f6..c851f401c1009217b5d95910adf8ede554d1c169 100644 --- a/src/sphere/sphere.cpp +++ b/src/sphere/sphere.cpp @@ -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]; } } - 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] for (int zi = 0; zi < l_max; zi++) {