view flat_index.m @ 653:2351a7690e8a feature/d1_staggered

Clean up and improve comments in StaggeredVariable
author Martin Almquist <malmquist@stanford.edu>
date Mon, 04 Dec 2017 11:18:13 -0800
parents 48b6fb693025
children
line wrap: on
line source

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