change parallelism check to make sure the same path is taken on all procs
parallelize elemental solution writing