Changeset 13558


Ignore:
Timestamp:
10/05/12 16:56:21 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: reverted back to previous revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/mpi/patches/DetermineLocalSize.cpp

    r13555 r13558  
    77#include "../../../shared/shared.h"
    88
    9 int DetermineLocalSize(int global_size,MPI_Comm comm){
    10 
    11         /*size of comm: */
    12         int my_rank,num_procs;
     9int DetermineLocalSize(int global_size){
    1310
    1411        /*output: */
     
    2017        int* num_local_rows=NULL;
    2118
    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       
    3123        /*We are  not bound by any library, just use what seems most logical*/
    3224        num_local_rows=xNew<int>(num_procs);   
Note: See TracChangeset for help on using the changeset viewer.