~ubuntu-branches/ubuntu/vivid/mpich/vivid-proposed

« back to all changes in this revision

Viewing changes to src/mpi/datatype/type_lb.c

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-04-01 20:24:20 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140401202420-t5ey1ia2klt5dkq3
Tags: 3.1-4
* [c3e3398] Disable test_primitives, which is unreliable on some platforms.
            (Closes: #743047)
* [265a699] Add minimal autotest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
int MPI_Type_lb(MPI_Datatype datatype, MPI_Aint *displacement)
70
70
{
71
71
    int mpi_errno = MPI_SUCCESS;
72
 
    MPID_Datatype *datatype_ptr = NULL;
73
72
    MPID_MPI_STATE_DECL(MPID_STATE_MPI_TYPE_LB);
74
73
 
75
74
    MPIR_ERRTEST_INITIALIZED_ORDIE();
87
86
    }
88
87
#   endif
89
88
 
90
 
    /* Convert MPI object handles to object pointers */
91
 
    MPID_Datatype_get_ptr(datatype, datatype_ptr);
92
 
 
93
89
    /* Validate parameters and objects (post conversion) */
94
90
#   ifdef HAVE_ERROR_CHECKING
95
91
    {
96
92
        MPID_BEGIN_ERROR_CHECKS;
97
93
        {
 
94
            MPID_Datatype *datatype_ptr = NULL;
 
95
 
 
96
            /* Convert MPI object handles to object pointers */
 
97
            MPID_Datatype_get_ptr(datatype, datatype_ptr);
 
98
 
98
99
            /* Validate datatype_ptr */
99
100
            MPID_Datatype_valid_ptr(datatype_ptr, mpi_errno);
100
101
            if (mpi_errno) goto fn_fail;