neigh2D: neigh2D function

Description Usage Arguments Value

Description

A function to compute the neighbours of a cell on a toral grid

Usage

1
neigh2D(i, j, ns, M, N)

Arguments

i

cell index i

j

cell index j

ns

number of neighbours either side

M

size of grid in x direction

N

size of grid in y direction

Value

the cell indices of the neighbours


bentaylor1/lgcp documentation built on May 12, 2019, 2:09 p.m.