00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #include "mpioimpl.h"
00009 
00010 #ifdef HAVE_WEAK_SYMBOLS
00011 
00012 #if defined(HAVE_PRAGMA_WEAK)
00013 #pragma weak MPI_File_get_type_extent = PMPI_File_get_type_extent
00014 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
00015 #pragma _HP_SECONDARY_DEF PMPI_File_get_type_extent MPI_File_get_type_extent
00016 #elif defined(HAVE_PRAGMA_CRI_DUP)
00017 #pragma _CRI duplicate MPI_File_get_type_extent as PMPI_File_get_type_extent
00018 
00019 #endif
00020 
00021 
00022 #define MPIO_BUILD_PROFILING
00023 #include "mpioprof.h"
00024 #endif
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 int MPI_File_get_type_extent(MPI_File mpi_fh, MPI_Datatype datatype, 
00039                              MPI_Aint *extent)
00040 {
00041     int error_code;
00042     ADIO_File fh;
00043     static char myname[] = "MPI_FILE_GET_TYPE_EXTENT";
00044 
00045     fh = MPIO_File_resolve(mpi_fh);
00046 
00047     
00048     MPIO_CHECK_FILE_HANDLE(fh, myname, error_code);
00049     MPIO_CHECK_DATATYPE(fh, datatype, myname, error_code);
00050     
00051 
00052     
00053 
00054     error_code = MPI_Type_extent(datatype, extent);
00055 
00056 fn_exit:
00057     return error_code;
00058 }