view flat_index.m @ 1262:b673081db86b feature/poroelastic

Rename the Staggered1d grid class Staggered
author Martin Almquist <malmquist@stanford.edu>
date Wed, 29 Apr 2020 21:03:28 -0700
parents 48b6fb693025
children
line wrap: on
line source

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