/[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 1804 by gross, Mon Sep 8 02:28:38 2008 UTC revision 1805 by ksteube, Wed Sep 24 23:39:00 2008 UTC
# Line 111  int getNumberOfThreads() Line 111  int getNumberOfThreads()
111    
112  }  }
113    
114    int getMPISizeWorld() {
115      int mpi_num = 1;
116      #ifdef PASO_MPI
117      MPI_Comm_size(MPI_COMM_WORLD, &mpi_num);
118      #endif
119      return mpi_num;
120    }
121    
122    int getMPIRankWorld() {
123      int mpi_iam = 0;
124      #ifdef PASO_MPI
125      MPI_Comm_rank(MPI_COMM_WORLD, &mpi_iam);
126      #endif
127      return mpi_iam;
128    }
129    
130  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.1804  
changed lines
  Added in v.1805

  ViewVC Help
Powered by ViewVC 1.1.26