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

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

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

revision 2307 by gross, Wed Nov 26 08:13:00 2008 UTC revision 2308 by gross, Mon Mar 16 01:20:56 2009 UTC
# Line 131  int getMPIRankWorld() { Line 131  int getMPIRankWorld() {
131    return mpi_iam;    return mpi_iam;
132  }  }
133    
134    ESCRIPT_DLL_API int getMPIWorldMax(const int val) {
135      #ifdef PASO_MPI
136      int val2 = val;
137      int out = val;
138      MPI_Allreduce( &val2, &out, 1, MPI_INT, MPI_MAX, MPI_COMM_WORLD );
139      #else
140      int out = val;
141      #endif
142      return out;
143    }
144    
145      
146    
147  double getMachinePrecision() {  double getMachinePrecision() {
148     return DBL_EPSILON;     return DBL_EPSILON;
149  }  }

Legend:
Removed from v.2307  
changed lines
  Added in v.2308

  ViewVC Help
Powered by ViewVC 1.1.26