/* * This program captures VSL ticket #544 * https://vsl.cis.udel.edu/trac/civl/ticket/544 * which reports an error in the OpenMP Simplifier. */ #include #include #include #ifdef _CIVL #define N 4 #define NEDGES 3 #else #define N 4 #define NEDGES 3 #endif void residualPrllel(double uin[N], double resout[N], int edges[NEDGES][2], int colourIA[3]) { for(int c=0; c<2; c++) { #pragma omp parallel for default(none) shared(edges,uin,resout,colourIA,c) for(int e=colourIA[c]; e