Skip to content

Commit

Permalink
Quick bug fix in getSolution (#226)
Browse files Browse the repository at this point in the history
When you call getSolution with multiple families the values calculated by the earlier families are zeroed on the iteration. 
I don't believe this was ever the intended behavior and frankly I'm surprised this was left on unfixed for so long.
  • Loading branch information
Josh Anibal authored Jul 7, 2022
1 parent ea3e48d commit ea9b0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solver/surfaceIntegrations.F90
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ subroutine getSolution(famLists, funcValues, globalValues)
! Extract the current family list
nFam = famLists(iGroup, 1)
famList => famLists(iGroup, 2:2+nFam-1)
funcValues = zero
funcValues(:, iGroup) = zero
localVal = zero

do sps=1, nTimeIntervalsSpectral
Expand Down

0 comments on commit ea9b0ed

Please sign in to comment.