Changeset 13558
- Timestamp:
- 10/05/12 16:56:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/mpi/patches/DetermineLocalSize.cpp
r13555 r13558 7 7 #include "../../../shared/shared.h" 8 8 9 int DetermineLocalSize(int global_size,MPI_Comm comm){ 10 11 /*size of comm: */ 12 int my_rank,num_procs; 9 int DetermineLocalSize(int global_size){ 13 10 14 11 /*output: */ … … 20 17 int* num_local_rows=NULL; 21 18 22 /*retrieve my_rank: */ 23 #ifdef _HAVE_MPI_ 24 MPI_Comm_rank(comm,&my_rank); 25 MPI_Comm_size(comm,&num_procs); 26 #else 27 my_rank=0; 28 num_procs=1; 29 #endif 30 19 /*from MPI: */ 20 extern int num_procs; 21 extern int my_rank; 22 31 23 /*We are not bound by any library, just use what seems most logical*/ 32 24 num_local_rows=xNew<int>(num_procs);
Note:
See TracChangeset
for help on using the changeset viewer.