Skip to content

Commit

Permalink
Fix potential indexing issue and remove CentOS7 from CI workflows (#47)
Browse files Browse the repository at this point in the history
* Remove no longer supported CentOS7 from Key4hep workflows

* Fix potential index swap
  • Loading branch information
tmadlener committed Aug 26, 2024
1 parent 881c266 commit e473dcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/key4hep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
build_type: ["release", "nightly"]
image: ["alma9", "ubuntu22", "centos7"]
image: ["alma9", "ubuntu22"]
fail-fast: false

steps:
Expand Down
4 changes: 2 additions & 2 deletions source/src/WeightedPoints3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -885,8 +885,8 @@ void WeightedPoints3D::propagateVecErrorsCartesian(){
Dmat[1][1] = sin(phi)*cos(theta) ;
Dmat[2][1] = -sin(theta) ;
double thph_dmat [2][3];
for ( int i =0 ; i < 3 ; i++ ) {
for ( int j=0 ; j < 2 ; j++ ) {
for ( int i =0 ; i < 2 ; i++ ) {
for ( int j=0 ; j < 3 ; j++ ) {
thph_dmat [i][j] = 0. ;
for (int k=0 ; k < 2 ; k++ ) {
thph_dmat [i][j] += _theta_phi_cov[i][k][l]*Dmat[j][k];
Expand Down

0 comments on commit e473dcf

Please sign in to comment.