root/ompi/mpi/fortran/mpif-h/type_get_extent_x_f.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. ompi_type_get_extent_x_f

   1 /*
   2  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3  *                         University Research and Technology
   4  *                         Corporation.  All rights reserved.
   5  * Copyright (c) 2004-2013 The University of Tennessee and The University
   6  *                         of Tennessee Research Foundation.  All rights
   7  *                         reserved.
   8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9  *                         University of Stuttgart.  All rights reserved.
  10  * Copyright (c) 2004-2005 The Regents of the University of California.
  11  *                         All rights reserved.
  12  * Copyright (c) 2011-2013 Cisco Systems, Inc.  All rights reserved.
  13  * Copyright (c) 2013      Los Alamos National Security, LLC. All rights
  14  *                         reserved.
  15  * Copyright (c) 2015      Research Organization for Information Science
  16  *                         and Technology (RIST). All rights reserved.
  17  * $COPYRIGHT$
  18  *
  19  * Additional copyrights may follow
  20  *
  21  * $HEADER$
  22  */
  23 
  24 #include "ompi_config.h"
  25 
  26 #include "ompi/mpi/fortran/mpif-h/bindings.h"
  27 
  28 #if OMPI_BUILD_MPI_PROFILING
  29 #if OPAL_HAVE_WEAK_SYMBOLS
  30 #pragma weak PMPI_TYPE_GET_EXTENT_X = ompi_type_get_extent_x_f
  31 #pragma weak pmpi_type_get_extent_x = ompi_type_get_extent_x_f
  32 #pragma weak pmpi_type_get_extent_x_ = ompi_type_get_extent_x_f
  33 #pragma weak pmpi_type_get_extent_x__ = ompi_type_get_extent_x_f
  34 
  35 #pragma weak PMPI_Type_get_extent_x_f = ompi_type_get_extent_x_f
  36 #pragma weak PMPI_Type_get_extent_x_f08 = ompi_type_get_extent_x_f
  37 #else
  38 OMPI_GENERATE_F77_BINDINGS (PMPI_TYPE_GET_EXTENT_X,
  39                            pmpi_type_get_extent_x,
  40                            pmpi_type_get_extent_x_,
  41                            pmpi_type_get_extent_x__,
  42                            pompi_type_get_extent_x_f,
  43                            (MPI_Fint *type, MPI_Count *lb, MPI_Count *extent, MPI_Fint *ierr),
  44                            (type, lb, extent, ierr) )
  45 #endif
  46 #endif
  47 
  48 #if OPAL_HAVE_WEAK_SYMBOLS
  49 #pragma weak MPI_TYPE_GET_EXTENT_X = ompi_type_get_extent_x_f
  50 #pragma weak mpi_type_get_extent_x = ompi_type_get_extent_x_f
  51 #pragma weak mpi_type_get_extent_x_ = ompi_type_get_extent_x_f
  52 #pragma weak mpi_type_get_extent_x__ = ompi_type_get_extent_x_f
  53 
  54 #pragma weak MPI_Type_get_extent_x_f = ompi_type_get_extent_x_f
  55 #pragma weak MPI_Type_get_extent_x_f08 = ompi_type_get_extent_x_f
  56 #else
  57 #if ! OMPI_BUILD_MPI_PROFILING
  58 OMPI_GENERATE_F77_BINDINGS (MPI_TYPE_GET_EXTENT_X,
  59                            mpi_type_get_extent_x,
  60                            mpi_type_get_extent_x_,
  61                            mpi_type_get_extent_x__,
  62                            ompi_type_get_extent_x_f,
  63                            (MPI_Fint *type, MPI_Count *lb, MPI_Count *extent, MPI_Fint *ierr),
  64                            (type, lb, extent, ierr) )
  65 #else
  66 #define ompi_type_get_extent_x_f pompi_type_get_extent_x_f
  67 #endif
  68 #endif
  69 
  70 
  71 void ompi_type_get_extent_x_f(MPI_Fint *type, MPI_Count *lb,
  72                            MPI_Count *extent, MPI_Fint *ierr)
  73 {
  74     int c_ierr;
  75     MPI_Datatype c_type = PMPI_Type_f2c(*type);
  76 
  77     c_ierr = PMPI_Type_get_extent_x(c_type, lb, extent);
  78     if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);
  79 }

/* [<][>][^][v][top][bottom][index][help] */