Skip to content

Commit

Permalink
Fix potential index swap
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Aug 23, 2024
1 parent 94f8a64 commit e915c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/src/WeightedPoints3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -887,9 +887,9 @@ void WeightedPoints3D::propagateVecErrorsCartesian(){
double thph_dmat [2][3];
for ( int i =0 ; i < 3 ; i++ ) {
for ( int j=0 ; j < 2 ; j++ ) {
thph_dmat [i][j] = 0. ;
thph_dmat [j][i] = 0. ;
for (int k=0 ; k < 2 ; k++ ) {
thph_dmat [i][j] += _theta_phi_cov[i][k][l]*Dmat[j][k];
thph_dmat [j][i] += _theta_phi_cov[i][k][l]*Dmat[j][k];
}
}
}
Expand Down

0 comments on commit e915c1f

Please sign in to comment.