I have written a code for finite difference scheme using Jacobi iteration. The code works, but i am not sure how can i insert a stopping criteria that terminates the iteration when the error is below a threshold value. Below are excerpts of my code:
global void JacobiIteration(float* u,int n)
Thanks in advanced.