conditional omp for csolve