/[escript]/trunk/escript/src/DataFactory.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataFactory.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 984 by gross, Tue Feb 20 02:49:08 2007 UTC revision 985 by gross, Tue Feb 20 04:02:10 2007 UTC
# Line 219  load(const std::string fileName, Line 219  load(const std::string fileName,
219        int failed=-1, local_failed=-1, i;        int failed=-1, local_failed=-1, i;
220        #pragma omp parallel private(local_failed)        #pragma omp parallel private(local_failed)
221        {        {
222              local_failed=-1;
223            #pragma omp for private(i) schedule(static)            #pragma omp for private(i) schedule(static)
224            for (i=0;i < num_samples; ++i)            for (i=0;i < num_samples; ++i) {
225                if (ids_of_nc[i]!=ids_p[i]) local_failed=i;                if (ids_of_nc[i]!=ids_p[i]) local_failed=i;
226              }
227            #pragma omp critical            #pragma omp critical
228            if (local_failed>=0) failed = local_failed;            if (local_failed>=0) failed = local_failed;
229        }        }

Legend:
Removed from v.984  
changed lines
  Added in v.985

  ViewVC Help
Powered by ViewVC 1.1.26