Hi there, I'm relatively new to c++ and I'm trying to write a fairly simple simulation.
The simulation involves updating values in a grid based on the values of neighbouring nodes, and I'm working with polar coordinates.
Say I have an array A[200] and I iterate using an update equation of say;
A[i] = (A[i+1] + A[i-1])/2;
This is fine except at the boundaries, where asking for A[i-1] at i=0...