attach.master

Syntax

g = attach.master(a<,i>)

Get the master gridpoint pointer. For type 1 attachments (gridpoint to gridpoint), returns a pointer to the master gridpoint. Parameter i is not required. For type 2 attachments (edge to gridpoint), returns a pointer to the master gridpoint. The function will return the pointer to the master gridpoint 1 or master gridpoint 2, depending on whether i is 1 or 2. For type 3 attachments (face to gridpoint), returns the pointer to the master gridpoint 1, 2, 3, or 4.

Returns:

g - gridpoint pointer

Arguments:

a - attach pointer

i - integer, if not given it is assumed to be 1