Hello,
In a function I trying to call elements of a matrix one at time according to method of step forward and step backward in space. My problem is in the statement when I mention that to consider the element one step forward and one step backward as well so it will take obviously also that are logically not existed or you can say that are located outside the dimension of the matrix. I seems to be a very simple problem but :( I failed to tackle down at least... I just want to get rid of these elements during process and also the resulting value. Means both the elements and the associated result. Following is the function structure what I approached untill now but could not work well besides it compiles. Thanks in advance for helping hand
Well it will be really nice if somebody have a look on my function and suggest me how to ignore the values or elements like pressure_x[-1][j], pressure_y[-1][j], pressure_x[dim][j], pressure_y[dim][j], pressure_x[i][-1], pressure_y[i][-1], pressure_x[i][dim], pressure_y[i][dim], and same as with func[][] and value[][] terms.