Parallel mesh generation and the sub-domain generation method