Skip to content

Commit

Permalink
fix: Correct index used to select interpolator in initial stellar mass
Browse files Browse the repository at this point in the history
  • Loading branch information
abensonca committed Sep 25, 2023
1 parent bbbdd80 commit 7655711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/stellar_astrophysics.tracks.file.F90
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ subroutine fileInterpolationCompute(self,initialMass,metallicity,age,interpolati
interpolationFactorsMass(iMetallicity,:)=[0.0d0,1.0d0]
massOutOfRange=.true.
else
call self%interpolatorMass(iMetallicity)%linearFactors(initialMass,interpolationIndicesMass(iMetallicity,1),interpolationFactorsMass(iMetallicity,:))
call self%interpolatorMass(jMetallicity)%linearFactors(initialMass,interpolationIndicesMass(iMetallicity,1),interpolationFactorsMass(iMetallicity,:))
interpolationIndicesMass(iMetallicity,2)=interpolationIndicesMass(iMetallicity,1)+1
end if
! Loop over masses.
Expand Down

1 comment on commit 7655711

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Milky Way model benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.10.

Benchmark suite Current: 7655711 Previous: 7929a8e Ratio
Milky Way model - Likelihood - localGroupMassVelocityDispersionRelation 1.1512787904706 -logℒ 0.924168114205167 -logℒ 1.25
Milky Way model - Likelihood - localGroupStellarMassHaloMassRelation 10.7592151656849 -logℒ 9.63167271522589 -logℒ 1.12

This comment was automatically generated by workflow using github-action-benchmark.

CC: @abensonca

Please sign in to comment.