TransientVariable.
setMaskFromGridMask
Set the mask for self, given a grid mask and the variable domain indices corresponding to the grid dimensions.