Hi, I am working on a finite-volume numerical method project. I am not
great at programming though. I am looking for the best way to
represent this grid in C. The grid consists of N points spaced at
deltaX = Xmax/N where Xi = (i-1/2)*deltaX, i = 1, 2, 3,...N.
Furthermore there are cell interfaces located at Xi+1/2 and Xi-1/2 and
each interface has a + and - side.
Obviously I can declare Q[N+1] and get Q[i], Q[i+1], Q[i-1] for the
grid points but I am not sure the best way to represent Q[i+1/2]+ and
Q[i+1/2]-, and Q[i-1/2], etc. which are needed in my calculations.
Thank You,
Stephen