Changeset 14287


Ignore:
Timestamp:
01/25/13 15:24:06 (12 years ago)
Author:
Eric.Larour
Message:

CHG: openmpi incompatible, fixed bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/classes/IssmComm.cpp

    r13701 r14287  
    2121        int my_rank = 0;
    2222
     23       
     24        #ifdef _HAVE_MPI_
     25        MPI_Comm_rank(comm,&my_rank);
     26        #else
    2327        /*for matlab and python modules, comm == -1*/
    2428        if((int)comm==-1) return my_rank;
    25 
    26         #ifdef _HAVE_MPI_
    27         MPI_Comm_rank(comm,&my_rank);
    2829        #endif
    2930
     
    3536        int size = 1;
    3637
    37         /*for matlab and python modules, comm == -1*/
    38         if((int)comm==-1) return size;
    39 
    4038        #ifdef _HAVE_MPI_
    4139        MPI_Comm_size(comm,&size);
Note: See TracChangeset for help on using the changeset viewer.