Here is part of my code. The rest is just the function definitions. .I have an array of 20 x 20 that outputs the temperature of a plate. I need to reiterate through a loop until no cell in the array changes more than 0.1 degree(I refresh the values through every iteration. How would you monitor the largest change for any cell in an array in order to determine when to stop iterating? Right now I have tried, but the below doesn't output correctly. I believe it is because I am incorrectly defining my previous one to compare the current one with. Any ideas?
That depends on which if statement you're referring to.
If you're referring to the if statement at line 23, that will wipe out the previous value on subsequent iterations through the loop.
BTW, what's the purpose of the if statement at line 11? It appears to prevent you from storing into the edges of the array. Not sure if that's what you intended.