view flat_index.m @ 589:53d422efaabd feature/better_multiblock_defs

Remove abstract methods getGridSizes from multiblock.Definition
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 11 Sep 2017 13:57:04 +0200
parents 48b6fb693025
children
line wrap: on
line source

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