view flat_index.m @ 533:06d1606d6977 feature/boundaryGroup

Factor out function for handling a single boundary condition
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 03 Aug 2017 17:45:06 +0200
parents 48b6fb693025
children
line wrap: on
line source

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