Coping with complex boundaries