/[escript]/trunk/finley/src/Util.c
ViewVC logotype

Diff of /trunk/finley/src/Util.c

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

revision 2424 by ksteube, Thu Sep 25 23:11:13 2008 UTC revision 2425 by gross, Thu May 14 09:06:35 2009 UTC
# Line 541  void Finley_Util_setValuesInUse(const in Line 541  void Finley_Util_setValuesInUse(const in
541                 if ((itmp>lastFoundValue) && (itmp<local_minFoundValue)) local_minFoundValue=itmp;                 if ((itmp>lastFoundValue) && (itmp<local_minFoundValue)) local_minFoundValue=itmp;
542              }              }
543              #pragma omp critical              #pragma omp critical
544              minFoundValue=MIN(local_minFoundValue,minFoundValue);              {
545                   if (local_minFoundValue<minFoundValue) minFoundValue=local_minFoundValue;
546                }
547    
548           }           }
549           #ifdef PASO_MPI           #ifdef PASO_MPI
550           local_minFoundValue=minFoundValue;           local_minFoundValue=minFoundValue;
551           MPI_Allreduce(&local_minFoundValue,&minFoundValue, 1, MPI_INT, MPI_MAX, mpiinfo->comm );           MPI_Allreduce(&local_minFoundValue,&minFoundValue, 1, MPI_INT, MPI_MIN, mpiinfo->comm );
552           #endif           #endif
   
553           /* if we found a new tag we need to add this too the valuesInUseList */           /* if we found a new tag we need to add this too the valuesInUseList */
554    
555           if (minFoundValue < INDEX_T_MAX) {           if (minFoundValue < INDEX_T_MAX) {

Legend:
Removed from v.2424  
changed lines
  Added in v.2425

  ViewVC Help
Powered by ViewVC 1.1.26