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

« back to all changes in this revision

Viewing changes to src/mpi/romio/adio/common/eof_offset.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:
13
13
 
14
14
void ADIOI_Get_eof_offset(ADIO_File fd, ADIO_Offset *eof_offset)
15
15
{
16
 
    unsigned filetype_size;
17
 
    int error_code, filetype_is_contig, etype_size;
18
 
    ADIO_Offset fsize, disp, sum=0, size_in_file, n_filetypes, rem;
 
16
    MPI_Count filetype_size;
 
17
    int error_code, filetype_is_contig;
 
18
    ADIO_Offset fsize, disp, sum=0, size_in_file, n_filetypes, rem, etype_size;
19
19
    int flag, i;
20
20
    ADIO_Fcntl_t *fcntl_struct;
21
21
    MPI_Aint filetype_extent;
44
44
        while (flat_file->type != fd->filetype) 
45
45
            flat_file = flat_file->next;
46
46
        
47
 
        MPI_Type_size(fd->filetype, (int*)&filetype_size);
 
47
        MPI_Type_size_x(fd->filetype, &filetype_size);
48
48
        MPI_Type_extent(fd->filetype, &filetype_extent);
49
49
 
50
50
        disp = fd->disp;