opreplace.c 812 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
 *
 *  (C) 2012 by Argonne National Laboratory.
 *      See COPYRIGHT in top-level directory.
 */

#include "mpiimpl.h"


#undef FUNCNAME
#define FUNCNAME MPIR_REPLACE
#undef FCNAME
#define FCNAME MPIU_QUOTE(FUNCNAME)
void MPIR_REPLACE( void *invec, void *inoutvec, int *Len, MPI_Datatype *type )
{
    int mpi_errno = MPI_SUCCESS;

    mpi_errno = MPIR_Localcopy(invec, *Len, *type, inoutvec, *Len, *type);
    if (mpi_errno) { MPIU_ERR_POP(mpi_errno); }

  fn_exit:
    return;
    /* --BEGIN ERROR HANDLING-- */
  fn_fail:
    goto fn_exit;
    /* --END ERROR HANDLING-- */
}


#undef FUNCNAME
#define FUNCNAME MPIR_REPLACE_check_dtype
#undef FCNAME
#define FCNAME MPIU_QUOTE(FUNCNAME)
int MPIR_REPLACE_check_dtype( MPI_Datatype type )
{
    return MPI_SUCCESS;
}