Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gcc10 warning in prepareMagneticFieldGrid #31146

Merged
merged 1 commit into from
Aug 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ void prepareMagneticFieldGrid::interpolateAtPoint(double X1, double X2, double X
void prepareMagneticFieldGrid::putCoordGetIndices(
double X1, double X2, double X3, int &Index1, int &Index2, int &Index3) {
double pnt[3] = {X1, X2, X3};
int index[3];
int index[3] = {0, 0, 0};

if (GridType < 5) {
for (int i = 0; i < 3; ++i) {
Expand Down Expand Up @@ -1477,7 +1477,7 @@ void prepareMagneticFieldGrid::putIndicesGetXAndB(
void prepareMagneticFieldGrid::putIndCalcXReturnB(
int Index1, int Index2, int Index3, double &X1, double &X2, double &X3, double &Bx, double &By, double &Bz) {
int index[3] = {Index1, Index2, Index3};
double pnt[3];
double pnt[3] = {0., 0., 0.};

if (GridType < 5) {
for (int i = 0; i < 3; ++i) {
Expand Down