rewrite parallelism for createP1mesh