Changeset 20150


Ignore:
Timestamp:
02/12/16 16:16:14 (9 years ago)
Author:
Eric.Larour
Message:

CHG: fixed redefinition of ISSM_MPI_Send.

File:
1 edited

Legend:

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

    r20149 r20150  
    494494#endif
    495495}/*}}}*/
    496 int ISSM_MPI_Send(void *buf, int count, ISSM_MPI_Datatype datatype, int dest, int tag, ISSM_MPI_Comm comm){ /*{{{*/
    497 
    498   int rc=0;
    499 #ifdef _HAVE_MPI_
    500 # ifdef _HAVE_AMPI_
    501   rc=AMPI_Send(buf,
    502                count,
    503                datatype,
    504                dest,
    505                tag,
    506                AMPI_TO_RECV, // as long as there are no other variants
    507                comm);
    508 # else
    509   rc=MPI_Send(buf,
    510               count,
    511               datatype,
    512               dest,
    513               tag,
    514               comm);
     496int ISSM_MPI_Comm_split(ISSM_MPI_Comm comm, int color, int key, ISSM_MPI_Comm *newcomm){ /*{{{*/
     497
     498int rc=0;
     499#ifdef _HAVE_MPI_
     500# ifdef _HAVE_AMPI_
     501rc MPI_Comm_split(comm, color, key, newcomm);
     502# else
     503rc MPI_Comm_split(comm, color, key, newcomm);
    515504# endif
    516505#else
     
    519508  return rc;
    520509}/*}}}*/
    521 int ISSM_MPI_Comm_split(ISSM_MPI_Comm comm, int color, int key, ISSM_MPI_Comm *newcomm){ /*{{{*/
    522 
    523 int rc=0;
    524 #ifdef _HAVE_MPI_
    525 # ifdef _HAVE_AMPI_
    526 rc MPI_Comm_split(comm, color, key, newcomm);
    527 # else
    528 rc MPI_Comm_split(comm, color, key, newcomm);
    529 # endif
    530 #else
    531 // nothing to be done here
    532 #endif
    533   return rc;
    534 }/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.