The problem here was that we were setting a variable equal to an array slice, and then assigning it with the results of the time step's drought calculation. However, in order for that to work as intended, we have to do it in a way that doesn't rebind the reference. This fix should do the trick, based on some simple tests:
That said, I haven't been able to test this, since I don't have Xanthos set up to run anywhere. If one of you guys could do a short run to verify that this does the trick, I'd be much obliged.
The problem here was that we were setting a variable equal to an array slice, and then assigning it with the results of the time step's drought calculation. However, in order for that to work as intended, we have to do it in a way that doesn't rebind the reference. This fix should do the trick, based on some simple tests:
That said, I haven't been able to test this, since I don't have Xanthos set up to run anywhere. If one of you guys could do a short run to verify that this does the trick, I'd be much obliged.