Enhance masking options
Created by: jdha
You have two options: Either you don't supply a mask - i.e. set that option to be false - and the code produces one for you making the boundary 1 grid point inside the outer halo or You provide a mask that has 1s for the active domain, 0s for land or -1s for ocean not in the active domain. If the -1s aren't provided that code has no way of knowing where the boundary is. In the case of the second option - if a user supplies a mask of 0s and 1s we could throw a warning and then revert to the first option whereby a boundary bordering the outer halo is assumed.