view flat_index.m @ 605:0f9d20dbb7ce feature/utux2D

Add centered interface coupling in addition to upwind
author Martin Almquist <malmquist@stanford.edu>
date Thu, 05 Oct 2017 20:21:20 -0700
parents 48b6fb693025
children
line wrap: on
line source

function I = flat_index(n,i,j)
    I = i + (j - 1)*n;
end