Flood fill for phase field