Changeset 625

Show
Ignore:
Timestamp:
10/30/08 15:46:39 (4 months ago)
Author:
kgao
Message:

remove warning, int64_t is replaced by MPI_Offset

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CDF3/src/lib/attr.c

    r613 r625  
    1717 
    1818/* Prototypes of functions only used in this file */ 
    19 static NC_attr *elem_NC_attrarray(const NC_attrarray *ncap, int64_t elem); 
     19static NC_attr *elem_NC_attrarray(const NC_attrarray *ncap, size_t elem); 
    2020 
    2121/* 
     
    3939 *  external representation (as the values of an attribute)? 
    4040 */ 
    41 static int64_t 
    42 ncmpix_len_NC_attrV(nc_type type, int64_t nelems) 
     41static size_t 
     42ncmpix_len_NC_attrV(nc_type type, size_t nelems) 
    4343{ 
    4444        switch(type) { 
     
    6565        NC_string *strp, 
    6666        nc_type type, 
    67         int64_t nelems) 
    68 { 
    69         NC_attr *attrp; 
    70         const int64_t xsz = ncmpix_len_NC_attrV(type, nelems); 
    71         int64_t sz = M_RNDUP(sizeof(NC_attr)); 
     67        MPI_Offset nelems) 
     68{ 
     69        NC_attr *attrp; 
     70        const size_t xsz = ncmpix_len_NC_attrV(type, nelems); 
     71        size_t sz = M_RNDUP(sizeof(NC_attr)); 
    7272 
    7373        assert(!(xsz == 0 && nelems != 0)); 
     
    101101        const char *name, 
    102102        nc_type type, 
    103         int64_t nelems) 
     103        MPI_Offset nelems) 
    104104{ 
    105105        NC_string *strp; 
     
    196196        if(ref->nelems != 0) 
    197197        { 
    198                 const int64_t sz = ref->nelems * sizeof(NC_attr *); 
     198                const size_t sz = ref->nelems * sizeof(NC_attr *); 
    199199                ncap->value = (NC_attr **) malloc(sz); 
    200200                if(ncap->value == NULL) 
     
    276276 
    277277static NC_attr * 
    278 elem_NC_attrarray(const NC_attrarray *ncap, int64_t elem) 
     278elem_NC_attrarray(const NC_attrarray *ncap, size_t elem) 
    279279{ 
    280280        assert(ncap != NULL); 
    281                 /* cast needed for braindead systems with signed int64_t */ 
     281                /* cast needed for braindead systems with signed size_t*/ 
    282282        if(ncap->nelems == 0 || (unsigned long) elem >= ncap->nelems) 
    283283                return NULL; 
     
    295295 */ 
    296296static NC_attrarray * 
    297 NC_attrarray0( NC *ncp, int64_t varid) 
     297NC_attrarray0( NC *ncp, int varid) 
    298298{ 
    299299        NC_attrarray *ap; 
     
    303303                ap = &ncp->attrs; 
    304304        } 
    305         else if(varid >= 0 && (int64_t) varid < ncp->vars.nelems) 
     305        else if(varid >= 0 && (size_t) varid < ncp->vars.nelems) 
    306306        { 
    307307                NC_var **vpp; 
     
    324324{ 
    325325        NC_attr **attrpp; 
    326         int64_t attrid; 
    327         int64_t slen; 
     326        size_t attrid; 
     327        size_t slen; 
    328328 
    329329        assert(ncap != NULL); 
     
    353353static int  
    354354NC_lookupattr(int ncid, 
    355         int64_t varid, 
     355        int varid, 
    356356        const char *name, /* attribute name */ 
    357357        NC_attr **attrpp) /* modified on return */ 
     
    383383 
    384384int 
    385 ncmpi_inq_attname(int ncid, int64_t varid, int64_t attnum, char *name) 
     385ncmpi_inq_attname(int ncid, int varid, int attnum, char *name) 
    386386 
    387387{ 
     
    399399                return NC_ENOTVAR; 
    400400 
    401         attrp = elem_NC_attrarray(ncap, (int64_t)attnum); 
     401        attrp = elem_NC_attrarray(ncap, (size_t)attnum); 
    402402        if(attrp == NULL) 
    403403                return NC_ENOTATT; 
     
    411411 
    412412int  
    413 ncmpi_inq_attid(int ncid, int64_t varid, const char *name, int64_t *attnump) 
     413ncmpi_inq_attid(int ncid, int varid, const char *name, int *attnump) 
    414414{ 
    415415        int status; 
     
    432432 
    433433        if(attnump != NULL) 
    434                 *attnump = (int64_t)(attrpp - ncap->value); 
     434                *attnump = (int)(attrpp - ncap->value); 
    435435 
    436436        return NC_NOERR; 
     
    438438 
    439439int  
    440 ncmpi_inq_atttype(int ncid, int64_t varid, const char *name, nc_type *datatypep) 
     440ncmpi_inq_atttype(int ncid, int varid, const char *name, nc_type *datatypep) 
    441441{ 
    442442        int status; 
     
    454454 
    455455int  
    456 ncmpi_inq_attlen(int ncid, int64_t varid, const char *name, int64_t *lenp) 
     456ncmpi_inq_attlen(int ncid, int varid, const char *name, MPI_Offset *lenp) 
    457457{ 
    458458        int status; 
     
    471471int 
    472472ncmpi_inq_att(int ncid, 
    473         int64_t varid, 
     473        int varid, 
    474474        const char *name, /* input, attribute name */ 
    475475        nc_type *datatypep, 
    476         int64_t *lenp) 
     476        MPI_Offset *lenp) 
    477477{ 
    478478        int status; 
     
    493493 
    494494int 
    495 ncmpi_rename_att( int ncid, int64_t varid, const char *name, const char *newname) 
     495ncmpi_rename_att( int ncid, int varid, const char *name, const char *newname) 
    496496{ 
    497497        int status; 
     
    562562 
    563563int 
    564 ncmpi_copy_att(int ncid_in, int64_t varid_in, const char *name, int64_t ncid_out, int64_t ovarid) 
     564ncmpi_copy_att(int ncid_in, int varid_in, const char *name, int ncid_out, int ovarid) 
    565565{ 
    566566        int status; 
     
    656656 
    657657int 
    658 ncmpi_del_att(int ncid, int64_t varid, const char *name) 
     658ncmpi_del_att(int ncid, int varid, const char *name) 
    659659{ 
    660660        int status; 
     
    664664        NC_attr *old = NULL; 
    665665        int attrid; 
    666         int64_t slen; 
     666        MPI_Offset slen; 
    667667 
    668668        status = ncmpii_NC_check_id(ncid, &ncp); 
     
    681681 
    682682        attrpp = (NC_attr **) ncap->value; 
    683         for(attrid = 0; (int64_t) attrid < ncap->nelems; attrid++, attrpp++) 
     683        for(attrid = 0; (size_t) attrid < ncap->nelems; attrid++, attrpp++) 
    684684        { 
    685685                if( slen == (*attrpp)->name->nchars && 
     
    690690                } 
    691691        } 
    692         if( (int64_t) attrid == ncap->nelems ) 
     692        if( (size_t) attrid == ncap->nelems ) 
    693693                return NC_ENOTATT; 
    694694                        /* end inline NC_findattr() */ 
    695695 
    696696        /* shuffle down */ 
    697         for(attrid++; (int64_t) attrid < ncap->nelems; attrid++) 
     697        for(attrid++; (size_t) attrid < ncap->nelems; attrid++) 
    698698        { 
    699699                *attrpp = *(attrpp + 1); 
     
    711711 
    712712static int 
    713 ncmpix_pad_putn_Iuchar(void **xpp, int64_t nelems, const uchar *tp, nc_type type) 
     713ncmpix_pad_putn_Iuchar(void **xpp, MPI_Offset nelems, const uchar *tp, nc_type type) 
    714714{ 
    715715        switch(type) { 
     
    733733 
    734734static int 
    735 ncmpix_pad_getn_Iuchar(const void **xpp, int64_t nelems, uchar *tp, nc_type type) 
     735ncmpix_pad_getn_Iuchar(const void **xpp, MPI_Offset nelems, uchar *tp, nc_type type) 
    736736{ 
    737737        switch(type) { 
     
    756756 
    757757static int 
    758 ncmpix_pad_putn_Ischar(void **xpp, int64_t nelems, const schar *tp, nc_type type) 
     758ncmpix_pad_putn_Ischar(void **xpp, MPI_Offset nelems, const schar *tp, nc_type type) 
    759759{ 
    760760        switch(type) { 
     
    778778 
    779779static int 
    780 ncmpix_pad_getn_Ischar(const void **xpp, int64_t nelems, schar *tp, nc_type type) 
     780ncmpix_pad_getn_Ischar(const void **xpp, MPI_Offset nelems, schar *tp, nc_type type) 
    781781{ 
    782782        switch(type) { 
     
    801801 
    802802static int 
    803 ncmpix_pad_putn_Ishort(void **xpp, int64_t nelems, const short *tp, nc_type type) 
     803ncmpix_pad_putn_Ishort(void **xpp, MPI_Offset nelems, const short *tp, nc_type type) 
    804804{ 
    805805        switch(type) { 
     
    823823 
    824824static int 
    825 ncmpix_pad_getn_Ishort(const void **xpp, int64_t nelems, short *tp, nc_type type) 
     825ncmpix_pad_getn_Ishort(const void **xpp, MPI_Offset nelems, short *tp, nc_type type) 
    826826{ 
    827827        switch(type) { 
     
    846846 
    847847static int 
    848 ncmpix_pad_putn_Iint(void **xpp, int64_t nelems, const int *tp, nc_type type) 
     848ncmpix_pad_putn_Iint(void **xpp, MPI_Offset nelems, const int *tp, nc_type type) 
    849849{ 
    850850        switch(type) { 
     
    868868 
    869869static int 
    870 ncmpix_pad_getn_Iint(const void **xpp, int64_t nelems, int *tp, nc_type type) 
     870ncmpix_pad_getn_Iint(const void **xpp, MPI_Offset nelems, int *tp, nc_type type) 
    871871{ 
    872872        switch(type) { 
     
    891891 
    892892static int 
    893 ncmpix_pad_putn_Ilong(void **xpp, int64_t nelems, const long *tp, nc_type type) 
     893ncmpix_pad_putn_Ilong(void **xpp, MPI_Offset nelems, const long *tp, nc_type type) 
    894894{ 
    895895        switch(type) { 
     
    913913 
    914914static int 
    915 ncmpix_pad_getn_Ilong(const void **xpp, int64_t nelems, long *tp, nc_type type) 
     915ncmpix_pad_getn_Ilong(const void **xpp, MPI_Offset nelems, long *tp, nc_type type) 
    916916{ 
    917917        switch(type) { 
     
    936936 
    937937static int 
    938 ncmpix_pad_putn_Ifloat(void **xpp, int64_t nelems, const float *tp, nc_type type) 
     938ncmpix_pad_putn_Ifloat(void **xpp, MPI_Offset nelems, const float *tp, nc_type type) 
    939939{ 
    940940        switch(type) { 
     
    958958 
    959959static int 
    960 ncmpix_pad_getn_Ifloat(const void **xpp, int64_t nelems, float *tp, nc_type type) 
     960ncmpix_pad_getn_Ifloat(const void **xpp, MPI_Offset nelems, float *tp, nc_type type) 
    961961{ 
    962962        switch(type) { 
     
    981981 
    982982static int 
    983 ncmpix_pad_putn_Idouble(void **xpp, int64_t nelems, const double *tp, nc_type type) 
     983ncmpix_pad_putn_Idouble(void **xpp, MPI_Offset nelems, const double *tp, nc_type type) 
    984984{ 
    985985        switch(type) { 
     
    10031003 
    10041004static int 
    1005 ncmpix_pad_getn_Idouble(const void **xpp, int64_t nelems, double *tp, nc_type type) 
     1005ncmpix_pad_getn_Idouble(const void **xpp, MPI_Offset nelems, double *tp, nc_type type) 
    10061006{ 
    10071007        switch(type) { 
     
    10271027 
    10281028int 
    1029 ncmpi_put_att_text(int ncid, int64_t varid, const char *name, 
    1030         int64_t nelems, const char *value) 
     1029ncmpi_put_att_text(int ncid, int varid, const char *name, 
     1030        MPI_Offset nelems, const char *value) 
    10311031{ 
    10321032        int status; 
     
    10521052                return status; 
    10531053 
    1054                 /* cast needed for braindead systems with signed int64_t */ 
     1054                /* cast needed for braindead systems with signed size_t */ 
    10551055        if((unsigned long) nelems > X_INT_MAX) /* backward compat */ 
    10561056                return NC_EINVAL; /* Invalid nelems */ 
     
    10641064                if(!NC_indef(ncp) ) 
    10651065                { 
    1066                         const int64_t xsz = ncmpix_len_NC_attrV(NC_CHAR, nelems); 
     1066                        const size_t xsz = ncmpix_len_NC_attrV(NC_CHAR, nelems); 
    10671067                        attrp = *attrpp; /* convenience */ 
    10681068         
     
    11391139 
    11401140int 
    1141 ncmpi_get_att_text(int ncid, int64_t varid, const char *name, char *str) 
     1141ncmpi_get_att_text(int ncid, int varid, const char *name, char *str) 
    11421142{ 
    11431143        int status; 
     
    11651165 
    11661166int 
    1167 ncmpi_put_att_schar(int ncid, int64_t varid, const char *name, 
    1168         nc_type type, int64_t nelems, const signed char *value) 
     1167ncmpi_put_att_schar(int ncid, int varid, const char *name, 
     1168        nc_type type, MPI_Offset nelems, const signed char *value) 
    11691169{ 
    11701170        int status; 
     
    11931193                return NC_ECHAR; 
    11941194 
    1195                 /* cast needed for braindead systems with signed int64_t */ 
     1195                /* cast needed for braindead systems with signed size_t */ 
    11961196        if((unsigned long) nelems > X_INT_MAX) /* backward compat */ 
    11971197                return NC_EINVAL; /* Invalid nelems */ 
     
    12051205                if(!NC_indef(ncp) ) 
    12061206                { 
    1207                         const int64_t xsz = ncmpix_len_NC_attrV(type, nelems); 
     1207                        const size_t xsz = ncmpix_len_NC_attrV(type, nelems); 
    12081208                        attrp = *attrpp; /* convenience */ 
    12091209         
     
    12891289 
    12901290int 
    1291 ncmpi_get_att_schar(int ncid, int64_t varid, const char *name, signed char *tp) 
     1291ncmpi_get_att_schar(int ncid, int varid, const char *name, signed char *tp) 
    12921292{ 
    12931293        int status; 
     
    13121312 
    13131313int 
    1314 ncmpi_put_att_uchar(int ncid, int64_t varid, const char *name, 
    1315         nc_type type, int64_t nelems, const unsigned char *value) 
     1314ncmpi_put_att_uchar(int ncid, int varid, const char *name, 
     1315        nc_type type, MPI_Offset nelems, const unsigned char *value) 
    13161316{ 
    13171317        int status; 
     
    13401340                return NC_ECHAR; 
    13411341 
    1342                 /* cast needed for braindead systems with signed int64_t */ 
     1342                /* cast needed for braindead systems with signed size_t */ 
    13431343        if((unsigned long) nelems > X_INT_MAX) /* backward compat */ 
    13441344                return NC_EINVAL; /* Invalid nelems */ 
     
    13521352                if(!NC_indef(ncp) ) 
    13531353                { 
    1354                         const int64_t xsz = ncmpix_len_NC_attrV(type, nelems); 
     1354                        const size_t xsz = ncmpix_len_NC_attrV(type, nelems); 
    13551355                        attrp = *attrpp; /* convenience */ 
    13561356         
     
    14361436 
    14371437int 
    1438 ncmpi_get_att_uchar(int ncid, int64_t varid, const char *name, unsigned char *tp) 
     1438ncmpi_get_att_uchar(int ncid, int varid, const char *name, unsigned char *tp) 
    14391439{ 
    14401440        int status; 
     
    14591459 
    14601460int 
    1461 ncmpi_put_att_short(int ncid, int64_t varid, const char *name, 
    1462         nc_type type, int64_t nelems, const short *value) 
     1461ncmpi_put_att_short(int ncid, int varid, const char *name, 
     1462        nc_type type, MPI_Offset nelems, const short *value) 
    14631463{ 
    14641464        int status; 
     
    14871487                return NC_ECHAR; 
    14881488 
    1489                 /* cast needed for braindead systems with signed int64_t */ 
     1489                /* cast needed for braindead systems with signed size_t */ 
    14901490        if((unsigned long) nelems > X_INT_MAX) /* backward compat */ 
    14911491                return NC_EINVAL; /* Invalid nelems */ 
     
    14991499                if(!NC_indef(ncp) ) 
    15001500                { 
    1501                         const int64_t xsz = ncmpix_len_NC_attrV(type, nelems); 
     1501                        const size_t xsz = ncmpix_len_NC_attrV(type, nelems); 
    15021502                        attrp = *attrpp; /* convenience */ 
    15031503         
     
    15831583 
    15841584int 
    1585 ncmpi_get_att_short(int ncid, int64_t varid, const char *name, short *tp) 
     1585ncmpi_get_att_short(int ncid, int varid, const char *name, short *tp) 
    15861586{ 
    15871587        int status; 
     
    16061606 
    16071607int 
    1608 ncmpi_put_att_int(int ncid, int64_t varid, const char *name, 
    1609         nc_type type, int64_t nelems, const int *value) 
     1608ncmpi_put_att_int(int ncid, int varid, const char *name, 
     1609        nc_type type, MPI_Offset nelems, const int *value) 
    16101610{ 
    16111611        int status; 
     
    16341634                return NC_ECHAR; 
    16351635 
    1636                 /* cast needed for braindead systems with signed int64_t */ 
     1636                /* cast needed for braindead systems with signed size_t */ 
    16371637        if((unsigned long) nelems > X_INT_MAX) /* backward compat */ 
    16381638                return NC_EINVAL; /* Invalid nelems */ 
     
    16461646                if(!NC_indef(ncp) ) 
    16471647                { 
    1648                         const int64_t xsz = ncmpix_len_NC_attrV(type, nelems); 
     1648                        const size_t xsz = ncmpix_len_NC_attrV(type, nelems); 
    16491649                        attrp = *attrpp; /* convenience */ 
    16501650         
     
    17301730 
    17311731int 
    1732 ncmpi_get_att_int(int ncid, int64_t varid, const char *name, int *tp) 
     1732ncmpi_get_att_int(int ncid, int varid, const char *name, int *tp) 
    17331733{ 
    17341734        int status; 
     
    17531753 
    17541754int 
    1755 ncmpi_put_att_long(int ncid, int64_t varid, const char *name, 
    1756         nc_type type, int64_t nelems, const long *value) 
     1755ncmpi_put_att_long(int ncid, int varid, const char *name, 
     1756        nc_type type, MPI_Offset nelems, const long *value) 
    17571757{ 
    17581758        int status; 
     
    17811781                return NC_ECHAR; 
    17821782 
    1783                 /* cast needed for braindead systems with signed int64_t */ 
     1783                /* cast needed for braindead systems with signed size_t */ 
    17841784        if((unsigned long) nelems > X_INT_MAX) /* backward compat */ 
    17851785                return NC_EINVAL; /* Invalid nelems */ 
     
    17931793                if(!NC_indef(ncp) ) 
    17941794                { 
    1795                         const int64_t xsz = ncmpix_len_NC_attrV(type, nelems); 
     1795                        const size_t xsz = ncmpix_len_NC_attrV(type, nelems); 
    17961796                        attrp = *attrpp; /* convenience */ 
    17971797         
     
    18771877 
    18781878int 
    1879 ncmpi_get_att_long(int ncid, int64_t varid, const char *name, long *tp) 
     1879ncmpi_get_att_long(int ncid, int varid, const char *name, long *tp) 
    18801880{ 
    18811881        int status; 
     
    19001900 
    19011901int 
    1902 ncmpi_put_att_float(int ncid, int64_t varid, const char *name, 
    1903         nc_type type, int64_t nelems, const float *value) 
     1902ncmpi_put_att_float(int ncid, int varid, const char *name, 
     1903        nc_type type, MPI_Offset nelems, const float *value) 
    19041904{ 
    19051905        int status; 
     
    19281928                return NC_ECHAR; 
    19291929 
    1930                 /* cast needed for braindead systems with signed int64_t */ 
     1930                /* cast needed for braindead systems with signed size_t */ 
    19311931        if((unsigned long) nelems > X_INT_MAX) /* backward compat */ 
    19321932                return NC_EINVAL; /* Invalid nelems */ 
     
    19401940                if(!NC_indef(ncp) ) 
    19411941                { 
    1942                         const int64_t xsz = ncmpix_len_NC_attrV(type, nelems); 
     1942                        const size_t xsz = ncmpix_len_NC_attrV(type, nelems); 
    19431943                        attrp = *attrpp; /* convenience */ 
    19441944         
     
    20242024 
    20252025int 
    2026 ncmpi_get_att_float(int ncid, int64_t varid, const char *name, float *tp) 
     2026ncmpi_get_att_float(int ncid, int varid, const char *name, float *tp) 
    20272027{ 
    20282028        int status; 
     
    20472047 
    20482048int 
    2049 ncmpi_put_att_double(int ncid, int64_t varid, const char *name, 
    2050         nc_type type, int64_t nelems, const double *value) 
     2049ncmpi_put_att_double(int ncid, int varid, const char *name, 
     2050        nc_type type, MPI_Offset nelems, const double *value) 
    20512051{ 
    20522052        int status; 
     
    20752075                return NC_ECHAR; 
    20762076 
    2077                 /* cast needed for braindead systems with signed int64_t */ 
    2078         if((unsigned long long) nelems > X_INT_MAX) /* backward compat */ 
    2079               return NC_EINVAL; /* Invalid nelems */ 
     2077                /* cast needed for braindead systems with signed size_t */ 
     2078        /* if((unsigned long long) nelems > X_INT_MAX) /* backward compat */ 
     2079        /*            return NC_EINVAL; /* Invalid nelems */ 
    20802080 
    20812081        if(nelems != 0 && value == NULL) 
     
    20872087                if(!NC_indef(ncp) ) 
    20882088                { 
    2089                         const int64_t xsz = ncmpix_len_NC_attrV(type, nelems); 
     2089                        const size_t xsz = ncmpix_len_NC_attrV(type, nelems); 
    20902090                        attrp = *attrpp; /* convenience */ 
    20912091         
     
    21702170 
    21712171int 
    2172 ncmpi_get_att_double(int ncid, int64_t varid, const char *name, double *tp) 
     2172ncmpi_get_att_double(int ncid, int varid, const char *name, double *tp) 
    21732173{ 
    21742174        int status; 
     
    21972197ncmpii_put_att( 
    21982198        int ncid, 
    2199         int64_t varid, 
     2199        int varid, 
    22002200        const char *name, 
    22012201        nc_type type, 
    2202         int64_t nelems, 
     2202        MPI_Offset nelems, 
    22032203        const void *value) 
    22042204{ 
     
    22352235/* deprecated, used to support the 2.x interface */ 
    22362236int 
    2237 ncmpii_get_att(int ncid, int64_t varid, const char *name, void *value) 
     2237ncmpii_get_att(int ncid, int varid, const char *name, void *value) 
    22382238{ 
    22392239        int status; 
  • trunk/CDF3/src/lib/dim.c

    r622 r625  
    5050 */ 
    5151static NC_dim * 
    52 ncmpii_new_NC_dim(const char *name, int64_t size) 
     52ncmpii_new_NC_dim(const char *name, MPI_Offset size) 
    5353{ 
    5454        NC_string *strp; 
     
    7575dup_NC_dim(const NC_dim *dimp) 
    7676{ 
    77         return ncmpii_new_NC_dim(dimp->name->cp, (int64_t) dimp->size); 
     77        return ncmpii_new_NC_dim(dimp->name->cp, dimp->size); 
    7878} 
    7979 
     
    9797        NC_dim **loc = ncap->value; 
    9898 
    99         for(; (int64_t) dimid < ncap->nelems 
     99        for(; (MPI_Offset) dimid < ncap->nelems 
    100100                         && (*loc)->size != NC_UNLIMITED; dimid++, loc++) 
    101101        { 
     
    129129 
    130130        { 
    131         int64_t slen = strlen(name); 
     131        MPI_Offset slen = strlen(name); 
    132132        int dimid = 0; 
    133133        NC_dim **loc = (NC_dim **) ncap->value; 
    134134 
    135         for(; (int64_t) dimid < ncap->nelems 
     135        for(; (MPI_Offset) dimid < ncap->nelems 
    136136                        && (strlen((*loc)->name->cp) != slen 
    137137                                || strncmp((*loc)->name->cp, name, slen) != 0); 
     
    213213        if(ref->nelems != 0) 
    214214        { 
    215                 const int64_t sz = ref->nelems * sizeof(NC_dim *); 
     215                const MPI_Offset sz = ref->nelems * sizeof(NC_dim *); 
    216216                ncap->value = (NC_dim **) malloc(sz); 
    217217                if(ncap->value == NULL) 
     
    290290 
    291291NC_dim * 
    292 ncmpii_elem_NC_dimarray(const NC_dimarray *ncap, int64_t elem) 
    293 { 
    294         assert(ncap != NULL); 
    295                 /* cast needed for braindead systems with signed int64_t */ 
    296         if(ncap->nelems == 0 || (unsigned long) elem >= ncap->nelems) 
     292ncmpii_elem_NC_dimarray(const NC_dimarray *ncap, size_t elem) 
     293{ 
     294        assert(ncap != NULL); 
     295                /* cast needed for braindead systems with signed MPI_Offset */ 
     296        if(ncap->nelems == 0 || (unsigned long long) elem >= ncap->nelems) 
    297297                return NULL; 
    298298 
     
    306306 
    307307int 
    308 ncmpi_def_dim(int ncid, const char *name, int64_t size, int64_t *dimidp) 
     308ncmpi_def_dim(int ncid, const char *name, MPI_Offset size, int *dimidp) 
    309309{ 
    310310        int status; 
    311311        NC *ncp; 
    312         int64_t dimid; 
     312        int dimid; 
    313313        NC_dim *dimp; 
    314314 
     
    324324                return status; 
    325325 
    326         /* int64_t is usually a signed value, but serial netcdf uses  
    327          * int64_t -- normally unsigned */ 
     326        /* MPI_Offset is usually a signed value, but serial netcdf uses  
     327         * MPI_Offset -- normally unsigned */ 
    328328        if ((ncp->flags & NC_64BIT_OFFSET) && sizeof(off_t) > 4) { 
    329329                /* CDF2 format and LFS */ 
     
    376376 
    377377int 
    378 ncmpi_inq_dimid(int ncid, const char *name, int64_t *dimid_ptr) 
     378ncmpi_inq_dimid(int ncid, const char *name, int *dimid_ptr) 
    379379{ 
    380380        int status; 
    381381        NC *ncp; 
    382         int64_t dimid; 
     382        int dimid; 
    383383 
    384384        status = ncmpii_NC_check_id(ncid, &ncp);  
     
    397397 
    398398int 
    399 ncmpi_inq_dim(int ncid, int64_t dimid, char *name, int64_t *sizep) 
     399ncmpi_inq_dim(int ncid, int dimid, char *name, MPI_Offset *sizep) 
    400400{ 
    401401        int status; 
     
    407407                return status; 
    408408 
    409         dimp = ncmpii_elem_NC_dimarray(&ncp->dims, (int64_t)dimid); 
     409        dimp = ncmpii_elem_NC_dimarray(&ncp->dims, (size_t) dimid); 
    410410        if(dimp == NULL) 
    411411                return NC_EBADDIM; 
     
    429429 
    430430int  
    431 ncmpi_inq_dimname(int ncid, int64_t dimid, char *name) 
     431ncmpi_inq_dimname(int ncid, int dimid, char *name) 
    432432{ 
    433433        int status; 
     
    439439                return status; 
    440440 
    441         dimp = ncmpii_elem_NC_dimarray(&ncp->dims, (int64_t)dimid); 
     441        dimp = ncmpii_elem_NC_dimarray(&ncp->dims, (size_t) dimid); 
    442442        if(dimp == NULL) 
    443443                return NC_EBADDIM; 
     
    455455 
    456456int  
    457 ncmpi_inq_dimlen(int ncid, int64_t dimid, int64_t *lenp) 
     457ncmpi_inq_dimlen(int ncid, int dimid, MPI_Offset *lenp) 
    458458{ 
    459459        int status; 
     
    465465                return status; 
    466466 
    467         dimp = ncmpii_elem_NC_dimarray(&ncp->dims, (int64_t)dimid); 
     467        dimp = ncmpii_elem_NC_dimarray(&ncp->dims, (size_t) dimid); 
    468468        if(dimp == NULL) 
    469469                return NC_EBADDIM; 
     
    481481 
    482482int 
    483 ncmpi_rename_dim( int ncid, int64_t dimid, const char *newname) 
     483ncmpi_rename_dim( int ncid, int dimid, const char *newname) 
    484484{ 
    485485        int status; 
     
    503503                return NC_ENAMEINUSE; 
    504504 
    505         dimp = ncmpii_elem_NC_dimarray(&ncp->dims, (int64_t)dimid); 
     505        dimp = ncmpii_elem_NC_dimarray(&ncp->dims, (size_t) dimid); 
    506506        if(dimp == NULL) 
    507507                return NC_EBADDIM; 
  • trunk/CDF3/src/lib/header.c

    r614 r625  
    2929 
    3030/* Prototypes for functions used only in this file */ 
    31 static int64_t hdr_len_NC_string(const NC_string *ncstrp, int64_t sizeof_t); 
    32 static int64_t hdr_len_NC_dim(const NC_dim *dimp, int64_t sizeof_t); 
    33 static int64_t hdr_len_NC_dimarray(const NC_dimarray *ncap, int64_t sizeof_t); 
    34 static int64_t hdr_len_NC_attr(const NC_attr *attrp, int64_t sizeof_t); 
    35 static int64_t hdr_len_NC_attrarray(const NC_attrarray *ncap, int64_t sizeof_t); 
    36 static int64_t hdr_len_NC_var(const NC_var *varp, int64_t sizeof_off_t, int64_t sizeof_t); 
    37 static int64_t hdr_len_NC_vararray(const NC_vararray *ncap, int64_t sizeof_off_t, int64_t sizeof_t); 
     31static MPI_Offset hdr_len_NC_string(const NC_string *ncstrp, MPI_Offset sizeof_t); 
     32static MPI_Offset hdr_len_NC_dim(const NC_dim *dimp, MPI_Offset sizeof_t); 
     33static MPI_Offset hdr_len_NC_dimarray(const NC_dimarray *ncap, MPI_Offset sizeof_t); 
     34static MPI_Offset hdr_len_NC_attr(const NC_attr *attrp, MPI_Offset sizeof_t); 
     35static MPI_Offset hdr_len_NC_attrarray(const NC_attrarray *ncap, MPI_Offset sizeof_t); 
     36static MPI_Offset hdr_len_NC_var(const NC_var *varp, MPI_Offset sizeof_off_t, MPI_Offset sizeof_t); 
     37static MPI_Offset hdr_len_NC_vararray(const NC_vararray *ncap, MPI_Offset sizeof_off_t, MPI_Offset sizeof_t); 
    3838static int hdr_put_NCtype(bufferinfo *pbp, NCtype type); 
    3939static int hdr_put_nc_type(bufferinfo *pbp, const nc_type *typep); 
     
    4747static int hdr_put_NC_vararray(bufferinfo *pbp, const NC_vararray *ncap); 
    4848static int hdr_fetch(bufferinfo *gbp); 
    49 static int hdr_check_buffer(bufferinfo *gbp, int64_t nextread); 
     49static int hdr_check_buffer(bufferinfo *gbp, MPI_Offset nextread); 
    5050static int hdr_get_NCtype(bufferinfo *gbp, NCtype *typep); 
    51 static int hdr_get_size_t(bufferinfo *gbp, int64_t *sp); 
     51static int hdr_get_size_t(bufferinfo *gbp, MPI_Offset *sp); 
    5252static int hdr_get_NC_string(bufferinfo *gbp, NC_string **ncstrpp); 
    5353static int hdr_get_NC_dim(bufferinfo *gbp, NC_dim **dimpp); 
     
    6565static const schar ncmagic[] = {'C', 'D', 'F', 0x02};  
    6666static const schar ncmagic1[] = {'C', 'D', 'F', 0x01};  
    67 static const schar ncmagic2[] = {'C', 'D', 'F', 0x03};  
     67static const schar ncmagic2[] = {'C', 'D', 'F', 0x05};  
    6868 
    6969/* 
     
    7676 */  
    7777int 
    78 ncmpii_NC_computeshapes(NC *ncp, int sizeof_t
     78ncmpii_NC_computeshapes(NC *ncp
    7979{ 
    8080        NC_var **vpp = (NC_var **)ncp->vars.value; 
     
    8383        NC_var *first_rec = NULL;       /* first "record" var */ 
    8484        int status; 
    85         int i, j; 
    86   
    87         ncp->begin_var = (int64_t) ncp->xsz; 
    88         ncp->begin_rec = (int64_t) ncp->xsz; 
     85  
     86        ncp->begin_var = (MPI_Offset) ncp->xsz; 
     87        ncp->begin_rec = (MPI_Offset) ncp->xsz; 
    8988        ncp->recsize = 0; 
    9089  
     
    116115                         * Usually overwritten in first_rec != NULL clause. 
    117116                         */ 
    118                         ncp->begin_rec = (*vpp)->begin + (int64_t)(*vpp)->len; 
     117                        ncp->begin_rec = (*vpp)->begin + (MPI_Offset)(*vpp)->len; 
    119118                } 
    120119        } 
     
    155154#define X_SIZEOF_NCTYPE X_SIZEOF_INT 
    156155 
    157 static int64_
    158 hdr_len_NC_string(const NC_string *ncstrp, int64_t sizeof_t) 
     156static MPI_Offse
     157hdr_len_NC_string(const NC_string *ncstrp, MPI_Offset sizeof_t) 
    159158{ 
    160 //      int64_t sz = X_SIZEOF_SIZE_T; /* nchars */ 
     159//      MPI_Offset sz = X_SIZEOF_SIZE_T; /* nchars */ 
    161160        int sz = sizeof_t; /* nchars */ 
    162161  
     
    169168} 
    170169  
    171 static int64_
    172 hdr_len_NC_dim(const NC_dim *dimp, int64_t sizeof_t) 
     170static MPI_Offse
     171hdr_len_NC_dim(const NC_dim *dimp, MPI_Offset sizeof_t) 
    173172{ 
    174         int64_t sz; 
     173        MPI_Offset sz; 
    175174  
    176175        assert(dimp != NULL); 
     
    183182} 
    184183  
    185 static int64_
    186 hdr_len_NC_dimarray(const NC_dimarray *ncap, int64_t sizeof_t) 
     184static MPI_Offse
     185hdr_len_NC_dimarray(const NC_dimarray *ncap, MPI_Offset sizeof_t) 
    187186{ 
    188         int64_t xlen = X_SIZEOF_NCTYPE;  /* type */ 
     187        MPI_Offset xlen = X_SIZEOF_NCTYPE;  /* type */ 
    189188//        xlen += X_SIZEOF_SIZE_T;        /* count */ 
    190189        xlen += sizeof_t;        /* count */ 
     
    203202}  
    204203 
    205 static int64_
    206 hdr_len_NC_attr(const NC_attr *attrp, int64_t sizeof_t) 
     204static MPI_Offse
     205hdr_len_NC_attr(const NC_attr *attrp, MPI_Offset sizeof_t) 
    207206{ 
    208         int64_t sz; 
     207        MPI_Offset sz; 
    209208  
    210209        assert(attrp != NULL); 
     
    219218} 
    220219  
    221 static int64_
    222 hdr_len_NC_attrarray(const NC_attrarray *ncap, int64_t sizeof_t) 
     220static MPI_Offse
     221hdr_len_NC_attrarray(const NC_attrarray *ncap, MPI_Offset sizeof_t) 
    223222{ 
    224         int64_t xlen = X_SIZEOF_NCTYPE;  /* type */ 
     223        MPI_Offset xlen = X_SIZEOF_NCTYPE;  /* type */ 
    225224//        xlen += X_SIZEOF_SIZE_T;        /* count */ 
    226225        xlen += sizeof_t;        /* count */ 
     
    239238} 
    240239  
    241 static int64_
    242 hdr_len_NC_var(const NC_var *varp, int64_t sizeof_off_t, int64_t sizeof_t) 
     240static MPI_Offse
     241hdr_len_NC_var(const NC_var *varp, MPI_Offset sizeof_off_t, MPI_Offset sizeof_t) 
    243242{ 
    244         int64_t sz; 
     243        MPI_Offset sz; 
    245244  
    246245        assert(varp != NULL); 
     
    263262}  
    264263 
    265 static int64_
    266 hdr_len_NC_vararray(const NC_vararray *ncap, int64_t sizeof_off_t, int64_t sizeof_t) 
     264static MPI_Offse
     265hdr_len_NC_vararray(const NC_vararray *ncap, MPI_Offset sizeof_off_t, MPI_Offset sizeof_t) 
    267266{ 
    268         int64_t xlen = X_SIZEOF_NCTYPE;  /* type */ 
     267        MPI_Offset xlen = X_SIZEOF_NCTYPE;  /* type */ 
    269268//      xlen += X_SIZEOF_SIZE_T;        /* count */ 
    270269        xlen += sizeof_t;           /* count */ 
     
    283282} 
    284283  
    285 int64_
    286 ncmpii_hdr_len_NC(const NC *ncp, int64_t sizeof_off_t) 
     284MPI_Offse
     285ncmpii_hdr_len_NC(const NC *ncp, MPI_Offset sizeof_off_t) 
    287286{ 
    288         int64_t xlen = sizeof(ncmagic); 
     287        MPI_Offset xlen = sizeof(ncmagic); 
    289288  
    290289        assert(ncp != NULL); 
     
    337336  int status; 
    338337 
    339   status = ncmpix_put_size_t(&pbp->pos, &ncstrp->nchars, pbp->version == 3 ? 8 : 4); 
     338  status = ncmpix_put_size_t(&pbp->pos, &ncstrp->nchars, pbp->version == 5 ? 8 : 4); 
    340339  if (status != ENOERR) 
    341340    return status; 
     
    354353hdr_put_NC_attrV(bufferinfo *pbp, const NC_attr *attrp) { 
    355354  void *value = attrp->xvalue; 
    356   int64_t padding, esz; 
     355  MPI_Offset padding, esz; 
    357356 
    358357  esz = ncmpix_len_nctype(attrp->type); 
     
    375374    return status; 
    376375 
    377   status = ncmpix_put_size_t(&pbp->pos, &dimp->size, pbp->version == 3 ? 8 : 4); 
     376  status = ncmpix_put_size_t(&pbp->pos, &dimp->size, pbp->version == 5 ? 8 : 4); 
    378377  if (status != ENOERR) 
    379378    return status; 
     
    394393    return status; 
    395394 
    396   status = ncmpix_put_size_t(&pbp->pos, &attrp->nelems, pbp->version == 3 ? 8 : 4); 
     395  status = ncmpix_put_size_t(&pbp->pos, &attrp->nelems, pbp->version == 5 ? 8 : 4); 
    397396  if (status != ENOERR) 
    398397    return status; 
     
    409408  int status; 
    410409  int i; 
     410  MPI_Offset tmp_ndims; 
    411411  status = hdr_put_NC_string(pbp, varp->name); 
    412412  if (status != ENOERR) 
    413413    return status; 
    414414 
    415   status = ncmpix_put_size_t(&pbp->pos, &varp->ndims, pbp->version == 3 ? 8 : 4); 
     415  tmp_ndims = varp->ndims; 
     416  status = ncmpix_put_size_t(&pbp->pos, &tmp_ndims, pbp->version == 5 ? 8 : 4); 
    416417  if (status != ENOERR) 
    417418    return status; 
    418419 
    419420  for (i=0; i< varp->ndims; i++){   
    420         const int64_t dim_id  = (const int64_t) varp->dimids[i]; 
    421         status = ncmpix_put_size_t(&pbp->pos, &dim_id, pbp->version == 3 ? 8 : 4); 
     421        const MPI_Offset dim_id  = (const MPI_Offset) varp->dimids[i]; 
     422        status = ncmpix_put_size_t(&pbp->pos, &dim_id, pbp->version == 5 ? 8 : 4); 
    422423  } 
    423424/* 
     
    444445    return status; 
    445446 
    446   status = ncmpix_put_size_t(&pbp->pos, &varp->len, pbp->version == 3 ? 8 : 4);  
     447  status = ncmpix_put_size_t(&pbp->pos, &varp->len, pbp->version == 5 ? 8 : 4);  
    447448  if (status != ENOERR) 
    448449    return status; 
     
    463464  if (ncap == NULL || ncap->nelems == 0) { 
    464465     /* ABSENT */ 
    465     const int64_t nosz = 0; 
     466    const MPI_Offset nosz = 0; 
    466467    status = hdr_put_NCtype(pbp, NC_UNSPECIFIED); 
    467468    if (status != ENOERR) 
    468469      return status; 
    469470 
    470     status = ncmpix_put_size_t(&pbp->pos, &nosz, pbp->version == 3 ? 8 : 4); 
     471    status = ncmpix_put_size_t(&pbp->pos, &nosz, pbp->version == 5 ? 8 : 4); 
    471472    if (status != ENOERR) 
    472473      return status; 
     
    479480      return status; 
    480481 
    481     status = ncmpix_put_size_t(&pbp->pos, &ncap->nelems, pbp->version == 3 ? 8 : 4); 
     482    status = ncmpix_put_size_t(&pbp->pos, &ncap->nelems, pbp->version == 5 ? 8 : 4); 
    482483    if (status != ENOERR) 
    483484      return status; 
     
    501502  if (ncap == NULL || ncap->nelems == 0) { 
    502503     /* ABSENT */ 
    503     const int64_t nosz = 0; 
     504    const MPI_Offset nosz = 0; 
    504505    status = hdr_put_NCtype(pbp, NC_UNSPECIFIED); 
    505506    if (status != ENOERR) 
    506507      return status; 
    507508 
    508     status = ncmpix_put_size_t(&pbp->pos, &nosz, pbp->version == 3 ? 8 : 4); 
     509    status = ncmpix_put_size_t(&pbp->pos, &nosz, pbp->version == 5 ? 8 : 4); 
    509510    if (status != ENOERR) 
    510511      return status; 
     
    517518      return status; 
    518519 
    519     status = ncmpix_put_size_t(&pbp->pos, &ncap->nelems, pbp->version == 3 ? 8 : 4); 
     520    status = ncmpix_put_size_t(&pbp->pos, &ncap->nelems, pbp->version == 5 ? 8 : 4); 
    520521    if (status != ENOERR) 
    521522      return status; 
     
    539540  if (ncap == NULL || ncap->nelems == 0) { 
    540541     /* ABSENT */ 
    541     const int64_t nosz = 0; 
     542    const MPI_Offset nosz = 0; 
    542543    status = hdr_put_NCtype(pbp, NC_UNSPECIFIED); 
    543544    if (status != ENOERR) 
    544545      return status; 
    545546 
    546     status = ncmpix_put_size_t(&pbp->pos, &nosz, pbp->version == 3 ? 8 : 4); 
     547    status = ncmpix_put_size_t(&pbp->pos, &nosz, pbp->version == 5 ? 8 : 4); 
    547548    if (status != ENOERR) 
    548549      return status; 
     
    555556      return status; 
    556557 
    557     status = ncmpix_put_size_t(&pbp->pos, &ncap->nelems, pbp->version == 3 ? 8 : 4); 
     558    status = ncmpix_put_size_t(&pbp->pos, &ncap->nelems, pbp->version == 5 ? 8 : 4); 
    558559    if (status != ENOERR) 
    559560      return status; 
     
    573574  int status; 
    574575  bufferinfo putbuf; 
    575   int64_t nrecs;  
     576  MPI_Offset nrecs;  
    576577 
    577578  putbuf.nciop = NULL; 
     
    581582 
    582583  if (ncp->flags & NC_64BIT_DATA) 
    583           putbuf.version = 3
     584          putbuf.version = 5
    584585  else if (ncp->flags & NC_64BIT_OFFSET) 
    585586          putbuf.version = 2; 
     
    587588          putbuf.version = 1; 
    588589 
    589   if (putbuf.version == 3
     590  if (putbuf.version == 5
    590591          status = ncmpix_putn_schar_schar(&putbuf.pos, sizeof(ncmagic2), ncmagic2); 
    591592  else if (putbuf.version == 2) 
     
    598599 
    599600  nrecs = ncp->numrecs;  
    600   status = ncmpix_put_size_t(&putbuf.pos, &nrecs, putbuf.version == 3 ? 8 : 4); 
     601  status = ncmpix_put_size_t(&putbuf.pos, &nrecs, putbuf.version == 5 ? 8 : 4); 
    601602  if (status != ENOERR) 
    602603    return status; 
     
    638639  MPI_Comm comm; 
    639640  int mpireturn; 
    640   int64_t slack;              /* any leftover data in the buffer */ 
     641  MPI_Offset slack;           /* any leftover data in the buffer */ 
    641642 
    642643  assert(gbp->base != NULL); 
     
    688689 */ 
    689690static int 
    690 hdr_check_buffer(bufferinfo *gbp, int64_t nextread) { 
     691hdr_check_buffer(bufferinfo *gbp, MPI_Offset nextread) { 
    691692  if ((char *)gbp->pos + nextread <= (char *)gbp->base + gbp->size) 
    692693    return ENOERR; 
     
    697698hdr_get_NCtype(bufferinfo *gbp, NCtype *typep) { 
    698699  int type = 0; 
    699 //  int sizeof_t = (gbp->version == 3) ? 8 : 4; 
     700//  int sizeof_t = (gbp->version == 5) ? 8 : 4; 
    700701  int sizeof_t = 4; 
    701702  int status = hdr_check_buffer(gbp, sizeof_t); 
     
    713714 
    714715static int 
    715 hdr_get_size_t(bufferinfo *gbp, int64_t *sp) { 
    716   int64_t sizeof_t = (gbp->version == 3) ? 8 : 4; 
     716hdr_get_size_t(bufferinfo *gbp, MPI_Offset *sp) { 
     717  MPI_Offset sizeof_t = (gbp->version == 5) ? 8 : 4; 
    717718  int status = hdr_check_buffer(gbp, sizeof_t); 
    718719  if (status != ENOERR) 
     
    725726hdr_get_NC_string(bufferinfo *gbp, NC_string **ncstrpp) { 
    726727  int status; 
    727   int64_t  nchars = 0, nbytes, padding, bufremain, strcount;  
     728  MPI_Offset  nchars = 0, nbytes, padding, bufremain, strcount;  
    728729  NC_string *ncstrp; 
    729730  char *cpos; 
     
    742743  padding = _RNDUP(X_SIZEOF_CHAR * ncstrp->nchars, X_ALIGN) 
    743744            - X_SIZEOF_CHAR * ncstrp->nchars; 
    744   bufremain = gbp->size - (int64_t)((char *)gbp->pos - (char *)gbp->base); 
     745  bufremain = gbp->size - (MPI_Offset)((char *)gbp->pos - (char *)gbp->base); 
    745746  cpos = ncstrp->cp; 
    746747 
     
    876877} 
    877878 
    878 int64_t  
     879MPI_Offset  
    879880ncmpix_len_nctype(nc_type type) { 
    880881  switch(type) { 
     
    904905  void *value = attrp->xvalue; 
    905906  char pad[X_ALIGN-1];  
    906   int64_t nbytes, esz, padding, bufremain, attcount; 
     907  MPI_Offset nbytes, esz, padding, bufremain, attcount; 
    907908 
    908909  esz = ncmpix_len_nctype(attrp->type); 
    909910  padding = attrp->xsz - esz * attrp->nelems; 
    910   bufremain = gbp->size - (int64_t)((char *)gbp->pos - (char *)gbp->base); 
     911  bufremain = gbp->size - (MPI_Offset)((char *)gbp->pos - (char *)gbp->base); 
    911912  nbytes = esz * attrp->nelems; 
    912913 
     
    944945  int status; 
    945946  nc_type type;  
    946   int64_t nelems; 
     947  MPI_Offset nelems; 
    947948  NC_attr *attrp; 
    948949 
     
    10291030  NC_string *strp; 
    10301031  int status; 
    1031   int64_t ndims, dim; 
     1032  MPI_Offset ndims, dim; 
     1033  MPI_Offset tmp_dimids; 
    10321034  NC_var *varp; 
    10331035  int i; 
     
    10501052 
    10511053  for (dim = 0; dim < ndims; dim++ ) { 
    1052     status = hdr_check_buffer(gbp, (gbp->version == 3 ? 8 : 4)); 
     1054    status = hdr_check_buffer(gbp, (gbp->version == 5 ? 8 : 4)); 
    10531055    if(status != ENOERR) { 
    10541056      ncmpii_free_NC_var(varp); 
    10551057      return status; 
    10561058    } 
    1057     status = hdr_get_size_t(gbp, &(varp->dimids[dim])); 
     1059    status = hdr_get_size_t(gbp, &tmp_dimids); 
     1060    varp->dimids[dim] = (int)tmp_dimids; 
    10581061    if(status != ENOERR) { 
    10591062     return status; 
     
    10611064 
    10621065/*   
    1063     if (gbp->version == 3) { 
     1066    if (gbp->version == 5) { 
    10641067        status = ncmpix_getn_long_long((const void **)(&gbp->pos),  
    1065                               1, (int64_t*)varp->dimids + dim); 
     1068                              1, (MPI_Offset*)varp->dimids + dim); 
    10661069    } else { 
    10671070        status = ncmpix_getn_int_int((const void **)(&gbp->pos),  
     
    11671170  bufferinfo getbuf; 
    11681171  schar magic[sizeof(ncmagic)]; 
    1169   int64_t nrecs = 0; 
     1172  MPI_Offset nrecs = 0; 
    11701173 
    11711174  assert(ncp != NULL); 
     
    12081211                  return NC_ESMALL; 
    12091212          } 
    1210   } else if (magic[sizeof(ncmagic)-1] == 0x3) { 
    1211           getbuf.version = 3
     1213  } else if (magic[sizeof(ncmagic)-1] == 0x5) { 
     1214          getbuf.version = 5
    12121215          fSet(ncp->flags, NC_64BIT_DATA); 
    12131216          if (sizeof(MPI_Offset) != 8) { 
     
    12261229    return status; 
    12271230  }  
    1228   status = ncmpix_get_size_t((const void **)(&getbuf.pos), &nrecs, (getbuf.version == 3) ? 8 : 4); 
    1229  
    1230   if (getbuf.version == 3) { 
     1231  status = ncmpix_get_size_t((const void **)(&getbuf.pos), &nrecs, (getbuf.version == 5) ? 8 : 4); 
     1232 
     1233  if (getbuf.version == 5) { 
    12311234        getbuf.index += X_SIZEOF_LONG; 
    12321235  } else { 
     
    12641267   
    12651268  ncp->xsz = ncmpii_hdr_len_NC(ncp, (getbuf.version == 1) ? 4 : 8 ); 
    1266   status = ncmpii_NC_computeshapes(ncp, (getbuf.version == 3) ? 8 : 4); 
     1269  status = ncmpii_NC_computeshapes(ncp); 
    12671270  free(getbuf.base); 
    12681271   
  • trunk/CDF3/src/lib/mpincio.c

    r613 r625  
    271271 
    272272int 
    273 ncmpiio_move(ncio *const nciop, int64_t to, int64_t from, int64_t nbytes) { 
     273ncmpiio_move(ncio *const nciop, MPI_Offset to, MPI_Offset from, MPI_Offset nbytes) { 
    274274  int mpireturn, mpierr = 0, errcheck; 
    275   const int64_t bufsize = 4096; 
    276   int64_t movesize, bufcount; 
     275  const MPI_Offset bufsize = 4096; 
     276  MPI_Offset movesize, bufcount; 
    277277  int rank, grpsize; 
    278278  void *buf = malloc(bufsize); 
  • trunk/CDF3/src/lib/mpinetcdf.c

    r622 r625  
    3030static int need_convert(nc_type nctype,MPI_Datatype mpitype); 
    3131static int need_swap(nc_type nctype,MPI_Datatype mpitype); 
    32 static int x_putn_schar(void *xbuf, const void *buf, int64_t nelems, 
     32static int x_putn_schar(void *xbuf, const void *buf, MPI_Offset nelems, 
    3333                        MPI_Datatype datatype); 
    34 static int x_putn_short(void *xbuf, const void *buf, int64_t nelems, 
     34static int x_putn_short(void *xbuf, const void *buf, MPI_Offset nelems, 
    3535                        MPI_Datatype datatype); 
    36 static int x_putn_int(void *xbuf, const void *buf, int64_t nelems, 
     36static int x_putn_int(void *xbuf, const void *buf, MPI_Offset nelems, 
    3737                      MPI_Datatype datatype); 
    38 static int x_putn_float(void *xbuf, const void *buf, int64_t nelems, 
     38static int x_putn_float(void *xbuf, const void *buf, MPI_Offset nelems, 
    3939                        MPI_Datatype datatype); 
    40 static int x_putn_double(void *xbuf, const void *buf, int64_t nelems, 
     40static int x_putn_double(void *xbuf, const void *buf, MPI_Offset nelems, 
    4141                         MPI_Datatype datatype); 
    42 static int x_getn_schar(const void *xbuf, void *buf, int64_t nelems, 
     42static int x_getn_schar(const void *xbuf, void *buf, MPI_Offset nelems, 
    4343                        MPI_Datatype datatype); 
    44 static int x_getn_short(const void *xbuf, void *buf, int64_t nelems, 
     44static int x_getn_short(const void *xbuf, void *buf, MPI_Offset nelems, 
    4545                        MPI_Datatype datatype); 
    46 static int x_getn_int(const void *xbuf, void *buf, int64_t nelems, 
     46static int x_getn_int(const void *xbuf, void *buf, MPI_Offset nelems, 
    4747                      MPI_Datatype datatype); 
    48 static int x_getn_float(const void *xbuf, void *buf, int64_t nelems, 
     48static int x_getn_float(const void *xbuf, void *buf, MPI_Offset nelems, 
    4949                        MPI_Datatype datatype); 
    50 static int x_getn_double(const void *xbuf, void *buf, int64_t nelems, 
     50static int x_getn_double(const void *xbuf, void *buf, MPI_Offset nelems, 
    5151                         MPI_Datatype datatype); 
    5252static int set_var1_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp, 
    53                              const int64_t index[]); 
     53                             const MPI_Offset index[]); 
    5454static int set_var_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp); 
    5555static int set_vara_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp, 
    56                              const int64_t start[], const int64_t count[], 
     56                             const MPI_Offset start[], const MPI_Offset count[], 
    5757                             int getnotput); 
    5858static int set_vars_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp,  
    59                              const int64_t start[], const int64_t count[],  
    60                              const int64_t stride[], int getnotput); 
     59                             const MPI_Offset start[], const MPI_Offset count[],  
     60                             const MPI_Offset stride[], int getnotput); 
    6161static int check_mpifh(NC* ncp, MPI_File *mpifh, MPI_Comm comm, 
    6262                       int collective); 
     
    6767ncmpi_create(MPI_Comm comm, const char *path, int cmode, MPI_Info info, int *ncidp) { 
    6868  int status = NC_NOERR; 
    69   int64_t sizeof_off_t = 0; 
    70   int64_t chunksize=4098;     /* might be a good thing to hint later */ 
     69  MPI_Offset sizeof_off_t = 0; 
     70  MPI_Offset chunksize=4098;  /* might be a good thing to hint later */ 
    7171  NC *ncp; 
    7272 
     
    128128  int status = NC_NOERR; 
    129129  NC *ncp; 
    130   int64_t chunksize=4098;     /* might be a good thing to hint later */ 
     130  MPI_Offset chunksize=4098;  /* might be a good thing to hint later */ 
    131131   
    132132  ncp = ncmpii_new_NC(&chunksize); 
     
    195195  int status; 
    196196  NC *ncp; 
    197   int64_t mynumrecs, numrecs; 
     197  MPI_Offset mynumrecs, numrecs; 
    198198 
    199199  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    221221 
    222222    mynumrecs = ncp->numrecs; 
    223     MPI_Allreduce(&mynumrecs, &numrecs, 1, MPI_LONG, MPI_MAX, ncp->nciop->comm); 
     223    MPI_Allreduce(&mynumrecs, &numrecs, 1, MPI_LONG_LONG_INT, MPI_MAX, ncp->nciop->comm); 
    224224    if (numrecs > ncp->numrecs) { 
    225225      ncp->numrecs = numrecs; 
     
    494494 
    495495static void 
    496 swapn(void *dst, const void *src, int64_t nn, int xsize) 
     496swapn(void *dst, const void *src, MPI_Offset nn, int xsize) 
    497497{ 
    498498  int i; 
     
    508508 
    509509static int 
    510 x_putn_schar(void *xbuf, const void *buf, int64_t nelems, MPI_Datatype datatype) { 
     510x_putn_schar(void *xbuf, const void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    511511  void *xp, *data; 
    512512  int status = ENOERR; 
     
    533533 
    534534static int 
    535 x_putn_short(void *xbuf, const void *buf, int64_t nelems, MPI_Datatype datatype) { 
     535x_putn_short(void *xbuf, const void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    536536  void *xp, *data; 
    537537  int datainc; 
     
    563563 
    564564static int 
    565 x_putn_int(void *xbuf, const void *buf, int64_t nelems, MPI_Datatype datatype) { 
     565x_putn_int(void *xbuf, const void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    566566  void *xp, *data; 
    567567  int datainc; 
     
    593593 
    594594static int 
    595 x_putn_float(void *xbuf, const void *buf, int64_t nelems, MPI_Datatype datatype) { 
     595x_putn_float(void *xbuf, const void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    596596  void *xp, *data; 
    597597  int datainc; 
     
    623623 
    624624int 
    625 x_putn_double(void *xbuf, const void *buf, int64_t nelems, MPI_Datatype datatype) { 
     625x_putn_double(void *xbuf, const void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    626626  void *xp, *data; 
    627627  int datainc; 
     
    653653 
    654654static int 
    655 x_getn_schar(const void *xbuf, void *buf, int64_t nelems, MPI_Datatype datatype) { 
     655x_getn_schar(const void *xbuf, void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    656656  void *xp, *data; 
    657657  int status = ENOERR; 
     
    677677 
    678678static int 
    679 x_getn_short(const void *xbuf, void *buf, int64_t nelems, MPI_Datatype datatype) { 
     679x_getn_short(const void *xbuf, void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    680680  char *xp, *data; 
    681681  int datainc; 
     
    707707 
    708708static int  
    709 x_getn_int(const void *xbuf, void *buf, int64_t nelems, MPI_Datatype datatype) { 
     709x_getn_int(const void *xbuf, void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    710710  char *xp, *data; 
    711711  int datainc; 
     
    737737 
    738738static int 
    739 x_getn_float(const void *xbuf, void *buf, int64_t nelems, MPI_Datatype datatype) { 
     739x_getn_float(const void *xbuf, void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    740740  char *xp, *data; 
    741741  int datainc; 
     
    767767 
    768768static int 
    769 x_getn_double(const void *xbuf, void *buf, int64_t nelems, MPI_Datatype datatype) { 
     769x_getn_double(const void *xbuf, void *buf, MPI_Offset nelems, MPI_Datatype datatype) { 
    770770  char *xp, *data; 
    771771  int datainc; 
     
    833833 */ 
    834834static int 
    835 NCcoordck(NC *ncp, const NC_var *varp, const int64_t *coord) 
    836 { 
    837         const int64_t *ip; 
    838         int64_t *up; 
     835NCcoordck(NC *ncp, const NC_var *varp, const MPI_Offset *coord) 
     836{ 
     837        const MPI_Offset *ip; 
     838        MPI_Offset *up; 
    839839  
    840840        if(varp->ndims == 0) 
     
    845845        { 
    846846                 
    847                 if(*coord > X_INT64_T_MAX) 
     847/*                if(*coord > X_INT64_T_MAX) 
    848848                        return NC_EINVALCOORDS; /* sanity check */ 
    849849                if(NC_readonly(ncp) && *coord >= ncp->numrecs) 
     
    872872        for(; ip < coord + varp->ndims; ip++, up++) 
    873873        { 
    874                 /* cast needed for braindead systems with signed int64_t */ 
    875                 if( *ip >= (uint64_t)*up ) 
     874                /* cast needed for braindead systems with signed MPI_Offset */ 
     875                if( *ip >= (MPI_Offset)*up ) 
    876876                        return NC_EINVALCOORDS; 
    877877        } 
     
    885885static int 
    886886NCedgeck(const NC *ncp, const NC_var *varp, 
    887          const int64_t *start, const int64_t *edges) 
    888 { 
    889   const int64_t *const end = start + varp->ndims; 
    890   const int64_t *shp = varp->shape; 
     887         const MPI_Offset *start, const MPI_Offset *edges) 
     888{ 
     889  const MPI_Offset *const end = start + varp->ndims; 
     890  const MPI_Offset *shp = varp->shape; 
    891891 
    892892  if(varp->ndims == 0) 
     
    902902  for(; start < end; start++, edges++, shp++) 
    903903  { 
    904     /* cast needed for braindead systems with signed int64_t */ 
    905     if( *edges > (uint64_t)*shp || *start + *edges > (uint64_t)*shp) 
     904    /* cast needed for braindead systems with signed MPI_Offset */ 
     905    if( *edges > (MPI_Offset)*shp || *start + *edges > (MPI_Offset)*shp) 
    906906    { 
    907907      return(NC_EEDGE); 
     
    916916static int 
    917917NCstrideedgeck(const NC *ncp, const NC_var *varp, 
    918          const int64_t *start, const int64_t *edges, const int64_t *stride) 
    919 { 
    920   const int64_t *const end = start + varp->ndims; 
    921   const int64_t *shp = varp->shape; /* use int64_t for now :( */ 
     918         const MPI_Offset *start, const MPI_Offset *edges, const MPI_Offset *stride) 
     919{ 
     920  const MPI_Offset *const end = start + varp->ndims; 
     921  const MPI_Offset *shp = varp->shape; /* use MPI_Offset for now :( */ 
    922922 
    923923  if(varp->ndims == 0) 
     
    926926  if(IS_RECVAR(varp)) 
    927927  { 
    928     if ( *stride == 0 || *stride >= X_INT64_T_MAX) 
    929       /* cast needed for braindead systems with signed int64_t */ 
     928    if ( *stride == 0 ) /*|| *stride >= X_INT64_T_MAX)*/ 
     929      /* cast needed for braindead systems with signed MPI_Offset */ 
    930930      return NC_ESTRIDE; 
    931931 
     
    938938  for(; start < end; start++, edges++, shp++, stride++) 
    939939  { 
    940     /* cast needed for braindead systems with signed int64_t */ 
    941     if( (*edges > (uint64_t)*shp) ||  
    942         (*edges > 0 && *start+1 + (*edges-1) * *stride > (uint64_t)*shp) || 
    943         (*edges == 0 && *start > (uint64_t)*shp) ) 
     940    /* cast needed for braindead systems with signed MPI_Offset */ 
     941    if( (*edges > (MPI_Offset)*shp) ||  
     942        (*edges > 0 && *start+1 + (*edges-1) * *stride > (MPI_Offset)*shp) || 
     943        (*edges == 0 && *start > (MPI_Offset)*shp) ) 
    944944    { 
    945945      return(NC_EEDGE); 
    946946    } 
    947947 
    948     if ( *stride == 0 || *stride >= X_INT64_T_MAX) 
    949       /* cast needed for braindead systems with signed int64_t */ 
     948    if ( *stride == 0)/* || *stride >= X_INT64_T_MAX)*/ 
     949      /* cast needed for braindead systems with signed MPI_Offset */ 
    950950      return NC_ESTRIDE; 
    951951  } 
     
    956956 
    957957static int 
    958 set_var1_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp, const int64_t index[]) { 
    959   int64_t offset; 
    960   int status; 
    961   int64_t dim, ndims; 
     958set_var1_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp, const MPI_Offset index[]) { 
     959  MPI_Offset offset; 
     960  int status; 
     961  int dim, ndims; 
    962962  int mpireturn; 
    963963 
     
    10021002static int 
    10031003set_var_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp) { 
    1004   int64_t offset; 
     1004  MPI_Offset offset; 
    10051005  int mpireturn; 
    10061006 
     
    10571057 
    10581058static int 
    1059 set_vara_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp, const int64_t start[], const int64_t count[], int getnotput) { 
    1060  
    1061   int64_t offset; 
    1062   int status; 
    1063   int64_t dim, ndims; 
     1059set_vara_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp, const MPI_Offset start[], const MPI_Offset count[], int getnotput) { 
     1060 
     1061  MPI_Offset offset; 
     1062  int status; 
     1063  int dim, ndims; 
    10641064  int *shape = NULL, *subcount = NULL, *substart = NULL; /* all in bytes */ 
    1065   int64_t *shape64 = NULL, *subcount64 = NULL, *substart64 = NULL; 
     1065  MPI_Offset *shape64 = NULL, *subcount64 = NULL, *substart64 = NULL; 
    10661066  MPI_Datatype rectype; 
    10671067  MPI_Datatype filetype; 
     
    10691069  MPI_Datatype types[3]; 
    10701070  MPI_Datatype type1; 
    1071   int64_t size, disps[3]; 
     1071  MPI_Offset size, disps[3]; 
    10721072  int blklens[3]; 
    10731073  int tag = 0; 
     
    12221222          MPI_Type_commit(&filetype); 
    12231223        } else { 
    1224 shape64 = (int64_t *)malloc(sizeof(int64_t) * ndims); 
    1225           subcount64 = (int64_t *)malloc(sizeof(int64_t) * ndims); 
    1226           substart64 = (int64_t *)malloc(sizeof(int64_t) * ndims); 
     1224shape64 = (MPI_Offset *)malloc(sizeof(MPI_Offset) * ndims); 
     1225          subcount64 = (MPI_Offset *)malloc(sizeof(MPI_Offset) * ndims); 
     1226          substart64 = (MPI_Offset *)malloc(sizeof(MPI_Offset) * ndims); 
    12271227 
    12281228          if (ndims == 1){  // for 64-bit support,  added July 23, 2008 
     
    12921292          MPI_Type_struct(3, 
    12931293                    blklens, 
    1294                     disps, 
     1294                    (MPI_Aint*) disps, 
    12951295                    types, 
    12961296                    &filetype); 
     
    13311331static int 
    13321332set_vars_fileview(NC* ncp, MPI_File *mpifh, NC_var* varp,  
    1333                      const int64_t start[], const int64_t count[],  
    1334                      const int64_t stride[], int getnotput) { 
    1335   int64_t offset; 
     1333                     const MPI_Offset start[], const MPI_Offset count[],  
     1334                     const MPI_Offset stride[], int getnotput) { 
     1335  MPI_Offset offset; 
    13361336  int status; 
    13371337  int mpireturn; 
    1338   int64_t dim, ndims; 
     1338  int dim, ndims; 
    13391339  MPI_Datatype *subtypes, *filetype; 
    1340   int64_t *blocklens = NULL, *blockstride = NULL, *blockcount = NULL; 
     1340  MPI_Offset *blocklens = NULL, *blockstride = NULL, *blockcount = NULL; 
    13411341 
    13421342  ndims = varp->ndims; 
     
    13931393 
    13941394 if(getnotput && IS_RECVAR(varp) && 
    1395      (uint64_t)*start + (uint64_t)*count > NC_get_numrecs(ncp)) 
     1395     (MPI_Offset)*start + (MPI_Offset)*count > NC_get_numrecs(ncp)) 
    13961396      return NC_EEDGE; 
    13971397*/ 
     
    14081408  } else {   
    14091409 
    1410     blocklens = (int64_t *) malloc(ndims * sizeof(int64_t)); 
    1411     blockstride = (int64_t *) malloc(ndims * sizeof(int64_t)); 
    1412     blockcount = (int64_t *) malloc(ndims * sizeof(int64_t)); 
     1410    blocklens = (MPI_Offset *) malloc(ndims * sizeof(MPI_Offset)); 
     1411    blockstride = (MPI_Offset *) malloc(ndims * sizeof(MPI_Offset)); 
     1412    blockcount = (MPI_Offset *) malloc(ndims * sizeof(MPI_Offset)); 
    14131413 
    14141414    dim = 0; 
     
    14971497 
    14981498int 
    1499 ncmpi_put_var1(int ncid, int64_t varid, 
    1500                const int64_t index[], 
    1501                const void *buf, int64_t bufcount, 
     1499ncmpi_put_var1(int ncid, int varid, 
     1500               const MPI_Offset index[], 
     1501               const void *buf, MPI_Offset bufcount, 
    15021502               MPI_Datatype datatype) { 
    15031503  NC_var *varp; 
     
    15051505  void *xbuf = NULL, *cbuf = NULL; 
    15061506  int status = NC_NOERR, warning = NC_NOERR; 
    1507   int64_t nelems, cnelems, nbytes; 
     1507  MPI_Offset nelems, cnelems, nbytes; 
    15081508  int el_size; 
    15091509  MPI_Status mpistatus; 
     
    16361636    /* update the number of records in NC */ 
    16371637  
    1638     int64_t newnumrecs; 
     1638    MPI_Offset newnumrecs; 
    16391639    newnumrecs = index[0] + 1; 
    16401640    if (ncp->numrecs < newnumrecs) { 
     
    16481648 
    16491649int 
    1650 ncmpi_get_var1(int ncid, int64_t varid, 
    1651                const int64_t index[], 
    1652                void *buf, int64_t bufcount, 
     1650ncmpi_get_var1(int ncid, int varid, 
     1651               const MPI_Offset index[], 
     1652               void *buf, MPI_Offset bufcount, 
    16531653               MPI_Datatype datatype) { 
    16541654  NC_var *varp; 
     
    16561656  void *xbuf = NULL, *cbuf = NULL; 
    16571657  int status = NC_NOERR, warning = NC_NOERR; 
    1658   int64_t nelems, cnelems, nbytes;  
     1658  MPI_Offset nelems, cnelems, nbytes;  
    16591659  int el_size; 
    16601660  MPI_Status mpistatus; 
     
    17911791 
    17921792int 
    1793 ncmpi_get_var_all(int ncid, int64_t varid, void *buf, int64_t bufcount, MPI_Datatype datatype) { 
     1793ncmpi_get_var_all(int ncid, int varid, void *buf, MPI_Offset bufcount, MPI_Datatype datatype) { 
    17941794  NC_var *varp; 
    17951795  NC *ncp; 
    17961796  void *xbuf = NULL, *cbuf = NULL; 
    17971797  int status = NC_NOERR, warning = NC_NOERR; 
    1798   int64_t nelems, cnelems, nbytes; 
     1798  MPI_Offset nelems, cnelems, nbytes; 
    17991799  int el_size; 
    18001800  MPI_Status mpistatus; 
     
    19401940 
    19411941int 
    1942 ncmpi_put_var(int ncid, int64_t varid, const void *buf, int64_t bufcount, MPI_Datatype datatype) { 
     1942ncmpi_put_var(int ncid, int varid, const void *buf, MPI_Offset bufcount, MPI_Datatype datatype) { 
    19431943  NC_var *varp; 
    19441944  NC *ncp; 
    19451945  void *xbuf = NULL, *cbuf = NULL; 
    19461946  int status = NC_NOERR, warning = NC_NOERR; 
    1947   int64_t nelems, cnelems, nbytes; 
     1947  MPI_Offset nelems, cnelems, nbytes; 
    19481948  int el_size; 
    19491949  MPI_Status mpistatus; 
     
    20832083    /* update the number of records in NC */ 
    20842084  
    2085     int64_t newnumrecs; 
     2085    MPI_Offset newnumrecs; 
    20862086    if (varp->ndims > 1) 
    20872087      newnumrecs = nelems / varp->dsizes[1]; 
     
    20982098 
    20992099int 
    2100 ncmpi_get_var(int ncid, int64_t varid, void *buf, int64_t bufcount, MPI_Datatype datatype) { 
     2100ncmpi_get_var(int ncid, int varid, void *buf, MPI_Offset bufcount, MPI_Datatype datatype) { 
    21012101  NC_var *varp; 
    21022102  NC *ncp; 
    21032103  void *xbuf = NULL, *cbuf = NULL; 
    21042104  int status = NC_NOERR, warning = NC_NOERR; 
    2105   int64_t nelems, cnelems, nbytes; 
     2105  MPI_Offset nelems, cnelems, nbytes; 
    21062106  int el_size; 
    21072107  MPI_Status mpistatus; 
     
    22462246 
    22472247int 
    2248 ncmpi_put_vara_all(int ncid, int64_t varid, 
    2249                    const int64_t start[], const int64_t count[], 
    2250                    const void *buf, int64_t bufcount,  
     2248ncmpi_put_vara_all(int ncid, int varid, 
     2249                   const MPI_Offset start[], const MPI_Offset count[], 
     2250                   const void *buf, MPI_Offset bufcount,  
    22512251                   MPI_Datatype datatype) { 
    22522252 
     
    22552255  void *xbuf = NULL, *cbuf = NULL; 
    22562256  int status = NC_NOERR, warning = NC_NOERR; 
    2257   int64_t dim; 
    2258   int64_t nelems, cnelems, nbytes; 
     2257  int dim; 
     2258  MPI_Offset nelems, cnelems, nbytes; 
    22592259  int el_size; 
    22602260  MPI_Status mpistatus; 
     
    23982398        and write it back to file header, if necessary 
    23992399    */ 
    2400     int64_t newnumrecs, max_numrecs; 
     2400    MPI_Offset newnumrecs, max_numrecs; 
    24012401    newnumrecs = start[0] + count[0]; 
    24022402    if (ncp->numrecs < newnumrecs) { 
     
    24052405    } 
    24062406    if (NC_doNsync(ncp)) { 
    2407       MPI_Allreduce( &newnumrecs, &max_numrecs, 1, MPI_LONG, MPI_MAX, comm ); 
     2407      MPI_Allreduce( &newnumrecs, &max_numrecs, 1, MPI_LONG_LONG_INT, MPI_MAX, comm ); 
    24082408  
    24092409      if (ncp->numrecs < max_numrecs) { 
     
    24252425 
    24262426int 
    2427 ncmpi_get_vara_all(int ncid, int64_t varid, 
    2428                    const int64_t start[], const int64_t count[], 
    2429                    void *buf, int64_t bufcount, 
     2427ncmpi_get_vara_all(int ncid, int varid, 
     2428                   const MPI_Offset start[], const MPI_Offset count[], 
     2429                   void *buf, MPI_Offset bufcount, 
    24302430                   MPI_Datatype datatype) { 
    24312431 
     
    24342434  void *xbuf = NULL, *cbuf = NULL; 
    24352435  int status = NC_NOERR, warning = NC_NOERR; 
    2436   int64_t dim; 
    2437   int64_t nelems, cnelems, nbytes; 
     2436  int dim; 
     2437  MPI_Offset nelems, cnelems, nbytes; 
    24382438  int el_size; 
    24392439  MPI_Status mpistatus; 
     
    25762576 
    25772577int 
    2578 ncmpi_put_vara(int ncid, int64_t varid, 
    2579                const int64_t start[], const int64_t count[], 
    2580                const void *buf, int64_t bufcount, 
     2578ncmpi_put_vara(int ncid, int varid, 
     2579               const MPI_Offset start[], const MPI_Offset count[], 
     2580               const void *buf, MPI_Offset bufcount, 
    25812581               MPI_Datatype datatype) { 
    25822582  NC_var *varp; 
     
    25842584  void *xbuf = NULL,  *cbuf = NULL; 
    25852585  int status = NC_NOERR, warning = NC_NOERR; 
    2586   int64_t dim; 
    2587   int64_t nelems, cnelems, nbytes; 
     2586  int dim; 
     2587  MPI_Offset nelems, cnelems, nbytes; 
    25882588  int el_size; 
    25892589  MPI_Status mpistatus; 
     
    27212721    /* update the number of records in NC */ 
    27222722  
    2723     int64_t newnumrecs; 
     2723    MPI_Offset newnumrecs; 
    27242724    newnumrecs = start[0] + count[0]; 
    27252725    if (ncp->numrecs < newnumrecs) { 
     
    27332733 
    27342734int 
    2735 ncmpi_get_vara(int ncid, int64_t varid, 
    2736                const int64_t start[], const int64_t count[], 
    2737                void *buf, int64_t bufcount, 
     2735ncmpi_get_vara(int ncid, int varid, 
     2736               const MPI_Offset start[], const MPI_Offset count[], 
     2737               void *buf, MPI_Offset bufcount, 
    27382738               MPI_Datatype datatype) { 
    27392739  NC_var *varp; 
     
    27412741  void *xbuf = NULL, *cbuf = NULL; 
    27422742  int status = NC_NOERR, warning = NC_NOERR; 
    2743   int64_t dim; 
    2744   int64_t nelems, cnelems, nbytes; 
     2743  int dim; 
     2744  MPI_Offset nelems, cnelems, nbytes; 
    27452745  int el_size; 
    27462746  MPI_Status mpistatus; 
     
    28832883 
    28842884int 
    2885 ncmpi_put_vars_all(int ncid, int64_t varid, 
    2886                    const int64_t start[],  
    2887                    const int64_t count[], 
    2888                    const int64_t stride[], 
    2889                    const void *buf, int64_t bufcount,  
     2885ncmpi_put_vars_all(int ncid, int varid, 
     2886                   const MPI_Offset start[],  
     2887                   const MPI_Offset count[], 
     2888                   const MPI_Offset stride[], 
     2889                   const void *buf, MPI_Offset bufcount,  
    28902890                   MPI_Datatype datatype) { 
    28912891  NC_var *varp; 
     
    28932893  void *xbuf = NULL, *cbuf = NULL; 
    28942894  int status = NC_NOERR, warning = NC_NOERR; 
    2895   int64_t dim; 
    2896   int64_t nelems, cnelems, nbytes; 
     2895  int dim; 
     2896  MPI_Offset nelems, cnelems, nbytes; 
    28972897  int el_size; 
    28982898  MPI_Status mpistatus; 
     
    29012901  MPI_Datatype ptype; 
    29022902  int isderived, iscontig_of_ptypes; 
    2903   int64_t *stride_was_null=NULL, *stride_ptr; 
     2903  MPI_Offset *stride_was_null=NULL, *stride_ptr; 
    29042904 
    29052905  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    29532953 
    29542954  /* NULL stride is legal and means (1,1,1,..1) */ 
    2955   stride_ptr = (int64_t *)stride; 
     2955  stride_ptr = (MPI_Offset *)stride; 
    29562956  if (stride == NULL) { 
    2957           stride_was_null=(int64_t*)malloc(varp->ndims*sizeof(int64_t)); 
     2957          stride_was_null=(MPI_Offset*)malloc(varp->ndims*sizeof(MPI_Offset)); 
    29582958          for (dim=0; dim < varp->ndims; dim++) { 
    29592959                  stride_was_null[dim] = 1; 
     
    30473047        and write it back to file header, if necessary 
    30483048    */ 
    3049     int64_t newnumrecs, max_numrecs; 
     3049    MPI_Offset newnumrecs, max_numrecs; 
    30503050    newnumrecs = start[0] + (count[0] - 1) * stride_ptr[0] + 1; 
    30513051    if (ncp->numrecs < newnumrecs) { 
     
    30543054    } 
    30553055    if (NC_doNsync(ncp)) { 
    3056       MPI_Allreduce( &newnumrecs, &max_numrecs, 1, MPI_LONG, MPI_MAX, comm ); 
     3056      MPI_Allreduce( &newnumrecs, &max_numrecs, 1, MPI_LONG_LONG_INT, MPI_MAX, comm ); 
    30573057  
    30583058      if (ncp->numrecs < max_numrecs) { 
     
    30753075 
    30763076int 
    3077 ncmpi_get_vars_all(int ncid, int64_t varid, 
    3078                    const int64_t start[],  
    3079                    const int64_t count[], 
    3080                    const int64_t stride[], 
    3081                    void *buf, int64_t bufcount, 
     3077ncmpi_get_vars_all(int ncid, int varid, 
     3078                   const MPI_Offset start[],  
     3079                   const MPI_Offset count[], 
     3080                   const MPI_Offset stride[], 
     3081                   void *buf, MPI_Offset bufcount, 
    30823082                   MPI_Datatype datatype) { 
    30833083 
     
    30863086  void *xbuf = NULL, *cbuf = NULL; 
    30873087  int status = NC_NOERR, warning = NC_NOERR; 
    3088   int64_t dim; 
    3089   int64_t nelems, cnelems, nbytes; 
     3088  int dim; 
     3089  MPI_Offset nelems, cnelems, nbytes; 
    30903090  int el_size; 
    30913091  MPI_Status mpistatus; 
     
    32293229 
    32303230int 
    3231 ncmpi_put_vars(int ncid, int64_t varid, 
    3232                const int64_t start[],  
    3233                const int64_t count[], 
    3234                const int64_t stride[], 
    3235                const void *buf, int64_t bufcount, 
     3231ncmpi_put_vars(int ncid, int varid, 
     3232               const MPI_Offset start[],  
     3233               const MPI_Offset count[], 
     3234               const MPI_Offset stride[], 
     3235               const void *buf, MPI_Offset bufcount, 
    32363236               MPI_Datatype datatype) { 
    32373237  NC_var *varp; 
     
    32393239  void *xbuf = NULL, *cbuf = NULL; 
    32403240  int status = NC_NOERR, warning = NC_NOERR; 
    3241   int64_t dim; 
    3242   int64_t nelems, cnelems, nbytes; 
     3241  int dim; 
     3242  MPI_Offset nelems, cnelems, nbytes; 
    32433243  int el_size; 
    32443244  MPI_Status mpistatus; 
     
    33773377    /* update the number of records in NC */ 
    33783378  
    3379     int64_t newnumrecs; 
     3379    MPI_Offset newnumrecs; 
    33803380    newnumrecs = start[0] + (count[0] - 1) * stride[0] + 1; 
    33813381    if (ncp->numrecs < newnumrecs) { 
     
    33893389 
    33903390int 
    3391 ncmpi_get_vars(int ncid, int64_t varid, 
    3392                const int64_t start[],  
    3393                const int64_t count[], 
    3394                const int64_t stride[], 
    3395                void *buf, int64_t bufcount, 
     3391ncmpi_get_vars(int ncid, int varid, 
     3392               const MPI_Offset start[],  
     3393               const MPI_Offset count[], 
     3394               const MPI_Offset stride[], 
     3395               void *buf, MPI_Offset bufcount, 
    33963396               MPI_Datatype datatype) { 
    33973397  NC_var *varp; 
     
    33993399  void *xbuf = NULL, *cbuf = NULL; 
    34003400  int status = NC_NOERR, warning = NC_NOERR; 
    3401   int64_t dim; 
    3402   int64_t nelems, cnelems, nbytes; 
     3401  int dim; 
     3402  MPI_Offset nelems, cnelems, nbytes; 
    34033403  int el_size; 
    34043404  MPI_Status mpistatus; 
     
    35643564 
    35653565int 
    3566 ncmpi_put_varm_all(int ncid, int64_t varid, 
    3567                    const int64_t start[], 
    3568                    const int64_t count[], 
    3569                    const int64_t stride[], 
    3570                    const int64_t imap[], 
    3571                    const void *buf, int64_t bufcount, 
     3566ncmpi_put_varm_all(int ncid, int varid, 
     3567                   const MPI_Offset start[], 
     3568                   const MPI_Offset count[], 
     3569                   const MPI_Offset stride[], 
     3570                   const MPI_Offset imap[], 
     3571                   const void *buf, MPI_Offset bufcount, 
    35723572                   MPI_Datatype datatype)  
    35733573{ 
    35743574  NC_var *varp; 
    35753575  NC *ncp; 
    3576   int64_t ndims, dim; 
     3576  MPI_Offset ndims, dim; 
    35773577  void *lbuf = NULL, *cbuf = NULL; 
    35783578  int status = NC_NOERR, warning = NC_NOERR; 
    3579   int64_t lnelems, cnelems; 
     3579  MPI_Offset lnelems, cnelems; 
    35803580  int el_size; 
    35813581  MPI_Datatype ptype, tmptype, imaptype; 
     
    36903690 
    36913691int 
    3692 ncmpi_get_varm_all(int ncid, int64_t varid, 
    3693                    const int64_t start[], 
    3694                    const int64_t count[], 
    3695                    const int64_t stride[], 
    3696                    const int64_t imap[], 
    3697                    void *buf, int64_t bufcount, 
     3692ncmpi_get_varm_all(int ncid, int varid, 
     3693                   const MPI_Offset start[], 
     3694                   const MPI_Offset count[], 
     3695                   const MPI_Offset stride[], 
     3696                   const MPI_Offset imap[], 
     3697                   void *buf, MPI_Offset bufcount, 
    36983698                   MPI_Datatype datatype)  
    36993699{ 
    37003700  NC_var *varp; 
    37013701  NC *ncp; 
    3702   int64_t ndims, dim; 
     3702  MPI_Offset ndims, dim; 
    37033703  void *lbuf = NULL, *cbuf = NULL; 
    37043704  int status = NC_NOERR, warning = NC_NOERR; 
    3705   int64_t lnelems, cnelems;  
     3705  MPI_Offset lnelems, cnelems;  
    37063706  int el_size; 
    37073707  MPI_Datatype ptype, tmptype, imaptype; 
     
    38323832 
    38333833int 
    3834 ncmpi_put_varm(int ncid, int64_t varid, 
    3835                const int64_t start[], 
    3836                const int64_t count[], 
    3837                const int64_t stride[], 
    3838                const int64_t imap[], 
    3839                const void *buf, int64_t bufcount, 
     3834ncmpi_put_varm(int ncid, int varid, 
     3835               const MPI_Offset start[], 
     3836               const MPI_Offset count[], 
     3837               const MPI_Offset stride[], 
     3838               const MPI_Offset imap[], 
     3839               const void *buf, MPI_Offset bufcount, 
    38403840               MPI_Datatype datatype)  
    38413841{ 
    38423842  NC_var *varp; 
    38433843  NC *ncp; 
    3844   int64_t ndims, dim; 
     3844  MPI_Offset ndims, dim; 
    38453845  void *lbuf = NULL, *cbuf = NULL; 
    38463846  int status = NC_NOERR, warning = NC_NOERR; 
    3847   int64_t lnelems, cnelems; 
     3847  MPI_Offset lnelems, cnelems; 
    38483848  int el_size; 
    38493849  MPI_Datatype ptype, tmptype, imaptype; 
     
    39583958 
    39593959int 
    3960 ncmpi_get_varm(int ncid, int64_t varid, 
    3961                    const int64_t start[], 
    3962                    const int64_t count[], 
    3963                    const int64_t stride[], 
    3964                    const int64_t imap[], 
    3965                    void *buf, int64_t bufcount, 
     3960ncmpi_get_varm(int ncid, int varid, 
     3961                   const MPI_Offset start[], 
     3962                   const MPI_Offset count[], 
     3963                   const MPI_Offset stride[], 
     3964                   const MPI_Offset imap[], 
     3965                   void *buf, MPI_Offset bufcount, 
    39663966                   MPI_Datatype datatype)  
    39673967{ 
    39683968  NC_var *varp; 
    39693969  NC *ncp; 
    3970   int64_t ndims, dim; 
     3970  MPI_Offset ndims, dim; 
    39713971  void *lbuf = NULL, *cbuf = NULL; 
    39723972  int status = NC_NOERR, warning = NC_NOERR; 
    3973   int64_t lnelems, cnelems; 
     3973  MPI_Offset lnelems, cnelems; 
    39743974  int el_size; 
    39753975  MPI_Datatype ptype, tmptype, imaptype; 
     
    41004100 
    41014101int 
    4102 ncmpi_put_var1_uchar(int ncid, int64_t varid, 
    4103                      const int64_t index[], 
     4102ncmpi_put_var1_uchar(int ncid, int varid, 
     4103                     const MPI_Offset index[], 
    41044104                     const unsigned char *op) { 
    41054105  NC_var *varp; 
     
    41204120 
    41214121int 
    4122 ncmpi_put_var1_schar(int ncid, int64_t varid, 
    4123                      const int64_t index[], 
     4122ncmpi_put_var1_schar(int ncid, int varid, 
     4123                     const MPI_Offset index[], 
    41244124                     const signed char *op) { 
    41254125  NC_var *varp; 
     
    41404140 
    41414141int 
    4142 ncmpi_put_var1_text(int ncid, int64_t varid, 
    4143                      const int64_t index[], 
     4142ncmpi_put_var1_text(int ncid, int varid, 
     4143                     const MPI_Offset index[], 
    41444144                     const char *op) { 
    41454145  NC_var *varp; 
     
    41614161 
    41624162int 
    4163 ncmpi_put_var1_short(int ncid, int64_t varid, 
    4164                      const int64_t index[], 
     4163ncmpi_put_var1_short(int ncid, int varid, 
     4164                     const MPI_Offset index[], 
    41654165                     const short *op) { 
    41664166  NC_var *varp; 
     
    41814181 
    41824182int 
    4183 ncmpi_put_var1_int(int ncid, int64_t varid, 
    4184                    const int64_t index[], 
     4183ncmpi_put_var1_int(int ncid, int varid, 
     4184                   const MPI_Offset index[], 
    41854185                   const int *op) { 
    41864186  NC_var *varp; 
     
    42014201 
    42024202int 
    4203 ncmpi_put_var1_long(int ncid, int64_t varid, 
    4204                    const int64_t index[], 
     4203ncmpi_put_var1_long(int ncid, int varid, 
     4204                   const MPI_Offset index[], 
    42054205                   const long *op) { 
    42064206  NC_var *varp; 
     
    42214221 
    42224222int 
    4223 ncmpi_put_var1_float(int ncid, int64_t varid, 
    4224                      const int64_t index[], 
     4223ncmpi_put_var1_float(int ncid, int varid, 
     4224                     const MPI_Offset index[], 
    42254225                     const float *op) { 
    42264226  NC_var *varp; 
     
    42414241  
    42424242int 
    4243 ncmpi_put_var1_double(int ncid, int64_t varid, 
    4244                       const int64_t index[], 
     4243ncmpi_put_var1_double(int ncid, int varid, 
     4244                      const MPI_Offset index[], 
    42454245                      const double *op) { 
    42464246  NC_var *varp; 
     
    42614261 
    42624262int 
    4263 ncmpi_get_var1_uchar(int ncid, int64_t varid, 
    4264                      const int64_t index[], 
     4263ncmpi_get_var1_uchar(int ncid, int varid, 
     4264                     const MPI_Offset index[], 
    42654265                     unsigned char *ip) { 
    42664266  NC_var *varp; 
     
    42814281 
    42824282int 
    4283 ncmpi_get_var1_schar(int ncid, int64_t varid, 
    4284                      const int64_t index[], 
     4283ncmpi_get_var1_schar(int ncid, int varid, 
     4284                     const MPI_Offset index[], 
    42854285                     signed char *ip) { 
    42864286  NC_var *varp; 
     
    43014301 
    43024302int 
    4303 ncmpi_get_var1_text(int ncid, int64_t varid, 
    4304                      const int64_t index[], 
     4303ncmpi_get_var1_text(int ncid, int varid, 
     4304                     const MPI_Offset index[], 
    43054305                     char *ip) { 
    43064306  NC_var *varp; 
     
    43214321 
    43224322int 
    4323 ncmpi_get_var1_short(int ncid, int64_t varid, 
    4324                      const int64_t index[], 
     4323ncmpi_get_var1_short(int ncid, int varid, 
     4324                     const MPI_Offset index[], 
    43254325                     short *ip) { 
    43264326  NC_var *varp; 
     
    43414341  
    43424342int 
    4343 ncmpi_get_var1_int(int ncid, int64_t varid, 
    4344                    const int64_t index[], 
     4343ncmpi_get_var1_int(int ncid, int varid, 
     4344                   const MPI_Offset index[], 
    43454345                   int *ip) { 
    43464346  NC_var *varp; 
     
    43614361  
    43624362int 
    4363 ncmpi_get_var1_long(int ncid, int64_t varid, 
    4364                    const int64_t index[], 
     4363ncmpi_get_var1_long(int ncid, int varid, 
     4364                   const MPI_Offset index[], 
    43654365                   long *ip) { 
    43664366  NC_var *varp; 
     
    43814381 
    43824382int 
    4383 ncmpi_get_var1_float(int ncid, int64_t varid, 
    4384                      const int64_t index[], 
     4383ncmpi_get_var1_float(int ncid, int varid, 
     4384                     const MPI_Offset index[], 
    43854385                     float *ip) { 
    43864386  NC_var *varp; 
     
    44014401  
    44024402int 
    4403 ncmpi_get_var1_double(int ncid, int64_t varid, 
    4404                       const int64_t index[], 
     4403ncmpi_get_var1_double(int ncid, int varid, 
     4404                      const MPI_Offset index[], 
    44054405                      double *ip) { 
    44064406  NC_var *varp; 
     
    44214421 
    44224422int 
    4423 ncmpi_put_var_uchar(int ncid, int64_t varid, const unsigned char *op) { 
     4423ncmpi_put_var_uchar(int ncid, int varid, const unsigned char *op) { 
    44244424  NC_var *varp; 
    44254425  NC *ncp; 
    44264426  int status; 
    44274427  int ndims; 
    4428   int64_t nelems; 
     4428  MPI_Offset nelems; 
    44294429 
    44304430  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    44554455 
    44564456int 
    4457 ncmpi_put_var_schar(int ncid, int64_t varid, const signed char *op) { 
     4457ncmpi_put_var_schar(int ncid, int varid, const signed char *op) { 
    44584458  NC_var *varp; 
    44594459  NC *ncp; 
    44604460  int status; 
    44614461  int ndims; 
    4462   int64_t nelems; 
     4462  MPI_Offset nelems; 
    44634463 
    44644464  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    44904490 
    44914491int 
    4492 ncmpi_put_var_text(int ncid, int64_t varid, const char *op) { 
     4492ncmpi_put_var_text(int ncid, int varid, const char *op) { 
    44934493  NC_var *varp; 
    44944494  NC *ncp; 
    44954495  int status; 
    44964496  int ndims; 
    4497   int64_t nelems; 
     4497  MPI_Offset nelems; 
    44984498 
    44994499  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    45244524 
    45254525int 
    4526 ncmpi_put_var_short(int ncid, int64_t varid, const short *op) { 
     4526ncmpi_put_var_short(int ncid, int varid, const short *op) { 
    45274527  NC_var *varp; 
    45284528  NC *ncp; 
    45294529  int status; 
    45304530  int ndims; 
    4531   int64_t nelems; 
     4531  MPI_Offset nelems; 
    45324532  
    45334533  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    45584558 
    45594559int 
    4560 ncmpi_put_var_int(int ncid, int64_t varid, const int *op) { 
     4560ncmpi_put_var_int(int ncid, int varid, const int *op) { 
    45614561  NC_var *varp; 
    45624562  NC *ncp; 
    45634563  int status; 
    45644564  int ndims; 
    4565   int64_t nelems; 
     4565  MPI_Offset nelems; 
    45664566  
    45674567  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    45924592 
    45934593int 
    4594 ncmpi_put_var_long(int ncid, int64_t varid, const long *op) { 
     4594ncmpi_put_var_long(int ncid, int varid, const long *op) { 
    45954595  NC_var *varp; 
    45964596  NC *ncp; 
    45974597  int status; 
    45984598  int ndims; 
    4599   int64_t nelems; 
     4599  MPI_Offset nelems; 
    46004600 
    46014601  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    46264626 
    46274627int 
    4628 ncmpi_put_var_float(int ncid, int64_t varid, const float *op) { 
     4628ncmpi_put_var_float(int ncid, int varid, const float *op) { 
    46294629  NC_var *varp; 
    46304630  NC *ncp; 
    46314631  int status; 
    46324632  int ndims; 
    4633   int64_t nelems; 
     4633  MPI_Offset nelems; 
    46344634  
    46354635  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    46604660 
    46614661int 
    4662 ncmpi_put_var_double(int ncid, int64_t varid, const double *op) { 
     4662ncmpi_put_var_double(int ncid, int varid, const double *op) { 
    46634663  NC_var *varp; 
    46644664  NC *ncp; 
    46654665  int status; 
    46664666  int ndims; 
    4667   int64_t nelems; 
     4667  MPI_Offset nelems; 
    46684668  
    46694669  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    46944694 
    46954695int 
    4696 ncmpi_get_var_uchar(int ncid, int64_t varid, unsigned char *ip) { 
     4696ncmpi_get_var_uchar(int ncid, int varid, unsigned char *ip) { 
    46974697  NC_var *varp; 
    46984698  NC *ncp; 
    46994699  int status; 
    47004700  int ndims; 
    4701   int64_t nelems; 
     4701  MPI_Offset nelems; 
    47024702 
    47034703  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    47284728 
    47294729int 
    4730 ncmpi_get_var_schar(int ncid, int64_t varid, signed char *ip) { 
     4730ncmpi_get_var_schar(int ncid, int varid, signed char *ip) { 
    47314731  NC_var *varp; 
    47324732  NC *ncp; 
    47334733  int status; 
    47344734  int ndims; 
    4735   int64_t nelems; 
     4735  MPI_Offset nelems; 
    47364736 
    47374737  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    47624762 
    47634763int 
    4764 ncmpi_get_var_text(int ncid, int64_t varid, char *ip) { 
     4764ncmpi_get_var_text(int ncid, int varid, char *ip) { 
    47654765  NC_var *varp; 
    47664766  NC *ncp; 
    47674767  int status; 
    47684768  int ndims; 
    4769   int64_t nelems; 
     4769  MPI_Offset nelems; 
    47704770 
    47714771  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    47964796 
    47974797int 
    4798 ncmpi_get_var_short(int ncid, int64_t varid, short *ip) { 
     4798ncmpi_get_var_short(int ncid, int varid, short *ip) { 
    47994799  NC_var *varp; 
    48004800  NC *ncp; 
    48014801  int status; 
    48024802  int ndims; 
    4803   int64_t nelems; 
     4803  MPI_Offset nelems; 
    48044804  
    48054805  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    48304830 
    48314831int 
    4832 ncmpi_get_var_int(int ncid, int64_t varid, int *ip) { 
     4832ncmpi_get_var_int(int ncid, int varid, int *ip) { 
    48334833  NC_var *varp; 
    48344834  NC *ncp; 
    48354835  int status; 
    48364836  int ndims; 
    4837   int64_t nelems; 
     4837  MPI_Offset nelems; 
    48384838  
    48394839  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    48644864 
    48654865int 
    4866 ncmpi_get_var_long(int ncid, int64_t varid, long *ip) { 
     4866ncmpi_get_var_long(int ncid, int varid, long *ip) { 
    48674867  NC_var *varp; 
    48684868  NC *ncp; 
    48694869  int status; 
    48704870  int ndims; 
    4871   int64_t nelems; 
     4871  MPI_Offset nelems; 
    48724872 
    48734873  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    48984898 
    48994899int 
    4900 ncmpi_get_var_float(int ncid, int64_t varid, float *ip) { 
     4900ncmpi_get_var_float(int ncid, int varid, float *ip) { 
    49014901  NC_var *varp; 
    49024902  NC *ncp; 
    49034903  int status; 
    49044904  int ndims; 
    4905   int64_t nelems; 
     4905  MPI_Offset nelems; 
    49064906  
    49074907  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    49324932 
    49334933int 
    4934 ncmpi_get_var_double(int ncid, int64_t varid, double *ip) { 
     4934ncmpi_get_var_double(int ncid, int varid, double *ip) { 
    49354935  NC_var *varp; 
    49364936  NC *ncp; 
    49374937  int status; 
    49384938  int ndims; 
    4939   int64_t nelems; 
     4939  MPI_Offset nelems; 
    49404940  
    49414941  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    49664966 
    49674967int 
    4968 ncmpi_get_var_uchar_all(int ncid, int64_t varid, unsigned char *ip) { 
     4968ncmpi_get_var_uchar_all(int ncid, int varid, unsigned char *ip) { 
    49694969  NC_var *varp; 
    49704970  NC *ncp; 
    49714971  int status; 
    49724972  int ndims; 
    4973   int64_t nelems; 
     4973  MPI_Offset nelems; 
    49744974 
    49754975  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    50005000 
    50015001int 
    5002 ncmpi_get_var_schar_all(int ncid, int64_t varid, signed char *ip) { 
     5002ncmpi_get_var_schar_all(int ncid, int varid, signed char *ip) { 
    50035003  NC_var *varp; 
    50045004  NC *ncp; 
    50055005  int status; 
    50065006  int ndims; 
    5007   int64_t nelems; 
     5007  MPI_Offset nelems; 
    50085008 
    50095009  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    50345034 
    50355035int 
    5036 ncmpi_get_var_text_all(int ncid, int64_t varid, char *ip) { 
     5036ncmpi_get_var_text_all(int ncid, int varid, char *ip) { 
    50375037  NC_var *varp; 
    50385038  NC *ncp; 
    50395039  int status; 
    50405040  int ndims; 
    5041   int64_t nelems; 
     5041  MPI_Offset nelems; 
    50425042 
    50435043  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    50685068 
    50695069int 
    5070 ncmpi_get_var_short_all(int ncid, int64_t varid, short *ip) { 
     5070ncmpi_get_var_short_all(int ncid, int varid, short *ip) { 
    50715071  NC_var *varp; 
    50725072  NC *ncp; 
    50735073  int status; 
    50745074  int ndims; 
    5075   int64_t nelems; 
     5075  MPI_Offset nelems; 
    50765076  
    50775077  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    51025102 
    51035103int 
    5104 ncmpi_get_var_int_all(int ncid, int64_t varid, int *ip) { 
     5104ncmpi_get_var_int_all(int ncid, int varid, int *ip) { 
    51055105  NC_var *varp; 
    51065106  NC *ncp; 
    51075107  int status; 
    51085108  int ndims; 
    5109   int64_t nelems; 
     5109  MPI_Offset nelems; 
    51105110  
    51115111  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    51365136 
    51375137int 
    5138 ncmpi_get_var_long_all(int ncid, int64_t varid, long *ip) { 
     5138ncmpi_get_var_long_all(int ncid, int varid, long *ip) { 
    51395139  NC_var *varp; 
    51405140  NC *ncp; 
    51415141  int status; 
    51425142  int ndims; 
    5143   int64_t nelems; 
     5143  MPI_Offset nelems; 
    51445144 
    51455145  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    51705170 
    51715171int 
    5172 ncmpi_get_var_float_all(int ncid, int64_t varid, float *ip) { 
     5172ncmpi_get_var_float_all(int ncid, int varid, float *ip) { 
    51735173  NC_var *varp; 
    51745174  NC *ncp; 
    51755175  int status; 
    51765176  int ndims; 
    5177   int64_t nelems; 
     5177  MPI_Offset nelems; 
    51785178  
    51795179  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    52045204 
    52055205int 
    5206 ncmpi_get_var_double_all(int ncid, int64_t varid, double *ip) { 
     5206ncmpi_get_var_double_all(int ncid, int varid, double *ip) { 
    52075207  NC_var *varp; 
    52085208  NC *ncp; 
    52095209  int status; 
    52105210  int ndims; 
    5211   int64_t nelems; 
     5211  MPI_Offset nelems; 
    52125212  
    52135213  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    52385238 
    52395239int 
    5240 ncmpi_put_vara_uchar_all(int ncid, int64_t varid, 
    5241                          const int64_t start[], const int64_t count[], 
     5240ncmpi_put_vara_uchar_all(int ncid, int varid, 
     5241                         const MPI_Offset start[], const MPI_Offset count[], 
    52425242                         const unsigned char *op) { 
    52435243  NC_var *varp; 
    52445244  NC *ncp; 
    52455245  int status; 
    5246   int64_t dim; 
    5247   int64_t nelems; 
     5246  int dim; 
     5247  MPI_Offset nelems; 
    52485248 
    52495249  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    52645264 
    52655265int 
    5266 ncmpi_put_vara_uchar(int ncid, int64_t varid, 
    5267                      const int64_t start[], const int64_t count[], 
     5266ncmpi_put_vara_uchar(int ncid, int varid, 
     5267                     const MPI_Offset start[], const MPI_Offset count[], 
    52685268                     const unsigned char *op) { 
    52695269  NC_var *varp; 
    52705270  NC *ncp; 
    52715271  int status; 
    5272   int64_t dim; 
    5273   int64_t nelems; 
     5272  int dim; 
     5273  MPI_Offset nelems; 
    52745274 
    52755275  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    52905290 
    52915291int 
    5292 ncmpi_put_vara_schar_all(int ncid, int64_t varid, 
    5293                          const int64_t start[], const int64_t count[], 
     5292ncmpi_put_vara_schar_all(int ncid, int varid, 
     5293                         const MPI_Offset start[], const MPI_Offset count[], 
    52945294                         const signed char *op) { 
    52955295  NC_var *varp; 
    52965296  NC *ncp; 
    52975297  int status; 
    5298   int64_t dim; 
    5299   int64_t nelems; 
     5298  int dim; 
     5299  MPI_Offset nelems; 
    53005300 
    53015301  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    53165316 
    53175317int 
    5318 ncmpi_put_vara_schar(int ncid, int64_t varid, 
    5319                      const int64_t start[], const int64_t count[], 
     5318ncmpi_put_vara_schar(int ncid, int varid, 
     5319                     const MPI_Offset start[], const MPI_Offset count[], 
    53205320                     const signed char *op) { 
    53215321  NC_var *varp; 
    53225322  NC *ncp; 
    53235323  int status; 
    5324   int64_t dim; 
    5325   int64_t nelems; 
     5324  int dim; 
     5325  MPI_Offset nelems; 
    53265326 
    53275327  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    53425342 
    53435343int 
    5344 ncmpi_put_vara_text_all(int ncid, int64_t varid, 
    5345                          const int64_t start[], const int64_t count[], 
     5344ncmpi_put_vara_text_all(int ncid, int varid, 
     5345                         const MPI_Offset start[], const MPI_Offset count[], 
    53465346                         const char *op) { 
    53475347  NC_var *varp; 
    53485348  NC *ncp; 
    53495349  int status; 
    5350   int64_t dim; 
    5351   int64_t nelems; 
     5350  int dim; 
     5351  MPI_Offset nelems; 
    53525352 
    53535353  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    53685368 
    53695369int 
    5370 ncmpi_put_vara_text(int ncid, int64_t varid, 
    5371                      const int64_t start[], const int64_t count[], 
     5370ncmpi_put_vara_text(int ncid, int varid, 
     5371                     const MPI_Offset start[], const MPI_Offset count[], 
    53725372                     const char *op) { 
    53735373  NC_var *varp; 
    53745374  NC *ncp; 
    53755375  int status; 
    5376   int64_t dim; 
    5377   int64_t nelems; 
     5376  int dim; 
     5377  MPI_Offset nelems; 
    53785378 
    53795379  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    53945394 
    53955395int 
    5396 ncmpi_put_vara_short_all(int ncid, int64_t varid, 
    5397                          const int64_t start[], const int64_t count[], 
     5396ncmpi_put_vara_short_all(int ncid, int varid, 
     5397                         const MPI_Offset start[], const MPI_Offset count[], 
    53985398                         const short *op) { 
    53995399  NC_var *varp; 
    54005400  NC *ncp; 
    54015401  int status; 
    5402   int64_t dim; 
    5403   int64_t nelems; 
     5402  int dim; 
     5403  MPI_Offset nelems; 
    54045404  
    54055405  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    54205420 
    54215421int 
    5422 ncmpi_put_vara_short(int ncid, int64_t varid, 
    5423                      const int64_t start[], const int64_t count[], 
     5422ncmpi_put_vara_short(int ncid, int varid, 
     5423                     const MPI_Offset start[], const MPI_Offset count[], 
    54245424                     const short *op) { 
    54255425  NC_var *varp; 
    54265426  NC *ncp; 
    54275427  int status; 
    5428   int64_t dim; 
    5429   int64_t nelems; 
     5428  int dim; 
     5429  MPI_Offset nelems; 
    54305430  
    54315431  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    54465446 
    54475447int 
    5448 ncmpi_put_vara_int_all(int ncid, int64_t varid,  
    5449                        const int64_t start[], const int64_t count[],  
     5448ncmpi_put_vara_int_all(int ncid, int varid,  
     5449                       const MPI_Offset start[], const MPI_Offset count[],  
    54505450                       const int *op) { 
    54515451  NC_var *varp; 
    54525452  NC *ncp; 
    54535453  int status; 
    5454   int64_t dim; 
    5455   int64_t nelems; 
     5454  int dim; 
     5455  MPI_Offset nelems; 
    54565456 
    54575457  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    54725472 
    54735473int 
    5474 ncmpi_put_vara_int(int ncid, int64_t varid,  
    5475                 const int64_t start[], const int64_t count[],  
     5474ncmpi_put_vara_int(int ncid, int varid,  
     5475                const MPI_Offset start[], const MPI_Offset count[],  
    54765476                const int *op) { 
    54775477  NC_var *varp; 
    54785478  NC *ncp; 
    54795479  int status; 
    5480   int64_t dim; 
    5481   int64_t nelems; 
     5480  int dim; 
     5481  MPI_Offset nelems; 
    54825482  
    54835483  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    54985498 
    54995499int 
    5500 ncmpi_put_vara_long_all(int ncid, int64_t varid, 
    5501                        const int64_t start[], const int64_t count[], 
     5500ncmpi_put_vara_long_all(int ncid, int varid, 
     5501                       const MPI_Offset start[], const MPI_Offset count[], 
    55025502                       const long *op) { 
    55035503  NC_var *varp; 
    55045504  NC *ncp; 
    55055505  int status; 
    5506   int64_t dim; 
    5507   int64_t nelems; 
     5506  int dim; 
     5507  MPI_Offset nelems; 
    55085508 
    55095509  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    55245524 
    55255525int 
    5526 ncmpi_put_vara_long(int ncid, int64_t varid, 
    5527                 const int64_t start[], const int64_t count[], 
     5526ncmpi_put_vara_long(int ncid, int varid, 
     5527                const MPI_Offset start[], const MPI_Offset count[], 
    55285528                const long *op) { 
    55295529  NC_var *varp; 
    55305530  NC *ncp; 
    55315531  int status; 
    5532   int64_t dim; 
    5533   int64_t nelems; 
     5532  int dim; 
     5533  MPI_Offset nelems; 
    55345534 
    55355535  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    55505550 
    55515551int 
    5552 ncmpi_put_vara_float_all(int ncid, int64_t varid, 
    5553                     const int64_t start[], const int64_t count[], 
     5552ncmpi_put_vara_float_all(int ncid, int varid, 
     5553                    const MPI_Offset start[], const MPI_Offset count[], 
    55545554                    const float *op) { 
    55555555  NC_var *varp; 
    55565556  NC *ncp; 
    55575557  int status; 
    5558   int64_t dim; 
    5559   int64_t nelems; 
     5558  int dim; 
     5559  MPI_Offset nelems; 
    55605560 
    55615561  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    55765576 
    55775577int 
    5578 ncmpi_put_vara_float(int ncid, int64_t varid, 
    5579                 const int64_t start[], const int64_t count[], 
     5578ncmpi_put_vara_float(int ncid, int varid, 
     5579                const MPI_Offset start[], const MPI_Offset count[], 
    55805580                const float *op) { 
    55815581  NC_var *varp; 
    55825582  NC *ncp; 
    55835583  int status; 
    5584   int64_t dim; 
    5585   int64_t nelems; 
     5584  int dim; 
     5585  MPI_Offset nelems; 
    55865586  
    55875587  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    56025602 
    56035603int 
    5604 ncmpi_put_vara_double_all(int ncid, int64_t varid, 
    5605                     const int64_t start[], const int64_t count[], 
     5604ncmpi_put_vara_double_all(int ncid, int varid, 
     5605                    const MPI_Offset start[], const MPI_Offset count[], 
    56065606                    const double *op) { 
    56075607  NC_var *varp; 
    56085608  NC *ncp; 
    56095609  int status; 
    5610   int64_t dim; 
    5611   int64_t nelems; 
     5610  int dim; 
     5611  MPI_Offset nelems; 
    56125612 
    56135613  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    56285628 
    56295629int 
    5630 ncmpi_put_vara_double(int ncid, int64_t varid, 
    5631                 const int64_t start[], const int64_t count[], 
     5630ncmpi_put_vara_double(int ncid, int varid, 
     5631                const MPI_Offset start[], const MPI_Offset count[], 
    56325632                const double *op) { 
    56335633  NC_var *varp; 
    56345634  NC *ncp; 
    56355635  int status; 
    5636   int64_t dim; 
    5637   int64_t nelems; 
     5636  int dim; 
     5637  MPI_Offset nelems; 
    56385638  
    56395639  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    56545654 
    56555655int 
    5656 ncmpi_get_vara_uchar_all(int ncid, int64_t varid, 
    5657                     const int64_t start[], const int64_t count[], 
     5656ncmpi_get_vara_uchar_all(int ncid, int varid, 
     5657                    const MPI_Offset start[], const MPI_Offset count[], 
    56585658                    unsigned char *ip) { 
    56595659 
     
    56615661  NC *ncp; 
    56625662  int status; 
    5663   int64_t dim; 
    5664   int64_t nelems; 
     5663  int dim; 
     5664  MPI_Offset nelems; 
    56655665 
    56665666  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    56815681 
    56825682int 
    5683 ncmpi_get_vara_uchar(int ncid, int64_t varid, 
    5684                     const int64_t start[], const int64_t count[], 
     5683ncmpi_get_vara_uchar(int ncid, int varid, 
     5684                    const MPI_Offset start[], const MPI_Offset count[], 
    56855685                    unsigned char *ip) { 
    56865686 
     
    56885688  NC *ncp; 
    56895689  int status; 
    5690   int64_t dim; 
    5691   int64_t nelems; 
     5690  int dim; 
     5691  MPI_Offset nelems; 
    56925692 
    56935693  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    57085708 
    57095709int 
    5710 ncmpi_get_vara_schar_all(int ncid, int64_t varid, 
    5711                     const int64_t start[], const int64_t count[], 
     5710ncmpi_get_vara_schar_all(int ncid, int varid, 
     5711                    const MPI_Offset start[], const MPI_Offset count[], 
    57125712                    signed char *ip) { 
    57135713 
     
    57155715  NC *ncp; 
    57165716  int status; 
    5717   int64_t dim; 
    5718   int64_t nelems; 
     5717  int dim; 
     5718  MPI_Offset nelems; 
    57195719 
    57205720  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    57345734 
    57355735int 
    5736 ncmpi_get_vara_schar(int ncid, int64_t varid, 
    5737                     const int64_t start[], const int64_t count[], 
     5736ncmpi_get_vara_schar(int ncid, int varid, 
     5737                    const MPI_Offset start[], const MPI_Offset count[], 
    57385738                    signed char *ip) { 
    57395739 
     
    57415741  NC *ncp; 
    57425742  int status; 
    5743   int64_t dim; 
    5744   int64_t nelems; 
     5743  int dim; 
     5744  MPI_Offset nelems; 
    57455745 
    57465746  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    57615761 
    57625762int 
    5763 ncmpi_get_vara_text_all(int ncid, int64_t varid, 
    5764                     const int64_t start[], const int64_t count[], 
     5763ncmpi_get_vara_text_all(int ncid, int varid, 
     5764                    const MPI_Offset start[], const MPI_Offset count[], 
    57655765                    char *ip) { 
    57665766 
     
    57685768  NC *ncp; 
    57695769  int status; 
    5770   int64_t dim; 
    5771   int64_t nelems; 
     5770  int dim; 
     5771  MPI_Offset nelems; 
    57725772 
    57735773  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    57885788 
    57895789int 
    5790 ncmpi_get_vara_text(int ncid, int64_t varid, 
    5791                     const int64_t start[], const int64_t count[], 
     5790ncmpi_get_vara_text(int ncid, int varid, 
     5791                    const MPI_Offset start[], const MPI_Offset count[], 
    57925792                    char *ip) { 
    57935793 
     
    57955795  NC *ncp; 
    57965796  int status; 
    5797   int64_t dim; 
    5798   int64_t nelems; 
     5797  int dim; 
     5798  MPI_Offset nelems; 
    57995799 
    58005800  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    58155815 
    58165816int 
    5817 ncmpi_get_vara_short_all(int ncid, int64_t varid, 
    5818                     const int64_t start[], const int64_t count[], 
     5817ncmpi_get_vara_short_all(int ncid, int varid, 
     5818                    const MPI_Offset start[], const MPI_Offset count[], 
    58195819                    short *ip) { 
    58205820  
     
    58225822  NC *ncp; 
    58235823  int status; 
    5824   int64_t dim; 
    5825   int64_t nelems; 
     5824  int dim; 
     5825  MPI_Offset nelems; 
    58265826  
    58275827  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    58425842 
    58435843int 
    5844 ncmpi_get_vara_short(int ncid, int64_t varid, 
    5845                     const int64_t start[], const int64_t count[], 
     5844ncmpi_get_vara_short(int ncid, int varid, 
     5845                    const MPI_Offset start[], const MPI_Offset count[], 
    58465846                    short *ip) { 
    58475847  
     
    58495849  NC *ncp; 
    58505850  int status; 
    5851   int64_t dim; 
    5852   int64_t nelems; 
     5851  int dim; 
     5852  MPI_Offset nelems; 
    58535853  
    58545854  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    58695869 
    58705870int 
    5871 ncmpi_get_vara_int_all(int ncid, int64_t varid, 
    5872                     const int64_t start[], const int64_t count[], 
     5871ncmpi_get_vara_int_all(int ncid, int varid, 
     5872                    const MPI_Offset start[], const MPI_Offset count[], 
    58735873                    int *ip) { 
    58745874 
     
    58765876  NC *ncp; 
    58775877  int status; 
    5878   int64_t dim; 
    5879   int64_t nelems; 
     5878  int dim; 
     5879  MPI_Offset nelems; 
    58805880 
    58815881  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    58965896 
    58975897int 
    5898 ncmpi_get_vara_int(int ncid, int64_t varid, 
    5899                 const int64_t start[], const int64_t count[], 
     5898ncmpi_get_vara_int(int ncid, int varid, 
     5899                const MPI_Offset start[], const MPI_Offset count[], 
    59005900                int *ip) { 
    59015901  NC_var *varp; 
    59025902  NC *ncp; 
    59035903  int status; 
    5904   int64_t dim; 
    5905   int64_t nelems; 
     5904  int dim; 
     5905  MPI_Offset nelems; 
    59065906  
    59075907  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    59225922 
    59235923int 
    5924 ncmpi_get_vara_long_all(int ncid, int64_t varid, 
    5925                     const int64_t start[], const int64_t count[], 
     5924ncmpi_get_vara_long_all(int ncid, int varid, 
     5925                    const MPI_Offset start[], const MPI_Offset count[], 
    59265926                    long *ip) { 
    59275927 
     
    59295929  NC *ncp; 
    59305930  int status; 
    5931   int64_t dim; 
    5932   int64_t nelems; 
     5931  int dim; 
     5932  MPI_Offset nelems; 
    59335933 
    59345934  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    59495949 
    59505950int 
    5951 ncmpi_get_vara_long(int ncid, int64_t varid, 
    5952                 const int64_t start[], const int64_t count[], 
     5951ncmpi_get_vara_long(int ncid, int varid, 
     5952                const MPI_Offset start[], const MPI_Offset count[], 
    59535953                long *ip) { 
    59545954  NC_var *varp; 
    59555955  NC *ncp; 
    59565956  int status; 
    5957   int64_t dim; 
    5958   int64_t nelems; 
     5957  int dim; 
     5958  MPI_Offset nelems; 
    59595959 
    59605960  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    59755975 
    59765976int 
    5977 ncmpi_get_vara_float_all(int ncid, int64_t varid, 
    5978                     const int64_t start[], const int64_t count[], 
     5977ncmpi_get_vara_float_all(int ncid, int varid, 
     5978                    const MPI_Offset start[], const MPI_Offset count[], 
    59795979                    float *ip) { 
    59805980 
     
    59825982  NC *ncp; 
    59835983  int status; 
    5984   int64_t dim; 
    5985   int64_t nelems; 
     5984  int dim; 
     5985  MPI_Offset nelems; 
    59865986 
    59875987  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    60026002 
    60036003int 
    6004 ncmpi_get_vara_float(int ncid, int64_t varid, 
    6005                 const int64_t start[], const int64_t count[], 
     6004ncmpi_get_vara_float(int ncid, int varid, 
     6005                const MPI_Offset start[], const MPI_Offset count[], 
    60066006                float *ip) { 
    60076007  NC_var *varp; 
    60086008  NC *ncp; 
    60096009  int status; 
    6010   int64_t dim; 
    6011   int64_t nelems; 
     6010  int dim; 
     6011  MPI_Offset nelems; 
    60126012  
    60136013  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    60286028 
    60296029int 
    6030 ncmpi_get_vara_double_all(int ncid, int64_t varid, 
    6031                     const int64_t start[], const int64_t count[], 
     6030ncmpi_get_vara_double_all(int ncid, int varid, 
     6031                    const MPI_Offset start[], const MPI_Offset count[], 
    60326032                    double *ip) { 
    60336033 
     
    60356035  NC *ncp; 
    60366036  int status; 
    6037   int64_t dim; 
    6038   int64_t nelems; 
     6037  int dim; 
     6038  MPI_Offset nelems; 
    60396039 
    60406040  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    60556055 
    60566056int 
    6057 ncmpi_get_vara_double(int ncid, int64_t varid, 
    6058                 const int64_t start[], const int64_t count[], 
     6057ncmpi_get_vara_double(int ncid, int varid, 
     6058                const MPI_Offset start[], const MPI_Offset count[], 
    60596059                double *ip) { 
    60606060  NC_var *varp; 
    60616061  NC *ncp; 
    60626062  int status; 
    6063   int64_t dim; 
    6064   int64_t nelems; 
     6063  int dim; 
     6064  MPI_Offset nelems; 
    60656065  
    60666066  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    60816081 
    60826082int 
    6083 ncmpi_put_vars_uchar_all(int ncid, int64_t varid, 
    6084                          const int64_t start[], 
    6085                          const int64_t count[], 
    6086                          const int64_t stride[], 
     6083ncmpi_put_vars_uchar_all(int ncid, int varid, 
     6084                         const MPI_Offset start[], 
     6085                         const MPI_Offset count[], 
     6086                         const MPI_Offset stride[], 
    60876087                         const unsigned char *op) { 
    60886088  NC_var *varp; 
    60896089  NC *ncp; 
    60906090  int status; 
    6091   int64_t dim; 
    6092   int64_t nelems; 
     6091  int dim; 
     6092  MPI_Offset nelems; 
    60936093 
    60946094  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    61096109 
    61106110int 
    6111 ncmpi_put_vars_uchar(int ncid, int64_t varid, 
    6112                      const int64_t start[], 
    6113                      const int64_t count[], 
    6114                      const int64_t stride[], 
     6111ncmpi_put_vars_uchar(int ncid, int varid, 
     6112                     const MPI_Offset start[], 
     6113                     const MPI_Offset count[], 
     6114                     const MPI_Offset stride[], 
    61156115                     const unsigned char *op) { 
    61166116  NC_var *varp; 
    61176117  NC *ncp; 
    61186118  int status; 
    6119   int64_t dim; 
    6120   int64_t nelems; 
     6119  int dim; 
     6120  MPI_Offset nelems; 
    61216121 
    61226122  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    61376137 
    61386138int 
    6139 ncmpi_put_vars_schar_all(int ncid, int64_t varid, 
    6140                          const int64_t start[], 
    6141                          const int64_t count[], 
    6142                          const int64_t stride[], 
     6139ncmpi_put_vars_schar_all(int ncid, int varid, 
     6140                         const MPI_Offset start[], 
     6141                         const MPI_Offset count[], 
     6142                         const MPI_Offset stride[], 
    61436143                         const signed char *op) { 
    61446144  NC_var *varp; 
    61456145  NC *ncp; 
    61466146  int status; 
    6147   int64_t dim; 
    6148   int64_t nelems; 
     6147  int dim; 
     6148  MPI_Offset nelems; 
    61496149 
    61506150  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    61656165 
    61666166int 
    6167 ncmpi_put_vars_schar(int ncid, int64_t varid, 
    6168                      const int64_t start[], 
    6169                      const int64_t count[], 
    6170                      const int64_t stride[], 
     6167ncmpi_put_vars_schar(int ncid, int varid, 
     6168                     const MPI_Offset start[], 
     6169                     const MPI_Offset count[], 
     6170                     const MPI_Offset stride[], 
    61716171                     const signed char *op) { 
    61726172  NC_var *varp; 
    61736173  NC *ncp; 
    61746174  int status; 
    6175   int64_t dim; 
    6176   int64_t nelems; 
     6175  int dim; 
     6176  MPI_Offset nelems; 
    61776177 
    61786178  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    61936193 
    61946194int 
    6195 ncmpi_put_vars_text_all(int ncid, int64_t varid, 
    6196                          const int64_t start[], 
    6197                          const int64_t count[], 
    6198                          const int64_t stride[], 
     6195ncmpi_put_vars_text_all(int ncid, int varid, 
     6196                         const MPI_Offset start[], 
     6197                         const MPI_Offset count[], 
     6198                         const MPI_Offset stride[], 
    61996199                         const char *op) { 
    62006200  NC_var *varp; 
    62016201  NC *ncp; 
    62026202  int status; 
    6203   int64_t dim; 
    6204   int64_t nelems; 
     6203  int dim; 
     6204  MPI_Offset nelems; 
    62056205 
    62066206  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    62216221 
    62226222int 
    6223 ncmpi_put_vars_text(int ncid, int64_t varid, 
    6224                      const int64_t start[], 
    6225                      const int64_t count[], 
    6226                      const int64_t stride[], 
     6223ncmpi_put_vars_text(int ncid, int varid, 
     6224                     const MPI_Offset start[], 
     6225                     const MPI_Offset count[], 
     6226                     const MPI_Offset stride[], 
    62276227                     const char *op) { 
    62286228  NC_var *varp; 
    62296229  NC *ncp; 
    62306230  int status; 
    6231   int64_t dim; 
    6232   int64_t nelems; 
     6231  int dim; 
     6232  MPI_Offset nelems; 
    62336233 
    62346234  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    62496249 
    62506250int 
    6251 ncmpi_put_vars_short_all(int ncid, int64_t varid, 
    6252                          const int64_t start[], 
    6253                          const int64_t count[], 
    6254                          const int64_t stride[], 
     6251ncmpi_put_vars_short_all(int ncid, int varid, 
     6252                         const MPI_Offset start[], 
     6253                         const MPI_Offset count[], 
     6254                         const MPI_Offset stride[], 
    62556255                         const short *op) { 
    62566256  NC_var *varp; 
    62576257  NC *ncp; 
    62586258  int status; 
    6259   int64_t dim; 
    6260   int64_t nelems; 
     6259  int dim; 
     6260  MPI_Offset nelems; 
    62616261 
    62626262  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    62776277 
    62786278int 
    6279 ncmpi_put_vars_short(int ncid, int64_t varid, 
    6280                      const int64_t start[], 
    6281                      const int64_t count[], 
    6282                      const int64_t stride[], 
     6279ncmpi_put_vars_short(int ncid, int varid, 
     6280                     const MPI_Offset start[], 
     6281                     const MPI_Offset count[], 
     6282                     const MPI_Offset stride[], 
    62836283                     const short *op) { 
    62846284  NC_var *varp; 
    62856285  NC *ncp; 
    62866286  int status; 
    6287   int64_t dim; 
    6288   int64_t nelems; 
     6287  int dim; 
     6288  MPI_Offset nelems; 
    62896289 
    62906290  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    63056305 
    63066306int 
    6307 ncmpi_put_vars_int_all(int ncid, int64_t varid, 
    6308                        const int64_t start[], 
    6309                        const int64_t count[], 
    6310                        const int64_t stride[], 
     6307ncmpi_put_vars_int_all(int ncid, int varid, 
     6308                       const MPI_Offset start[], 
     6309                       const MPI_Offset count[], 
     6310                       const MPI_Offset stride[], 
    63116311                       const int *op) { 
    63126312  NC_var *varp; 
    63136313  NC *ncp; 
    63146314  int status; 
    6315   int64_t dim; 
    6316   int64_t nelems; 
     6315  int dim; 
     6316  MPI_Offset nelems; 
    63176317 
    63186318  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    63336333 
    63346334int 
    6335 ncmpi_put_vars_int(int ncid, int64_t varid, 
    6336                    const int64_t start[], 
    6337                    const int64_t count[], 
    6338                    const int64_t stride[], 
     6335ncmpi_put_vars_int(int ncid, int varid, 
     6336                   const MPI_Offset start[], 
     6337                   const MPI_Offset count[], 
     6338                   const MPI_Offset stride[], 
    63396339                   const int *op) { 
    63406340  NC_var *varp; 
    63416341  NC *ncp; 
    63426342  int status; 
    6343   int64_t dim; 
    6344   int64_t nelems; 
     6343  int dim; 
     6344  MPI_Offset nelems; 
    63456345 
    63466346  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    63616361 
    63626362int 
    6363 ncmpi_put_vars_long_all(int ncid, int64_t varid, 
    6364                        const int64_t start[], 
    6365                        const int64_t count[], 
    6366                        const int64_t stride[], 
     6363ncmpi_put_vars_long_all(int ncid, int varid, 
     6364                       const MPI_Offset start[], 
     6365                       const MPI_Offset count[], 
     6366                       const MPI_Offset stride[], 
    63676367                       const long *op) { 
    63686368  NC_var *varp; 
    63696369  NC *ncp; 
    63706370  int status; 
    6371   int64_t dim; 
    6372   int64_t nelems; 
     6371  int dim; 
     6372  MPI_Offset nelems; 
    63736373 
    63746374  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    63896389 
    63906390int 
    6391 ncmpi_put_vars_long(int ncid, int64_t varid, 
    6392                    const int64_t start[], 
    6393                    const int64_t count[], 
    6394                    const int64_t stride[], 
     6391ncmpi_put_vars_long(int ncid, int varid, 
     6392                   const MPI_Offset start[], 
     6393                   const MPI_Offset count[], 
     6394                   const MPI_Offset stride[], 
    63956395                   const long *op) { 
    63966396  NC_var *varp; 
    63976397  NC *ncp; 
    63986398  int status; 
    6399   int64_t dim; 
    6400   int64_t nelems; 
     6399  int dim; 
     6400  MPI_Offset nelems; 
    64016401 
    64026402  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    64176417 
    64186418int 
    6419 ncmpi_put_vars_float_all(int ncid, int64_t varid, 
    6420                          const int64_t start[], 
    6421                          const int64_t count[], 
    6422                          const int64_t stride[], 
     6419ncmpi_put_vars_float_all(int ncid, int varid, 
     6420                         const MPI_Offset start[], 
     6421                         const MPI_Offset count[], 
     6422                         const MPI_Offset stride[], 
    64236423                         const float *op) { 
    64246424  NC_var *varp; 
    64256425  NC *ncp; 
    64266426  int status; 
    6427   int64_t dim; 
    6428   int64_t nelems; 
     6427  int dim; 
     6428  MPI_Offset nelems; 
    64296429 
    64306430  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    64456445 
    64466446int 
    6447 ncmpi_put_vars_float(int ncid, int64_t varid, 
    6448                      const int64_t start[], 
    6449                      const int64_t count[], 
    6450                      const int64_t stride[], 
     6447ncmpi_put_vars_float(int ncid, int varid, 
     6448                     const MPI_Offset start[], 
     6449                     const MPI_Offset count[], 
     6450                     const MPI_Offset stride[], 
    64516451                     const float *op) { 
    64526452  NC_var *varp; 
    64536453  NC *ncp; 
    64546454  int status; 
    6455   int64_t dim; 
    6456   int64_t nelems; 
     6455  int dim; 
     6456  MPI_Offset nelems; 
    64576457 
    64586458  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    64736473 
    64746474int 
    6475 ncmpi_put_vars_double_all(int ncid, int64_t varid, 
    6476                           const int64_t start[],  
    6477                           const int64_t count[], 
    6478                           const int64_t stride[], 
     6475ncmpi_put_vars_double_all(int ncid, int varid, 
     6476                          const MPI_Offset start[],  
     6477                          const MPI_Offset count[], 
     6478                          const MPI_Offset stride[], 
    64796479                          const double *op) { 
    64806480 
     
    64826482  NC *ncp; 
    64836483  int status; 
    6484   int64_t dim; 
    6485   int64_t nelems; 
     6484  int dim; 
     6485  MPI_Offset nelems; 
    64866486 
    64876487  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    65036503 
    65046504int 
    6505 ncmpi_put_vars_double(int ncid, int64_t varid, 
    6506                       const int64_t start[], 
    6507                       const int64_t count[], 
    6508                       const int64_t stride[], 
     6505ncmpi_put_vars_double(int ncid, int varid, 
     6506                      const MPI_Offset start[], 
     6507                      const MPI_Offset count[], 
     6508                      const MPI_Offset stride[], 
    65096509                      const double *op) { 
    65106510 
     
    65126512  NC *ncp; 
    65136513  int status; 
    6514   int64_t dim; 
    6515   int64_t nelems; 
     6514  int dim; 
     6515  MPI_Offset nelems; 
    65166516 
    65176517  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    65336533 
    65346534int 
    6535 ncmpi_get_vars_uchar_all(int ncid, int64_t varid, 
    6536                          const int64_t start[], 
    6537                          const int64_t count[], 
    6538                          const int64_t stride[], 
     6535ncmpi_get_vars_uchar_all(int ncid, int varid, 
     6536                         const MPI_Offset start[], 
     6537                         const MPI_Offset count[], 
     6538                         const MPI_Offset stride[], 
    65396539                         unsigned char *ip) { 
    65406540  NC_var *varp; 
    65416541  NC *ncp; 
    65426542  int status; 
    6543   int64_t dim; 
    6544   int64_t nelems; 
     6543  int dim; 
     6544  MPI_Offset nelems; 
    65456545 
    65466546  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    65616561 
    65626562int 
    6563 ncmpi_get_vars_uchar(int ncid, int64_t varid, 
    6564                      const int64_t start[], 
    6565                      const int64_t count[], 
    6566                      const int64_t stride[], 
     6563ncmpi_get_vars_uchar(int ncid, int varid, 
     6564                     const MPI_Offset start[], 
     6565                     const MPI_Offset count[], 
     6566                     const MPI_Offset stride[], 
    65676567                     unsigned char *ip) { 
    65686568  NC_var *varp; 
    65696569  NC *ncp; 
    65706570  int status; 
    6571   int64_t dim; 
    6572   int64_t nelems; 
     6571  int dim; 
     6572  MPI_Offset nelems; 
    65736573 
    65746574  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    65896589 
    65906590int 
    6591 ncmpi_get_vars_schar_all(int ncid, int64_t varid, 
    6592                          const int64_t start[], 
    6593                          const int64_t count[], 
    6594                          const int64_t stride[], 
     6591ncmpi_get_vars_schar_all(int ncid, int varid, 
     6592                         const MPI_Offset start[], 
     6593                         const MPI_Offset count[], 
     6594                         const MPI_Offset stride[], 
    65956595                         signed char *ip) { 
    65966596  NC_var *varp; 
    65976597  NC *ncp; 
    65986598  int status; 
    6599   int64_t dim; 
    6600   int64_t nelems; 
     6599  int dim; 
     6600  MPI_Offset nelems; 
    66016601 
    66026602  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    66176617 
    66186618int 
    6619 ncmpi_get_vars_schar(int ncid, int64_t varid, 
    6620                      const int64_t start[], 
    6621                      const int64_t count[], 
    6622                      const int64_t stride[], 
     6619ncmpi_get_vars_schar(int ncid, int varid, 
     6620                     const MPI_Offset start[], 
     6621                     const MPI_Offset count[], 
     6622                     const MPI_Offset stride[], 
    66236623                     signed char *ip) { 
    66246624  NC_var *varp; 
    66256625  NC *ncp; 
    66266626  int status; 
    6627   int64_t dim; 
    6628   int64_t nelems; 
     6627  int dim; 
     6628  MPI_Offset nelems; 
    66296629 
    66306630  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    66456645 
    66466646int 
    6647 ncmpi_get_vars_text_all(int ncid, int64_t varid, 
    6648                          const int64_t start[], 
    6649                          const int64_t count[], 
    6650                          const int64_t stride[], 
     6647ncmpi_get_vars_text_all(int ncid, int varid, 
     6648                         const MPI_Offset start[], 
     6649                         const MPI_Offset count[], 
     6650                         const MPI_Offset stride[], 
    66516651                         char *ip) { 
    66526652  NC_var *varp; 
    66536653  NC *ncp; 
    66546654  int status; 
    6655   int64_t dim; 
    6656   int64_t nelems; 
     6655  int dim; 
     6656  MPI_Offset nelems; 
    66576657 
    66586658  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    66736673 
    66746674int 
    6675 ncmpi_get_vars_text(int ncid, int64_t varid, 
    6676                      const int64_t start[], 
    6677                      const int64_t count[], 
    6678                      const int64_t stride[], 
     6675ncmpi_get_vars_text(int ncid, int varid, 
     6676                     const MPI_Offset start[], 
     6677                     const MPI_Offset count[], 
     6678                     const MPI_Offset stride[], 
    66796679                     char *ip) { 
    66806680  NC_var *varp; 
    66816681  NC *ncp; 
    66826682  int status; 
    6683   int64_t dim; 
    6684   int64_t nelems; 
     6683  int dim; 
     6684  MPI_Offset nelems; 
    66856685 
    66866686  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    67016701 
    67026702int 
    6703 ncmpi_get_vars_short_all(int ncid, int64_t varid, 
    6704                          const int64_t start[], 
    6705                          const int64_t count[], 
    6706                          const int64_t stride[], 
     6703ncmpi_get_vars_short_all(int ncid, int varid, 
     6704                         const MPI_Offset start[], 
     6705                         const MPI_Offset count[], 
     6706                         const MPI_Offset stride[], 
    67076707                         short *ip) { 
    67086708  NC_var *varp; 
    67096709  NC *ncp; 
    67106710  int status; 
    6711   int64_t dim; 
    6712   int64_t nelems; 
     6711  int dim; 
     6712  MPI_Offset nelems; 
    67136713 
    67146714  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    67296729 
    67306730int 
    6731 ncmpi_get_vars_short(int ncid, int64_t varid, 
    6732                      const int64_t start[], 
    6733                      const int64_t count[], 
    6734                      const int64_t stride[], 
     6731ncmpi_get_vars_short(int ncid, int varid, 
     6732                     const MPI_Offset start[], 
     6733                     const MPI_Offset count[], 
     6734                     const MPI_Offset stride[], 
    67356735                     short *ip) { 
    67366736  NC_var *varp; 
    67376737  NC *ncp; 
    67386738  int status; 
    6739   int64_t dim; 
    6740   int64_t nelems; 
     6739  int dim; 
     6740  MPI_Offset nelems; 
    67416741 
    67426742  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    67576757 
    67586758int 
    6759 ncmpi_get_vars_int_all(int ncid, int64_t varid, 
    6760                        const int64_t start[], 
    6761                        const int64_t count[], 
    6762                        const int64_t stride[], 
     6759ncmpi_get_vars_int_all(int ncid, int varid, 
     6760                       const MPI_Offset start[], 
     6761                       const MPI_Offset count[], 
     6762                       const MPI_Offset stride[], 
    67636763                       int *ip) { 
    67646764  NC_var *varp; 
    67656765  NC *ncp; 
    67666766  int status; 
    6767   int64_t dim; 
    6768   int64_t nelems; 
     6767  int dim; 
     6768  MPI_Offset nelems; 
    67696769 
    67706770  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    67856785 
    67866786int 
    6787 ncmpi_get_vars_int(int ncid, int64_t varid, 
    6788                    const int64_t start[], 
    6789                    const int64_t count[], 
    6790                    const int64_t stride[], 
     6787ncmpi_get_vars_int(int ncid, int varid, 
     6788                   const MPI_Offset start[], 
     6789                   const MPI_Offset count[], 
     6790                   const MPI_Offset stride[], 
    67916791                   int *ip) { 
    67926792  NC_var *varp; 
    67936793  NC *ncp; 
    67946794  int status; 
    6795   int64_t dim; 
    6796   int64_t nelems; 
     6795  int dim; 
     6796  MPI_Offset nelems; 
    67976797 
    67986798  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    68136813 
    68146814int 
    6815 ncmpi_get_vars_long_all(int ncid, int64_t varid, 
    6816                        const int64_t start[], 
    6817                        const int64_t count[], 
    6818                        const int64_t stride[], 
     6815ncmpi_get_vars_long_all(int ncid, int varid, 
     6816                       const MPI_Offset start[], 
     6817                       const MPI_Offset count[], 
     6818                       const MPI_Offset stride[], 
    68196819                       long *ip) { 
    68206820  NC_var *varp; 
    68216821  NC *ncp; 
    68226822  int status; 
    6823   int64_t dim; 
    6824   int64_t nelems; 
     6823  int dim; 
     6824  MPI_Offset nelems; 
    68256825 
    68266826  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    68416841 
    68426842int 
    6843 ncmpi_get_vars_long(int ncid, int64_t varid, 
    6844                    const int64_t start[], 
    6845                    const int64_t count[], 
    6846                    const int64_t stride[], 
     6843ncmpi_get_vars_long(int ncid, int varid, 
     6844                   const MPI_Offset start[], 
     6845                   const MPI_Offset count[], 
     6846                   const MPI_Offset stride[], 
    68476847                   long *ip) { 
    68486848  NC_var *varp; 
    68496849  NC *ncp; 
    68506850  int status; 
    6851   int64_t dim; 
    6852   int64_t nelems; 
     6851  int dim; 
     6852  MPI_Offset nelems; 
    68536853 
    68546854  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    68696869 
    68706870int 
    6871 ncmpi_get_vars_float_all(int ncid, int64_t varid, 
    6872                          const int64_t start[], 
    6873                          const int64_t count[], 
    6874                          const int64_t stride[], 
     6871ncmpi_get_vars_float_all(int ncid, int varid, 
     6872                         const MPI_Offset start[], 
     6873                         const MPI_Offset count[], 
     6874                         const MPI_Offset stride[], 
    68756875                         float *ip) { 
    68766876  NC_var *varp; 
    68776877  NC *ncp; 
    68786878  int status; 
    6879   int64_t dim; 
    6880   int64_t nelems; 
     6879  int dim; 
     6880  MPI_Offset nelems; 
    68816881 
    68826882  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    68976897 
    68986898int 
    6899 ncmpi_get_vars_float(int ncid, int64_t varid, 
    6900                      const int64_t start[], 
    6901                      const int64_t count[], 
    6902                      const int64_t stride[], 
     6899ncmpi_get_vars_float(int ncid, int varid, 
     6900                     const MPI_Offset start[], 
     6901                     const MPI_Offset count[], 
     6902                     const MPI_Offset stride[], 
    69036903                     float *ip) { 
    69046904  NC_var *varp; 
    69056905  NC *ncp; 
    69066906  int status; 
    6907   int64_t dim; 
    6908   int64_t nelems; 
     6907  int dim; 
     6908  MPI_Offset nelems; 
    69096909 
    69106910  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    69256925 
    69266926int 
    6927 ncmpi_get_vars_double_all(int ncid, int64_t varid, 
    6928                           const int64_t start[],  
    6929                           const int64_t count[], 
    6930                           const int64_t stride[], 
     6927ncmpi_get_vars_double_all(int ncid, int varid, 
     6928                          const MPI_Offset start[],  
     6929                          const MPI_Offset count[], 
     6930                          const MPI_Offset stride[], 
    69316931                          double *ip) { 
    69326932 
     
    69346934  NC *ncp; 
    69356935  int status; 
    6936   int64_t dim; 
    6937   int64_t nelems; 
     6936  int dim; 
     6937  MPI_Offset nelems; 
    69386938 
    69396939  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    69546954 
    69556955int 
    6956 ncmpi_get_vars_double(int ncid, int64_t varid, 
    6957                       const int64_t start[], 
    6958                       const int64_t count[], 
    6959                       const int64_t stride[], 
     6956ncmpi_get_vars_double(int ncid, int varid, 
     6957                      const MPI_Offset start[], 
     6958                      const MPI_Offset count[], 
     6959                      const MPI_Offset stride[], 
    69606960                      double *ip) { 
    69616961 
     
    69636963  NC *ncp; 
    69646964  int status; 
    6965   int64_t dim; 
    6966   int64_t nelems; 
     6965  int dim; 
     6966  MPI_Offset nelems; 
    69676967 
    69686968  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    69836983 
    69846984int 
    6985 ncmpi_put_varm_uchar_all(int ncid, int64_t varid, 
    6986                          const int64_t start[], 
    6987                          const int64_t count[], 
    6988                          const int64_t stride[], 
    6989                          const int64_t imap[], 
     6985ncmpi_put_varm_uchar_all(int ncid, int varid, 
     6986                         const MPI_Offset start[], 
     6987                         const MPI_Offset count[], 
     6988                         const MPI_Offset stride[], 
     6989                         const MPI_Offset imap[], 
    69906990                         const unsigned char *op) 
    69916991{ 
     
    69936993  NC *ncp; 
    69946994  int status; 
    6995   int64_t dim; 
    6996   int64_t nelems; 
     6995  int dim; 
     6996  MPI_Offset nelems; 
    69976997 
    69986998  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    70137013 
    70147014int 
    7015 ncmpi_put_varm_uchar(int ncid, int64_t varid, 
    7016                      const int64_t start[], 
    7017                      const int64_t count[], 
    7018                      const int64_t stride[], 
    7019                      const int64_t imap[], 
     7015ncmpi_put_varm_uchar(int ncid, int varid, 
     7016                     const MPI_Offset start[], 
     7017                     const MPI_Offset count[], 
     7018                     const MPI_Offset stride[], 
     7019                     const MPI_Offset imap[], 
    70207020                     const unsigned char *op) 
    70217021{ 
     
    70237023  NC *ncp; 
    70247024  int status; 
    7025   int64_t dim; 
    7026   int64_t nelems; 
     7025  int dim; 
     7026  MPI_Offset nelems; 
    70277027 
    70287028  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    70437043 
    70447044int 
    7045 ncmpi_put_varm_schar_all(int ncid, int64_t varid, 
    7046                          const int64_t start[], 
    7047                          const int64_t count[], 
    7048                          const int64_t stride[], 
    7049                          const int64_t imap[], 
     7045ncmpi_put_varm_schar_all(int ncid, int varid, 
     7046                         const MPI_Offset start[], 
     7047                         const MPI_Offset count[], 
     7048                         const MPI_Offset stride[], 
     7049                         const MPI_Offset imap[], 
    70507050                         const signed char *op) 
    70517051{ 
     
    70537053  NC *ncp; 
    70547054  int status; 
    7055   int64_t dim; 
    7056   int64_t nelems; 
     7055  int dim; 
     7056  MPI_Offset nelems; 
    70577057 
    70587058  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    70737073 
    70747074int 
    7075 ncmpi_put_varm_schar(int ncid, int64_t varid, 
    7076                      const int64_t start[], 
    7077                      const int64_t count[], 
    7078                      const int64_t stride[], 
    7079                      const int64_t imap[], 
     7075ncmpi_put_varm_schar(int ncid, int varid, 
     7076                     const MPI_Offset start[], 
     7077                     const MPI_Offset count[], 
     7078                     const MPI_Offset stride[], 
     7079                     const MPI_Offset imap[], 
    70807080                     const signed char *op) 
    70817081{ 
     
    70837083  NC *ncp; 
    70847084  int status; 
    7085   int64_t dim; 
    7086   int64_t nelems; 
     7085  int dim; 
     7086  MPI_Offset nelems; 
    70877087 
    70887088  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    71037103 
    71047104int 
    7105 ncmpi_put_varm_text_all(int ncid, int64_t varid, 
    7106                         const int64_t start[], 
    7107                         const int64_t count[], 
    7108                         const int64_t stride[], 
    7109                         const int64_t imap[], 
     7105ncmpi_put_varm_text_all(int ncid, int varid, 
     7106                        const MPI_Offset start[], 
     7107                        const MPI_Offset count[], 
     7108                        const MPI_Offset stride[], 
     7109                        const MPI_Offset imap[], 
    71107110                        const char *op) 
    71117111{ 
     
    71137113  NC *ncp; 
    71147114  int status; 
    7115   int64_t dim; 
    7116   int64_t nelems; 
     7115  int dim; 
     7116  MPI_Offset nelems; 
    71177117 
    71187118  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    71337133 
    71347134int 
    7135 ncmpi_put_varm_text(int ncid, int64_t varid, 
    7136                     const int64_t start[], 
    7137                     const int64_t count[], 
    7138                     const int64_t stride[], 
    7139                     const int64_t imap[], 
     7135ncmpi_put_varm_text(int ncid, int varid, 
     7136                    const MPI_Offset start[], 
     7137                    const MPI_Offset count[], 
     7138                    const MPI_Offset stride[], 
     7139                    const MPI_Offset imap[], 
    71407140                    const char *op) 
    71417141{ 
     
    71437143  NC *ncp; 
    71447144  int status; 
    7145   int64_t dim; 
    7146   int64_t nelems; 
     7145  int dim; 
     7146  MPI_Offset nelems; 
    71477147 
    71487148  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    71637163 
    71647164int 
    7165 ncmpi_put_varm_short_all(int ncid, int64_t varid, 
    7166                          const int64_t start[], 
    7167                          const int64_t count[], 
    7168                          const int64_t stride[], 
    7169                          const int64_t imap[], 
     7165ncmpi_put_varm_short_all(int ncid, int varid, 
     7166                         const MPI_Offset start[], 
     7167                         const MPI_Offset count[], 
     7168                         const MPI_Offset stride[], 
     7169                         const MPI_Offset imap[], 
    71707170                         const short *op) 
    71717171{ 
     
    71737173  NC *ncp; 
    71747174  int status; 
    7175   int64_t dim; 
    7176   int64_t nelems; 
     7175  int dim; 
     7176  MPI_Offset nelems; 
    71777177 
    71787178  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    71937193 
    71947194int 
    7195 ncmpi_put_varm_short(int ncid, int64_t varid, 
    7196                      const int64_t start[], 
    7197                      const int64_t count[], 
    7198                      const int64_t stride[], 
    7199                      const int64_t imap[], 
     7195ncmpi_put_varm_short(int ncid, int varid, 
     7196                     const MPI_Offset start[], 
     7197                     const MPI_Offset count[], 
     7198                     const MPI_Offset stride[], 
     7199                     const MPI_Offset imap[], 
    72007200                     const short *op) 
    72017201{ 
     
    72037203  NC *ncp; 
    72047204  int status; 
    7205   int64_t dim; 
    7206   int64_t nelems; 
     7205  int dim; 
     7206  MPI_Offset nelems; 
    72077207 
    72087208  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    72237223 
    72247224int 
    7225 ncmpi_put_varm_int_all(int ncid, int64_t varid, 
    7226                        const int64_t start[], 
    7227                        const int64_t count[], 
    7228                        const int64_t stride[], 
    7229                        const int64_t imap[], 
     7225ncmpi_put_varm_int_all(int ncid, int varid, 
     7226                       const MPI_Offset start[], 
     7227                       const MPI_Offset count[], 
     7228                       const MPI_Offset stride[], 
     7229                       const MPI_Offset imap[], 
    72307230                       const int *op) 
    72317231{ 
     
    72337233  NC *ncp; 
    72347234  int status; 
    7235   int64_t dim; 
    7236   int64_t nelems; 
     7235  int dim; 
     7236  MPI_Offset nelems; 
    72377237 
    72387238  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    72537253 
    72547254int 
    7255 ncmpi_put_varm_int(int ncid, int64_t varid, 
    7256                    const int64_t start[], 
    7257                    const int64_t count[], 
    7258                    const int64_t stride[], 
    7259                    const int64_t imap[], 
     7255ncmpi_put_varm_int(int ncid, int varid, 
     7256                   const MPI_Offset start[], 
     7257                   const MPI_Offset count[], 
     7258                   const MPI_Offset stride[], 
     7259                   const MPI_Offset imap[], 
    72607260                   const int *op) 
    72617261{ 
     
    72637263  NC *ncp; 
    72647264  int status; 
    7265   int64_t dim; 
    7266   int64_t nelems; 
     7265  int dim; 
     7266  MPI_Offset nelems; 
    72677267 
    72687268  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    72837283 
    72847284int 
    7285 ncmpi_put_varm_long_all(int ncid, int64_t varid, 
    7286                         const int64_t start[], 
    7287                         const int64_t count[], 
    7288                         const int64_t stride[], 
    7289                         const int64_t imap[], 
     7285ncmpi_put_varm_long_all(int ncid, int varid, 
     7286                        const MPI_Offset start[], 
     7287                        const MPI_Offset count[], 
     7288                        const MPI_Offset stride[], 
     7289                        const MPI_Offset imap[], 
    72907290                        const long *op) 
    72917291{ 
     
    72937293  NC *ncp; 
    72947294  int status; 
    7295   int64_t dim; 
    7296   int64_t nelems; 
     7295  int dim; 
     7296  MPI_Offset nelems; 
    72977297 
    72987298  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    73137313 
    73147314int 
    7315 ncmpi_put_varm_long(int ncid, int64_t varid, 
    7316                     const int64_t start[], 
    7317                     const int64_t count[], 
    7318                     const int64_t stride[], 
    7319                     const int64_t imap[], 
     7315ncmpi_put_varm_long(int ncid, int varid, 
     7316                    const MPI_Offset start[], 
     7317                    const MPI_Offset count[], 
     7318                    const MPI_Offset stride[], 
     7319                    const MPI_Offset imap[], 
    73207320                    const long *op) 
    73217321{ 
     
    73237323  NC *ncp; 
    73247324  int status; 
    7325   int64_t dim; 
    7326   int64_t nelems; 
     7325  int dim; 
     7326  MPI_Offset nelems; 
    73277327 
    73287328  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    73437343 
    73447344int 
    7345 ncmpi_put_varm_float_all(int ncid, int64_t varid, 
    7346                          const int64_t start[], 
    7347                          const int64_t count[], 
    7348                          const int64_t stride[], 
    7349                          const int64_t imap[], 
     7345ncmpi_put_varm_float_all(int ncid, int varid, 
     7346                         const MPI_Offset start[], 
     7347                         const MPI_Offset count[], 
     7348                         const MPI_Offset stride[], 
     7349                         const MPI_Offset imap[], 
    73507350                         const float *op) 
    73517351{ 
     
    73537353  NC *ncp; 
    73547354  int status; 
    7355   int64_t dim; 
    7356   int64_t nelems; 
     7355  int dim; 
     7356  MPI_Offset nelems; 
    73577357 
    73587358  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    73737373 
    73747374int 
    7375 ncmpi_put_varm_float(int ncid, int64_t varid, 
    7376                      const int64_t start[], 
    7377                      const int64_t count[], 
    7378                      const int64_t stride[], 
    7379                      const int64_t imap[], 
     7375ncmpi_put_varm_float(int ncid, int varid, 
     7376                     const MPI_Offset start[], 
     7377                     const MPI_Offset count[], 
     7378                     const MPI_Offset stride[], 
     7379                     const MPI_Offset imap[], 
    73807380                     const float *op) 
    73817381{ 
     
    73837383  NC *ncp; 
    73847384  int status; 
    7385   int64_t dim; 
    7386   int64_t nelems; 
     7385  int dim; 
     7386  MPI_Offset nelems; 
    73877387 
    73887388  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    74037403 
    74047404int 
    7405 ncmpi_put_varm_double_all(int ncid, int64_t varid, 
    7406                           const int64_t start[], 
    7407                           const int64_t count[], 
    7408                           const int64_t stride[], 
    7409                           const int64_t imap[], 
     7405ncmpi_put_varm_double_all(int ncid, int varid, 
     7406                          const MPI_Offset start[], 
     7407                          const MPI_Offset count[], 
     7408                          const MPI_Offset stride[], 
     7409                          const MPI_Offset imap[], 
    74107410                          const double *op) 
    74117411{ 
     
    74137413  NC *ncp; 
    74147414  int status; 
    7415   int64_t dim; 
    7416   int64_t nelems; 
     7415  int dim; 
     7416  MPI_Offset nelems; 
    74177417 
    74187418  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    74337433 
    74347434int 
    7435 ncmpi_put_varm_double(int ncid, int64_t varid, 
    7436                       const int64_t start[], 
    7437                       const int64_t count[], 
    7438                       const int64_t stride[], 
    7439                       const int64_t imap[], 
     7435ncmpi_put_varm_double(int ncid, int varid, 
     7436                      const MPI_Offset start[], 
     7437                      const MPI_Offset count[], 
     7438                      const MPI_Offset stride[], 
     7439                      const MPI_Offset imap[], 
    74407440                      const double *op) 
    74417441{ 
     
    74437443  NC *ncp; 
    74447444  int status; 
    7445   int64_t dim; 
    7446   int64_t nelems; 
     7445  int dim; 
     7446  MPI_Offset nelems; 
    74477447 
    74487448  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    74637463 
    74647464int 
    7465 ncmpi_get_varm_uchar_all(int ncid, int64_t varid, 
    7466                          const int64_t start[], 
    7467                          const int64_t count[], 
    7468                          const int64_t stride[], 
    7469                          const int64_t imap[], 
     7465ncmpi_get_varm_uchar_all(int ncid, int varid, 
     7466                         const MPI_Offset start[], 
     7467                         const MPI_Offset count[], 
     7468                         const MPI_Offset stride[], 
     7469                         const MPI_Offset imap[], 
    74707470                         unsigned char *ip) 
    74717471{ 
     
    74737473  NC *ncp; 
    74747474  int status; 
    7475   int64_t dim; 
    7476   int64_t nelems; 
     7475  int dim; 
     7476  MPI_Offset nelems; 
    74777477 
    74787478  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    74937493 
    74947494int 
    7495 ncmpi_get_varm_uchar(int ncid, int64_t varid, 
    7496                      const int64_t start[], 
    7497                      const int64_t count[], 
    7498                      const int64_t stride[], 
    7499                      const int64_t imap[], 
     7495ncmpi_get_varm_uchar(int ncid, int varid, 
     7496                     const MPI_Offset start[], 
     7497                     const MPI_Offset count[], 
     7498                     const MPI_Offset stride[], 
     7499                     const MPI_Offset imap[], 
    75007500                     unsigned char *ip) 
    75017501{ 
     
    75037503  NC *ncp; 
    75047504  int status; 
    7505   int64_t dim; 
    7506   int64_t nelems; 
     7505  int dim; 
     7506  MPI_Offset nelems; 
    75077507 
    75087508  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    75237523 
    75247524int 
    7525 ncmpi_get_varm_schar_all(int ncid, int64_t varid, 
    7526                          const int64_t start[], 
    7527                          const int64_t count[], 
    7528                          const int64_t stride[], 
    7529                          const int64_t imap[], 
     7525ncmpi_get_varm_schar_all(int ncid, int varid, 
     7526                         const MPI_Offset start[], 
     7527                         const MPI_Offset count[], 
     7528                         const MPI_Offset stride[], 
     7529                         const MPI_Offset imap[], 
    75307530                         signed char *ip) 
    75317531{ 
     
    75337533  NC *ncp; 
    75347534  int status; 
    7535   int64_t dim; 
    7536   int64_t nelems; 
     7535  int dim; 
     7536  MPI_Offset nelems; 
    75377537 
    75387538  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    75537553 
    75547554int 
    7555 ncmpi_get_varm_schar(int ncid, int64_t varid, 
    7556                      const int64_t start[], 
    7557                      const int64_t count[], 
    7558                      const int64_t stride[], 
    7559                      const int64_t imap[], 
     7555ncmpi_get_varm_schar(int ncid, int varid, 
     7556                     const MPI_Offset start[], 
     7557                     const MPI_Offset count[], 
     7558                     const MPI_Offset stride[], 
     7559                     const MPI_Offset imap[], 
    75607560                     signed char *ip) 
    75617561{ 
     
    75637563  NC *ncp; 
    75647564  int status; 
    7565   int64_t dim; 
    7566   int64_t nelems; 
     7565  int dim; 
     7566  MPI_Offset nelems; 
    75677567 
    75687568  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    75837583 
    75847584int 
    7585 ncmpi_get_varm_text_all(int ncid, int64_t varid, 
    7586                         const int64_t start[], 
    7587                         const int64_t count[], 
    7588                         const int64_t stride[], 
    7589                         const int64_t imap[], 
     7585ncmpi_get_varm_text_all(int ncid, int varid, 
     7586                        const MPI_Offset start[], 
     7587                        const MPI_Offset count[], 
     7588                        const MPI_Offset stride[], 
     7589                        const MPI_Offset imap[], 
    75907590                        char *ip) 
    75917591{ 
     
    75937593  NC *ncp; 
    75947594  int status; 
    7595   int64_t dim; 
    7596   int64_t nelems; 
     7595  int dim; 
     7596  MPI_Offset nelems; 
    75977597 
    75987598  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    76137613 
    76147614int 
    7615 ncmpi_get_varm_text(int ncid, int64_t varid, 
    7616                     const int64_t start[], 
    7617                     const int64_t count[], 
    7618                     const int64_t stride[], 
    7619                     const int64_t imap[], 
     7615ncmpi_get_varm_text(int ncid, int varid, 
     7616                    const MPI_Offset start[], 
     7617                    const MPI_Offset count[], 
     7618                    const MPI_Offset stride[], 
     7619                    const MPI_Offset imap[], 
    76207620                    char *ip) 
    76217621{ 
     
    76237623  NC *ncp; 
    76247624  int status; 
    7625   int64_t dim; 
    7626   int64_t nelems; 
     7625  int dim; 
     7626  MPI_Offset nelems; 
    76277627 
    76287628  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    76437643 
    76447644int 
    7645 ncmpi_get_varm_short_all(int ncid, int64_t varid, 
    7646                          const int64_t start[], 
    7647                          const int64_t count[], 
    7648                          const int64_t stride[], 
    7649                          const int64_t imap[], 
     7645ncmpi_get_varm_short_all(int ncid, int varid, 
     7646                         const MPI_Offset start[], 
     7647                         const MPI_Offset count[], 
     7648                         const MPI_Offset stride[], 
     7649                         const MPI_Offset imap[], 
    76507650                         short *ip) 
    76517651{ 
     
    76537653  NC *ncp; 
    76547654  int status; 
    7655   int64_t dim; 
    7656   int64_t nelems; 
     7655  int dim; 
     7656  MPI_Offset nelems; 
    76577657 
    76587658  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    76737673 
    76747674int 
    7675 ncmpi_get_varm_short(int ncid, int64_t varid, 
    7676                      const int64_t start[], 
    7677                      const int64_t count[], 
    7678                      const int64_t stride[], 
    7679                      const int64_t imap[], 
     7675ncmpi_get_varm_short(int ncid, int varid, 
     7676                     const MPI_Offset start[], 
     7677                     const MPI_Offset count[], 
     7678                     const MPI_Offset stride[], 
     7679                     const MPI_Offset imap[], 
    76807680                     short *ip) 
    76817681{ 
     
    76837683  NC *ncp; 
    76847684  int status; 
    7685   int64_t dim; 
    7686   int64_t nelems; 
     7685  int dim; 
     7686  MPI_Offset nelems; 
    76877687 
    76887688  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    77037703 
    77047704int 
    7705 ncmpi_get_varm_int_all(int ncid, int64_t varid, 
    7706                        const int64_t start[], 
    7707                        const int64_t count[], 
    7708                        const int64_t stride[], 
    7709                        const int64_t imap[], 
     7705ncmpi_get_varm_int_all(int ncid, int varid, 
     7706                       const MPI_Offset start[], 
     7707                       const MPI_Offset count[], 
     7708                       const MPI_Offset stride[], 
     7709                       const MPI_Offset imap[], 
    77107710                       int *ip) 
    77117711{ 
     
    77137713  NC *ncp; 
    77147714  int status; 
    7715   int64_t dim; 
    7716   int64_t nelems; 
     7715  int dim; 
     7716  MPI_Offset nelems; 
    77177717 
    77187718  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    77337733 
    77347734int 
    7735 ncmpi_get_varm_int(int ncid, int64_t varid, 
    7736                    const int64_t start[], 
    7737                    const int64_t count[], 
    7738                    const int64_t stride[], 
    7739                    const int64_t imap[], 
     7735ncmpi_get_varm_int(int ncid, int varid, 
     7736                   const MPI_Offset start[], 
     7737                   const MPI_Offset count[], 
     7738                   const MPI_Offset stride[], 
     7739                   const MPI_Offset imap[], 
    77407740                   int *ip) 
    77417741{ 
     
    77437743  NC *ncp; 
    77447744  int status; 
    7745   int64_t dim; 
    7746   int64_t nelems; 
     7745  int dim; 
     7746  MPI_Offset nelems; 
    77477747 
    77487748  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    77637763 
    77647764int 
    7765 ncmpi_get_varm_long_all(int ncid, int64_t varid, 
    7766                         const int64_t start[], 
    7767                         const int64_t count[], 
    7768                         const int64_t stride[], 
    7769                         const int64_t imap[], 
     7765ncmpi_get_varm_long_all(int ncid, int varid, 
     7766                        const MPI_Offset start[], 
     7767                        const MPI_Offset count[], 
     7768                        const MPI_Offset stride[], 
     7769                        const MPI_Offset imap[], 
    77707770                        long *ip) 
    77717771{ 
     
    77737773  NC *ncp; 
    77747774  int status; 
    7775   int64_t dim; 
    7776   int64_t nelems; 
     7775  int dim; 
     7776  MPI_Offset nelems; 
    77777777 
    77787778  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    77937793 
    77947794int 
    7795 ncmpi_get_varm_long(int ncid, int64_t varid, 
    7796                     const int64_t start[], 
    7797                     const int64_t count[], 
    7798                     const int64_t stride[], 
    7799                     const int64_t imap[], 
     7795ncmpi_get_varm_long(int ncid, int varid, 
     7796                    const MPI_Offset start[], 
     7797                    const MPI_Offset count[], 
     7798                    const MPI_Offset stride[], 
     7799                    const MPI_Offset imap[], 
    78007800                    long *ip) 
    78017801{ 
     
    78037803  NC *ncp; 
    78047804  int status; 
    7805   int64_t dim; 
    7806   int64_t nelems; 
     7805  int dim; 
     7806  MPI_Offset nelems; 
    78077807 
    78087808  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    78237823 
    78247824int 
    7825 ncmpi_get_varm_float_all(int ncid, int64_t varid, 
    7826                          const int64_t start[], 
    7827                          const int64_t count[], 
    7828                          const int64_t stride[], 
    7829                          const int64_t imap[], 
     7825ncmpi_get_varm_float_all(int ncid, int varid, 
     7826                         const MPI_Offset start[], 
     7827                         const MPI_Offset count[], 
     7828                         const MPI_Offset stride[], 
     7829                         const MPI_Offset imap[], 
    78307830                         float *ip) 
    78317831{ 
     
    78337833  NC *ncp; 
    78347834  int status; 
    7835   int64_t dim; 
    7836   int64_t nelems; 
     7835  int dim; 
     7836  MPI_Offset nelems; 
    78377837 
    78387838  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    78537853 
    78547854int 
    7855 ncmpi_get_varm_float(int ncid, int64_t varid, 
    7856                      const int64_t start[], 
    7857                      const int64_t count[], 
    7858                      const int64_t stride[], 
    7859                      const int64_t imap[], 
     7855ncmpi_get_varm_float(int ncid, int varid, 
     7856                     const MPI_Offset start[], 
     7857                     const MPI_Offset count[], 
     7858                     const MPI_Offset stride[], 
     7859                     const MPI_Offset imap[], 
    78607860                     float *ip) 
    78617861{ 
     
    78637863  NC *ncp; 
    78647864  int status; 
    7865   int64_t dim; 
    7866   int64_t nelems; 
     7865  int dim; 
     7866  MPI_Offset nelems; 
    78677867 
    78687868  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    78837883 
    78847884int 
    7885 ncmpi_get_varm_double_all(int ncid, int64_t varid, 
    7886                           const int64_t start[], 
    7887                           const int64_t count[], 
    7888                           const int64_t stride[], 
    7889                           const int64_t imap[], 
     7885ncmpi_get_varm_double_all(int ncid, int varid, 
     7886                          const MPI_Offset start[], 
     7887                          const MPI_Offset count[], 
     7888                          const MPI_Offset stride[], 
     7889                          const MPI_Offset imap[], 
    78907890                          double *ip) 
    78917891{ 
     
    78937893  NC *ncp; 
    78947894  int status; 
    7895   int64_t dim; 
    7896   int64_t nelems; 
     7895  int dim; 
     7896  MPI_Offset nelems; 
    78977897 
    78987898  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    79137913 
    79147914int 
    7915 ncmpi_get_varm_double(int ncid, int64_t varid, 
    7916                       const int64_t start[], 
    7917                       const int64_t count[], 
    7918                       const int64_t stride[], 
    7919                       const int64_t imap[], 
     7915ncmpi_get_varm_double(int ncid, int varid, 
     7916                      const MPI_Offset start[], 
     7917                      const MPI_Offset count[], 
     7918                      const MPI_Offset stride[], 
     7919                      const MPI_Offset imap[], 
    79207920                      double *ip) 
    79217921{ 
     
    79237923  NC *ncp; 
    79247924  int status; 
    7925   int64_t dim; 
    7926   int64_t nelems; 
     7925  int dim; 
     7926  MPI_Offset nelems; 
    79277927 
    79287928  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    79587958                    void *xbuf,  
    79597959                    void *cbuf,  
    7960                     int64_t nelems,  
     7960                    MPI_Offset nelems,  
    79617961                    int cnelems,  
    79627962                    int iscontig_of_ptypes, 
     
    83458345 
    83468346int 
    8347 ncmpi_iput_var1(int ncid, int64_t varid, 
    8348                const int64_t index[], 
    8349                const void *buf, int64_t bufcount, 
     8347ncmpi_iput_var1(int ncid, int varid, 
     8348               const MPI_Offset index[], 
     8349               const void *buf, MPI_Offset bufcount, 
    83508350               MPI_Datatype datatype, 
    83518351               NCMPI_Request *request) 
     
    83558355  void *xbuf = NULL, *cbuf = NULL; 
    83568356  int status = NC_NOERR, warning = NC_NOERR; 
    8357   int64_t nelems, cnelems, nbytes; 
     8357  MPI_Offset nelems, cnelems, nbytes; 
    83588358  int el_size; 
    83598359  int mpireturn; 
     
    84888488    /* update the number of records in NC */ 
    84898489  
    8490     int64_t newnumrecs; 
     8490    MPI_Offset newnumrecs; 
    84918491    newnumrecs = index[0] + 1; 
    84928492    if (ncp->numrecs < newnumrecs) { 
     
    85008500 
    85018501int 
    8502 ncmpi_iget_var1(int ncid, int64_t varid, 
    8503                const int64_t index[], 
    8504                void *buf, int64_t bufcount, 
     8502ncmpi_iget_var1(int ncid, int varid, 
     8503               const MPI_Offset index[], 
     8504               void *buf, MPI_Offset bufcount, 
    85058505               MPI_Datatype datatype, 
    85068506               NCMPI_Request *request)  
     
    85108510  void *xbuf = NULL, *cbuf = NULL; 
    85118511  int status = NC_NOERR, warning = NC_NOERR; 
    8512   int64_t nelems, cnelems, nbytes; 
     8512  MPI_Offset nelems, cnelems, nbytes; 
    85138513  int el_size; 
    85148514  int mpireturn; 
     
    86148614 
    86158615int 
    8616 ncmpi_iput_var(int ncid, int64_t varid,  
    8617                const void *buf, int64_t bufcount, MPI_Datatype datatype, 
     8616ncmpi_iput_var(int ncid, int varid,  
     8617               const void *buf, MPI_Offset bufcount, MPI_Datatype datatype, 
    86188618               NCMPI_Request *request)  
    86198619{ 
     
    86228622  void *xbuf = NULL, *cbuf = NULL; 
    86238623  int status = NC_NOERR, warning = NC_NOERR; 
    8624   int64_t nelems, cnelems, nbytes; 
     8624  MPI_Offset nelems, cnelems, nbytes; 
    86258625  int el_size; 
    86268626  int mpireturn; 
     
    87638763    /* update the number of records in NC */ 
    87648764  
    8765     int64_t newnumrecs; 
     8765    MPI_Offset newnumrecs; 
    87668766    if (varp->ndims > 1) 
    87678767      newnumrecs = nelems / varp->dsizes[1]; 
     
    87788778 
    87798779int 
    8780 ncmpi_iget_var(int ncid, int64_t varid,  
    8781                void *buf, int64_t bufcount, MPI_Datatype datatype,  
     8780ncmpi_iget_var(int ncid, int varid,  
     8781               void *buf, MPI_Offset bufcount, MPI_Datatype datatype,  
    87828782               NCMPI_Request *request) 
    87838783{ 
     
    87868786  void *xbuf = NULL, *cbuf = NULL; 
    87878787  int status = NC_NOERR, warning = NC_NOERR; 
    8788   int64_t nelems, cnelems, nbytes; 
     8788  MPI_Offset nelems, cnelems, nbytes; 
    87898789  int el_size; 
    87908790  int mpireturn; 
     
    88988898 
    88998899int 
    8900 ncmpi_iput_vara(int ncid, int64_t varid, 
    8901                const int64_t start[], const int64_t count[], 
    8902                const void *buf, int64_t bufcount, 
     8900ncmpi_iput_vara(int ncid, int varid, 
     8901               const MPI_Offset start[], const MPI_Offset count[], 
     8902               const void *buf, MPI_Offset bufcount, 
    89038903               MPI_Datatype datatype, 
    89048904               NCMPI_Request *request) 
     
    89088908  void *xbuf = NULL,  *cbuf = NULL; 
    89098909  int status = NC_NOERR, warning = NC_NOERR; 
    8910   int64_t dim; 
    8911   int64_t nelems, cnelems, nbytes; 
     8910  int dim; 
     8911  MPI_Offset nelems, cnelems, nbytes; 
    89128912  int el_size; 
    89138913  int mpireturn; 
     
    90489048    /* update the number of records in NC */ 
    90499049  
    9050     int64_t newnumrecs; 
     9050    MPI_Offset newnumrecs; 
    90519051    newnumrecs = start[0] + count[0]; 
    90529052    if (ncp->numrecs < newnumrecs) { 
     
    90609060 
    90619061int 
    9062 ncmpi_iget_vara(int ncid, int64_t varid, 
    9063                const int64_t start[], const int64_t count[], 
    9064                void *buf, int64_t bufcount, 
     9062ncmpi_iget_vara(int ncid, int varid, 
     9063               const MPI_Offset start[], const MPI_Offset count[], 
     9064               void *buf, MPI_Offset bufcount, 
    90659065               MPI_Datatype datatype, 
    90669066               NCMPI_Request *request) 
     
    90709070  void *xbuf = NULL, *cbuf = NULL; 
    90719071  int status = NC_NOERR, warning = NC_NOERR; 
    9072   int64_t dim; 
    9073   int64_t nelems, cnelems, nbytes; 
     9072  int dim; 
     9073  MPI_Offset nelems, cnelems, nbytes; 
    90749074  int el_size; 
    90759075  int mpireturn; 
     
    91819181 
    91829182int 
    9183 ncmpi_iput_vars(int ncid, int64_t varid, 
    9184                const int64_t start[],  
    9185                const int64_t count[], 
    9186                const int64_t stride[], 
    9187                const void *buf, int64_t bufcount, 
     9183ncmpi_iput_vars(int ncid, int varid, 
     9184               const MPI_Offset start[],  
     9185               const MPI_Offset count[], 
     9186               const MPI_Offset stride[], 
     9187               const void *buf, MPI_Offset bufcount, 
    91889188               MPI_Datatype datatype, 
    91899189               NCMPI_Request *request) 
     
    91939193  void *xbuf = NULL, *cbuf = NULL; 
    91949194  int status = NC_NOERR, warning = NC_NOERR; 
    9195   int64_t dim; 
    9196   int64_t nelems, cnelems, nbytes; 
     9195  int dim; 
     9196  MPI_Offset nelems, cnelems, nbytes; 
    91979197  int el_size; 
    91989198  int mpireturn; 
     
    93349334    /* update the number of records in NC */ 
    93359335  
    9336     int64_t newnumrecs; 
     9336    MPI_Offset newnumrecs; 
    93379337    newnumrecs = start[0] + (count[0] - 1) * stride[0] + 1; 
    93389338    if (ncp->numrecs < newnumrecs) { 
     
    93469346 
    93479347int 
    9348 ncmpi_iget_vars(int ncid, int64_t varid, 
    9349                const int64_t start[],  
    9350                const int64_t count[], 
    9351                const int64_t stride[], 
    9352                void *buf, int64_t bufcount, 
     9348ncmpi_iget_vars(int ncid, int varid, 
     9349               const MPI_Offset start[],  
     9350               const MPI_Offset count[], 
     9351               const MPI_Offset stride[], 
     9352               void *buf, MPI_Offset bufcount, 
    93539353               MPI_Datatype datatype, 
    93549354               NCMPI_Request *request) 
     
    93589358  void *xbuf = NULL, *cbuf = NULL; 
    93599359  int status = NC_NOERR, warning = NC_NOERR; 
    9360   int64_t dim; 
    9361   int64_t nelems, cnelems, nbytes; 
     9360  int dim; 
     9361  MPI_Offset nelems, cnelems, nbytes; 
    93629362  int el_size; 
    93639363  int mpireturn; 
     
    94709470 
    94719471int 
    9472 ncmpi_iput_varm(int ncid, int64_t varid, 
    9473                const int64_t start[], 
    9474                const int64_t count[], 
    9475                const int64_t stride[], 
    9476                const int64_t imap[], 
    9477                const void *buf, int64_t bufcount, 
     9472ncmpi_iput_varm(int ncid, int varid, 
     9473               const MPI_Offset start[], 
     9474               const MPI_Offset count[], 
     9475               const MPI_Offset stride[], 
     9476               const MPI_Offset imap[], 
     9477               const void *buf, MPI_Offset bufcount, 
    94789478               MPI_Datatype datatype, 
    94799479               NCMPI_Request *request) 
     
    94819481  NC_var *varp; 
    94829482  NC *ncp; 
    9483   int64_t ndims, dim; 
     9483  MPI_Offset ndims, dim; 
    94849484  void *lbuf = NULL, *cbuf = NULL; 
    94859485  int status = NC_NOERR, warning = NC_NOERR; 
    9486   int64_t lnelems, cnelems;  
     9486  MPI_Offset lnelems, cnelems;  
    94879487  int el_size; 
    94889488  MPI_Datatype ptype, tmptype, imaptype; 
     
    95979597 
    95989598int 
    9599 ncmpi_iget_varm(int ncid, int64_t varid, 
    9600                    const int64_t start[], 
    9601                    const int64_t count[], 
    9602                    const int64_t stride[], 
    9603                    const int64_t imap[], 
    9604                    void *buf, int64_t bufcount, 
     9599ncmpi_iget_varm(int ncid, int varid, 
     9600                   const MPI_Offset start[], 
     9601                   const MPI_Offset count[], 
     9602                   const MPI_Offset stride[], 
     9603                   const MPI_Offset imap[], 
     9604                   void *buf, MPI_Offset bufcount, 
    96059605                   MPI_Datatype datatype, 
    96069606                   NCMPI_Request *request) 
     
    96089608  NC_var *varp; 
    96099609  NC *ncp; 
    9610   int64_t ndims, dim; 
     9610  MPI_Offset ndims, dim; 
    96119611  void *lbuf = NULL, *cbuf = NULL; 
    96129612  int status = NC_NOERR, warning = NC_NOERR; 
    9613   int64_t lnelems, cnelems;  
     9613  MPI_Offset lnelems, cnelems;  
    96149614  int el_size; 
    96159615  MPI_Datatype ptype, tmptype, imaptype; 
     
    97289728 
    97299729int 
    9730 ncmpi_iput_var1_uchar(int ncid, int64_t varid, 
    9731                      const int64_t index[], 
     9730ncmpi_iput_var1_uchar(int ncid, int varid, 
     9731                     const MPI_Offset index[], 
    97329732                     const unsigned char *op, 
    97339733                     NCMPI_Request *request) 
     
    97509750 
    97519751int 
    9752 ncmpi_iput_var1_schar(int ncid, int64_t varid, 
    9753                      const int64_t index[], 
     9752ncmpi_iput_var1_schar(int ncid, int varid, 
     9753                     const MPI_Offset index[], 
    97549754                     const signed char *op, 
    97559755                     NCMPI_Request *request) 
     
    97729772 
    97739773int 
    9774 ncmpi_iput_var1_text(int ncid, int64_t varid, 
    9775                      const int64_t index[], 
     9774ncmpi_iput_var1_text(int ncid, int varid, 
     9775                     const MPI_Offset index[], 
    97769776                     const char *op, 
    97779777                     NCMPI_Request *request) 
     
    97959795 
    97969796int 
    9797 ncmpi_iput_var1_short(int ncid, int64_t varid, 
    9798                      const int64_t index[], 
     9797ncmpi_iput_var1_short(int ncid, int varid, 
     9798                     const MPI_Offset index[], 
    97999799                     const short *op, 
    98009800                     NCMPI_Request *request) 
     
    98179817 
    98189818int 
    9819 ncmpi_iput_var1_int(int ncid, int64_t varid, 
    9820                    const int64_t index[], 
     9819ncmpi_iput_var1_int(int ncid, int varid, 
     9820                   const MPI_Offset index[], 
    98219821                   const int *op, 
    98229822                     NCMPI_Request *request) 
     
    98399839 
    98409840int 
    9841 ncmpi_iput_var1_long(int ncid, int64_t varid, 
    9842                    const int64_t index[], 
     9841ncmpi_iput_var1_long(int ncid, int varid, 
     9842                   const MPI_Offset index[], 
    98439843                   const long *op, 
    98449844                     NCMPI_Request *request) 
     
    98619861 
    98629862int 
    9863 ncmpi_iput_var1_float(int ncid, int64_t varid, 
    9864                      const int64_t index[], 
     9863ncmpi_iput_var1_float(int ncid, int varid, 
     9864                     const MPI_Offset index[], 
    98659865                     const float *op, 
    98669866                     NCMPI_Request *request) 
     
    98839883  
    98849884int 
    9885 ncmpi_iput_var1_double(int ncid, int64_t varid, 
    9886                       const int64_t index[], 
     9885ncmpi_iput_var1_double(int ncid, int varid, 
     9886                      const MPI_Offset index[], 
    98879887                      const double *op, 
    98889888                     NCMPI_Request *request) 
     
    99059905 
    99069906int 
    9907 ncmpi_iget_var1_uchar(int ncid, int64_t varid, 
    9908                      const int64_t index[], 
     9907ncmpi_iget_var1_uchar(int ncid, int varid, 
     9908                     const MPI_Offset index[], 
    99099909                     unsigned char *ip, 
    99109910                     NCMPI_Request *request) 
     
    99279927 
    99289928int 
    9929 ncmpi_iget_var1_schar(int ncid, int64_t varid, 
    9930                      const int64_t index[], 
     9929ncmpi_iget_var1_schar(int ncid, int varid, 
     9930                     const MPI_Offset index[], 
    99319931                     signed char *ip, 
    99329932                     NCMPI_Request *request) 
     
    99499949 
    99509950int 
    9951 ncmpi_iget_var1_text(int ncid, int64_t varid, 
    9952                      const int64_t index[], 
     9951ncmpi_iget_var1_text(int ncid, int varid, 
     9952                     const MPI_Offset index[], 
    99539953                     char *ip, 
    99549954                     NCMPI_Request *request) 
     
    99719971 
    99729972int 
    9973 ncmpi_iget_var1_short(int ncid, int64_t varid, 
    9974                      const int64_t index[], 
     9973ncmpi_iget_var1_short(int ncid, int varid, 
     9974                     const MPI_Offset index[], 
    99759975                     short *ip, 
    99769976                     NCMPI_Request *request) 
     
    99939993  
    99949994int 
    9995 ncmpi_iget_var1_int(int ncid, int64_t varid, 
    9996                    const int64_t index[], 
     9995ncmpi_iget_var1_int(int ncid, int varid, 
     9996                   const MPI_Offset index[], 
    99979997                   int *ip, 
    99989998                     NCMPI_Request *request) 
     
    1001510015  
    1001610016int 
    10017 ncmpi_iget_var1_long(int ncid, int64_t varid, 
    10018                    const int64_t index[], 
     10017ncmpi_iget_var1_long(int ncid, int varid, 
     10018                   const MPI_Offset index[], 
    1001910019                   long *ip, 
    1002010020                     NCMPI_Request *request) 
     
    1003710037 
    1003810038int 
    10039 ncmpi_iget_var1_float(int ncid, int64_t varid, 
    10040                      const int64_t index[], 
     10039ncmpi_iget_var1_float(int ncid, int varid, 
     10040                     const MPI_Offset index[], 
    1004110041                     float *ip, 
    1004210042                     NCMPI_Request *request) 
     
    1005910059  
    1006010060int 
    10061 ncmpi_iget_var1_double(int ncid, int64_t varid, 
    10062                       const int64_t index[], 
     10061ncmpi_iget_var1_double(int ncid, int varid, 
     10062                      const MPI_Offset index[], 
    1006310063                      double *ip, 
    1006410064                     NCMPI_Request *request) 
     
    1008110081 
    1008210082int 
    10083 ncmpi_iput_var_uchar(int ncid, int64_t varid, const unsigned char *op, 
     10083ncmpi_iput_var_uchar(int ncid, int varid, const unsigned char *op, 
    1008410084                     NCMPI_Request *request) 
    1008510085{ 
     
    1008810088  int status; 
    1008910089  int ndims; 
    10090   int64_t nelems; 
     10090  MPI_Offset nelems; 
    1009110091 
    1009210092  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1011710117 
    1011810118int 
    10119 ncmpi_iput_var_schar(int ncid, int64_t varid, const signed char *op, 
     10119ncmpi_iput_var_schar(int ncid, int varid, const signed char *op, 
    1012010120                     NCMPI_Request *request) 
    1012110121{ 
     
    1012410124  int status; 
    1012510125  int ndims; 
    10126   int64_t nelems; 
     10126  MPI_Offset nelems; 
    1012710127 
    1012810128  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1015410154 
    1015510155int 
    10156 ncmpi_iput_var_text(int ncid, int64_t varid, const char *op, 
     10156ncmpi_iput_var_text(int ncid, int varid, const char *op, 
    1015710157                     NCMPI_Request *request) 
    1015810158{ 
     
    1016110161  int status; 
    1016210162  int ndims; 
    10163   int64_t nelems; 
     10163  MPI_Offset nelems; 
    1016410164 
    1016510165  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1019010190 
    1019110191int 
    10192 ncmpi_iput_var_short(int ncid, int64_t varid, const short *op, 
     10192ncmpi_iput_var_short(int ncid, int varid, const short *op, 
    1019310193                     NCMPI_Request *request) 
    1019410194{ 
     
    1019710197  int status; 
    1019810198  int ndims; 
    10199   int64_t nelems; 
     10199  MPI_Offset nelems; 
    1020010200  
    1020110201  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1022610226 
    1022710227int 
    10228 ncmpi_iput_var_int(int ncid, int64_t varid, const int *op, 
     10228ncmpi_iput_var_int(int ncid, int varid, const int *op, 
    1022910229                     NCMPI_Request *request) 
    1023010230{ 
     
    1023310233  int status; 
    1023410234  int ndims; 
    10235   int64_t nelems; 
     10235  MPI_Offset nelems; 
    1023610236  
    1023710237  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1026210262 
    1026310263int 
    10264 ncmpi_iput_var_long(int ncid, int64_t varid, const long *op, 
     10264ncmpi_iput_var_long(int ncid, int varid, const long *op, 
    1026510265                     NCMPI_Request *request) 
    1026610266{ 
     
    1026910269  int status; 
    1027010270  int ndims; 
    10271   int64_t nelems; 
     10271  MPI_Offset nelems; 
    1027210272 
    1027310273  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1029810298 
    1029910299int 
    10300 ncmpi_iput_var_float(int ncid, int64_t varid, const float *op, 
     10300ncmpi_iput_var_float(int ncid, int varid, const float *op, 
    1030110301                     NCMPI_Request *request) 
    1030210302{ 
     
    1030510305  int status; 
    1030610306  int ndims; 
    10307   int64_t nelems; 
     10307  MPI_Offset nelems; 
    1030810308  
    1030910309  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1033410334 
    1033510335int 
    10336 ncmpi_iput_var_double(int ncid, int64_t varid, const double *op, 
     10336ncmpi_iput_var_double(int ncid, int varid, const double *op, 
    1033710337                     NCMPI_Request *request) 
    1033810338{ 
     
    1034110341  int status; 
    1034210342  int ndims; 
    10343   int64_t nelems; 
     10343  MPI_Offset nelems; 
    1034410344  
    1034510345  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1037010370 
    1037110371int 
    10372 ncmpi_iget_var_uchar(int ncid, int64_t varid, unsigned char *ip, 
     10372ncmpi_iget_var_uchar(int ncid, int varid, unsigned char *ip, 
    1037310373                     NCMPI_Request *request) 
    1037410374{ 
     
    1037710377  int status; 
    1037810378  int ndims; 
    10379   int64_t nelems; 
     10379  MPI_Offset nelems; 
    1038010380 
    1038110381  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1040610406 
    1040710407int 
    10408 ncmpi_iget_var_schar(int ncid, int64_t varid, signed char *ip, 
     10408ncmpi_iget_var_schar(int ncid, int varid, signed char *ip, 
    1040910409                     NCMPI_Request *request) 
    1041010410{ 
     
    1041310413  int status; 
    1041410414  int ndims; 
    10415   int64_t nelems; 
     10415  MPI_Offset nelems; 
    1041610416 
    1041710417  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1044210442 
    1044310443int 
    10444 ncmpi_iget_var_text(int ncid, int64_t varid, char *ip, 
     10444ncmpi_iget_var_text(int ncid, int varid, char *ip, 
    1044510445                     NCMPI_Request *request) 
    1044610446{ 
     
    1044910449  int status; 
    1045010450  int ndims; 
    10451   int64_t nelems; 
     10451  MPI_Offset nelems; 
    1045210452 
    1045310453  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1047810478 
    1047910479int 
    10480 ncmpi_iget_var_short(int ncid, int64_t varid, short *ip, 
     10480ncmpi_iget_var_short(int ncid, int varid, short *ip, 
    1048110481                     NCMPI_Request *request) 
    1048210482{ 
     
    1048510485  int status; 
    1048610486  int ndims; 
    10487   int64_t nelems; 
     10487  MPI_Offset nelems; 
    1048810488  
    1048910489  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1051410514 
    1051510515int 
    10516 ncmpi_iget_var_int(int ncid, int64_t varid, int *ip, 
     10516ncmpi_iget_var_int(int ncid, int varid, int *ip, 
    1051710517                     NCMPI_Request *request) 
    1051810518{ 
     
    1052110521  int status; 
    1052210522  int ndims; 
    10523   int64_t nelems; 
     10523  MPI_Offset nelems; 
    1052410524  
    1052510525  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1055010550 
    1055110551int 
    10552 ncmpi_iget_var_long(int ncid, int64_t varid, long *ip, 
     10552ncmpi_iget_var_long(int ncid, int varid, long *ip, 
    1055310553                     NCMPI_Request *request) 
    1055410554{ 
     
    1055710557  int status; 
    1055810558  int ndims; 
    10559   int64_t nelems; 
     10559  MPI_Offset nelems; 
    1056010560 
    1056110561  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1058610586 
    1058710587int 
    10588 ncmpi_iget_var_float(int ncid, int64_t varid, float *ip, 
     10588ncmpi_iget_var_float(int ncid, int varid, float *ip, 
    1058910589                     NCMPI_Request *request) 
    1059010590{ 
     
    1059310593  int status; 
    1059410594  int ndims; 
    10595   int64_t nelems; 
     10595  MPI_Offset nelems; 
    1059610596  
    1059710597  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1062210622 
    1062310623int 
    10624 ncmpi_iget_var_double(int ncid, int64_t varid, double *ip, 
     10624ncmpi_iget_var_double(int ncid, int varid, double *ip, 
    1062510625                     NCMPI_Request *request) 
    1062610626{ 
     
    1062910629  int status; 
    1063010630  int ndims; 
    10631   int64_t nelems; 
     10631  MPI_Offset nelems; 
    1063210632  
    1063310633  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1065810658 
    1065910659int 
    10660 ncmpi_iput_vara_uchar(int ncid, int64_t varid, 
    10661                      const int64_t start[], const int64_t count[], 
     10660ncmpi_iput_vara_uchar(int ncid, int varid, 
     10661                     const MPI_Offset start[], const MPI_Offset count[], 
    1066210662                     const unsigned char *op, 
    1066310663                     NCMPI_Request *request) 
     
    1066610666  NC *ncp; 
    1066710667  int status; 
    10668   int64_t dim; 
    10669   int64_t nelems; 
     10668  int dim; 
     10669  MPI_Offset nelems; 
    1067010670 
    1067110671  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1068610686 
    1068710687int 
    10688 ncmpi_iput_vara_schar(int ncid, int64_t varid, 
    10689                      const int64_t start[], const int64_t count[], 
     10688ncmpi_iput_vara_schar(int ncid, int varid, 
     10689                     const MPI_Offset start[], const MPI_Offset count[], 
    1069010690                     const signed char *op, 
    1069110691                     NCMPI_Request *request) 
     
    1069410694  NC *ncp; 
    1069510695  int status; 
    10696   int64_t dim; 
    10697   int64_t nelems; 
     10696  int dim; 
     10697  MPI_Offset nelems; 
    1069810698 
    1069910699  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1071410714 
    1071510715int 
    10716 ncmpi_iput_vara_text(int ncid, int64_t varid, 
    10717                      const int64_t start[], const int64_t count[], 
     10716ncmpi_iput_vara_text(int ncid, int varid, 
     10717                     const MPI_Offset start[], const MPI_Offset count[], 
    1071810718                     const char *op, 
    1071910719                     NCMPI_Request *request) 
     
    1072210722  NC *ncp; 
    1072310723  int status; 
    10724   int64_t dim; 
    10725   int64_t nelems; 
     10724  int dim; 
     10725  MPI_Offset nelems; 
    1072610726 
    1072710727  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1074210742 
    1074310743int 
    10744 ncmpi_iput_vara_short(int ncid, int64_t varid, 
    10745                      const int64_t start[], const int64_t count[], 
     10744ncmpi_iput_vara_short(int ncid, int varid, 
     10745                     const MPI_Offset start[], const MPI_Offset count[], 
    1074610746                     const short *op, 
    1074710747                     NCMPI_Request *request) 
     
    1075010750  NC *ncp; 
    1075110751  int status; 
    10752   int64_t dim; 
    10753   int64_t nelems; 
     10752  int dim; 
     10753  MPI_Offset nelems; 
    1075410754  
    1075510755  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1077010770 
    1077110771int 
    10772 ncmpi_iput_vara_int(int ncid, int64_t varid,  
    10773                 const int64_t start[], const int64_t count[],  
     10772ncmpi_iput_vara_int(int ncid, int varid,  
     10773                const MPI_Offset start[], const MPI_Offset count[],  
    1077410774                const int *op, 
    1077510775                     NCMPI_Request *request) 
     
    1077810778  NC *ncp; 
    1077910779  int status; 
    10780   int64_t dim; 
    10781   int64_t nelems; 
     10780  int dim; 
     10781  MPI_Offset nelems; 
    1078210782  
    1078310783  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1079810798 
    1079910799int 
    10800 ncmpi_iput_vara_long(int ncid, int64_t varid, 
    10801                 const int64_t start[], const int64_t count[], 
     10800ncmpi_iput_vara_long(int ncid, int varid, 
     10801                const MPI_Offset start[], const MPI_Offset count[], 
    1080210802                const long *op, 
    1080310803                     NCMPI_Request *request) 
     
    1080610806  NC *ncp; 
    1080710807  int status; 
    10808   int64_t dim; 
    10809   int64_t nelems; 
     10808  int dim; 
     10809  MPI_Offset nelems; 
    1081010810 
    1081110811  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1082610826 
    1082710827int 
    10828 ncmpi_iput_vara_float(int ncid, int64_t varid, 
    10829                 const int64_t start[], const int64_t count[], 
     10828ncmpi_iput_vara_float(int ncid, int varid, 
     10829                const MPI_Offset start[], const MPI_Offset count[], 
    1083010830                const float *op, 
    1083110831                     NCMPI_Request *request) 
     
    1083410834  NC *ncp; 
    1083510835  int status; 
    10836   int64_t dim; 
    10837   int64_t nelems; 
     10836  int dim; 
     10837  MPI_Offset nelems; 
    1083810838  
    1083910839  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1085410854 
    1085510855int 
    10856 ncmpi_iput_vara_double(int ncid, int64_t varid, 
    10857                 const int64_t start[], const int64_t count[], 
     10856ncmpi_iput_vara_double(int ncid, int varid, 
     10857                const MPI_Offset start[], const MPI_Offset count[], 
    1085810858                const double *op, 
    1085910859                     NCMPI_Request *request) 
     
    1086210862  NC *ncp; 
    1086310863  int status; 
    10864   int64_t dim; 
    10865   int64_t nelems; 
     10864  int dim; 
     10865  MPI_Offset nelems; 
    1086610866  
    1086710867  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1088210882 
    1088310883int 
    10884 ncmpi_iget_vara_uchar(int ncid, int64_t varid, 
    10885                     const int64_t start[], const int64_t count[], 
     10884ncmpi_iget_vara_uchar(int ncid, int varid, 
     10885                    const MPI_Offset start[], const MPI_Offset count[], 
    1088610886                    unsigned char *ip, 
    1088710887                     NCMPI_Request *request) 
     
    1089110891  NC *ncp; 
    1089210892  int status; 
    10893   int64_t dim; 
    10894   int64_t nelems; 
     10893  int dim; 
     10894  MPI_Offset nelems; 
    1089510895 
    1089610896  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1091110911 
    1091210912int 
    10913 ncmpi_iget_vara_schar(int ncid, int64_t varid, 
    10914                     const int64_t start[], const int64_t count[], 
     10913ncmpi_iget_vara_schar(int ncid, int varid, 
     10914                    const MPI_Offset start[], const MPI_Offset count[], 
    1091510915                    signed char *ip, 
    1091610916                     NCMPI_Request *request) 
     
    1092010920  NC *ncp; 
    1092110921  int status; 
    10922   int64_t dim; 
    10923   int64_t nelems; 
     10922  int dim; 
     10923  MPI_Offset nelems; 
    1092410924 
    1092510925  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1094010940 
    1094110941int 
    10942 ncmpi_iget_vara_text(int ncid, int64_t varid, 
    10943                     const int64_t start[], const int64_t count[], 
     10942ncmpi_iget_vara_text(int ncid, int varid, 
     10943                    const MPI_Offset start[], const MPI_Offset count[], 
    1094410944                    char *ip, 
    1094510945                     NCMPI_Request *request) 
     
    1094910949  NC *ncp; 
    1095010950  int status; 
    10951   int64_t dim; 
    10952   int64_t nelems; 
     10951  int dim; 
     10952  MPI_Offset nelems; 
    1095310953 
    1095410954  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1096910969 
    1097010970int 
    10971 ncmpi_iget_vara_short(int ncid, int64_t varid, 
    10972                     const int64_t start[], const int64_t count[], 
     10971ncmpi_iget_vara_short(int ncid, int varid, 
     10972                    const MPI_Offset start[], const MPI_Offset count[], 
    1097310973                    short *ip, 
    1097410974                     NCMPI_Request *request) 
     
    1097810978  NC *ncp; 
    1097910979  int status; 
    10980   int64_t dim; 
    10981   int64_t nelems; 
     10980  int dim; 
     10981  MPI_Offset nelems; 
    1098210982  
    1098310983  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1099810998 
    1099910999int 
    11000 ncmpi_iget_vara_int(int ncid, int64_t varid, 
    11001                 const int64_t start[], const int64_t count[], 
     11000ncmpi_iget_vara_int(int ncid, int varid, 
     11001                const MPI_Offset start[], const MPI_Offset count[], 
    1100211002                int *ip, 
    1100311003                     NCMPI_Request *request) 
     
    1100611006  NC *ncp; 
    1100711007  int status; 
    11008   int64_t dim; 
    11009   int64_t nelems; 
     11008  int dim; 
     11009  MPI_Offset nelems; 
    1101011010  
    1101111011  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1102611026 
    1102711027int 
    11028 ncmpi_iget_vara_long(int ncid, int64_t varid, 
    11029                 const int64_t start[], const int64_t count[], 
     11028ncmpi_iget_vara_long(int ncid, int varid, 
     11029                const MPI_Offset start[], const MPI_Offset count[], 
    1103011030                long *ip, 
    1103111031                     NCMPI_Request *request) 
     
    1103411034  NC *ncp; 
    1103511035  int status; 
    11036   int64_t dim; 
    11037   int64_t nelems; 
     11036  int dim; 
     11037  MPI_Offset nelems; 
    1103811038 
    1103911039  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1105411054 
    1105511055int 
    11056 ncmpi_iget_vara_float(int ncid, int64_t varid, 
    11057                 const int64_t start[], const int64_t count[], 
     11056ncmpi_iget_vara_float(int ncid, int varid, 
     11057                const MPI_Offset start[], const MPI_Offset count[], 
    1105811058                float *ip, 
    1105911059                     NCMPI_Request *request) 
     
    1106211062  NC *ncp; 
    1106311063  int status; 
    11064   int64_t dim; 
    11065   int64_t nelems; 
     11064  int dim; 
     11065  MPI_Offset nelems; 
    1106611066  
    1106711067  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1108211082 
    1108311083int 
    11084 ncmpi_iget_vara_double(int ncid, int64_t varid, 
    11085                 const int64_t start[], const int64_t count[], 
     11084ncmpi_iget_vara_double(int ncid, int varid, 
     11085                const MPI_Offset start[], const MPI_Offset count[], 
    1108611086                double *ip, 
    1108711087                     NCMPI_Request *request) 
     
    1109011090  NC *ncp; 
    1109111091  int status; 
    11092   int64_t dim; 
    11093   int64_t nelems; 
     11092  int dim; 
     11093  MPI_Offset nelems; 
    1109411094  
    1109511095  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1111011110 
    1111111111int 
    11112 ncmpi_iput_vars_uchar(int ncid, int64_t varid, 
    11113                      const int64_t start[], 
    11114                      const int64_t count[], 
    11115                      const int64_t stride[], 
     11112ncmpi_iput_vars_uchar(int ncid, int varid, 
     11113                     const MPI_Offset start[], 
     11114                     const MPI_Offset count[], 
     11115                     const MPI_Offset stride[], 
    1111611116                     const unsigned char *op, 
    1111711117                     NCMPI_Request *request) 
     
    1112011120  NC *ncp; 
    1112111121  int status; 
    11122   int64_t dim; 
    11123   int64_t nelems; 
     11122  int dim; 
     11123  MPI_Offset nelems; 
    1112411124 
    1112511125  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1114011140 
    1114111141int 
    11142 ncmpi_iput_vars_schar(int ncid, int64_t varid, 
    11143                      const int64_t start[], 
    11144                      const int64_t count[], 
    11145                      const int64_t stride[], 
     11142ncmpi_iput_vars_schar(int ncid, int varid, 
     11143                     const MPI_Offset start[], 
     11144                     const MPI_Offset count[], 
     11145                     const MPI_Offset stride[], 
    1114611146                     const signed char *op, 
    1114711147                     NCMPI_Request *request) 
     
    1115011150  NC *ncp; 
    1115111151  int status; 
    11152   int64_t dim; 
    11153   int64_t nelems; 
     11152  int dim; 
     11153  MPI_Offset nelems; 
    1115411154 
    1115511155  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1117011170 
    1117111171int 
    11172 ncmpi_iput_vars_text(int ncid, int64_t varid, 
    11173                      const int64_t start[], 
    11174                      const int64_t count[], 
    11175                      const int64_t stride[], 
     11172ncmpi_iput_vars_text(int ncid, int varid, 
     11173                     const MPI_Offset start[], 
     11174                     const MPI_Offset count[], 
     11175                     const MPI_Offset stride[], 
    1117611176                     const char *op, 
    1117711177                     NCMPI_Request *request) 
     
    1118011180  NC *ncp; 
    1118111181  int status; 
    11182   int64_t dim; 
    11183   int64_t nelems; 
     11182  int dim; 
     11183  MPI_Offset nelems; 
    1118411184 
    1118511185  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1120011200 
    1120111201int 
    11202 ncmpi_iput_vars_short(int ncid, int64_t varid, 
    11203                      const int64_t start[], 
    11204                      const int64_t count[], 
    11205                      const int64_t stride[], 
     11202ncmpi_iput_vars_short(int ncid, int varid, 
     11203                     const MPI_Offset start[], 
     11204                     const MPI_Offset count[], 
     11205                     const MPI_Offset stride[], 
    1120611206                     const short *op, 
    1120711207                     NCMPI_Request *request) 
     
    1121011210  NC *ncp; 
    1121111211  int status; 
    11212   int64_t dim; 
    11213   int64_t nelems; 
     11212  int dim; 
     11213  MPI_Offset nelems; 
    1121411214 
    1121511215  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1123011230 
    1123111231int 
    11232 ncmpi_iput_vars_int(int ncid, int64_t varid, 
    11233                    const int64_t start[], 
    11234                    const int64_t count[], 
    11235                    const int64_t stride[], 
     11232ncmpi_iput_vars_int(int ncid, int varid, 
     11233                   const MPI_Offset start[], 
     11234                   const MPI_Offset count[], 
     11235                   const MPI_Offset stride[], 
    1123611236                   const int *op, 
    1123711237                     NCMPI_Request *request) 
     
    1124011240  NC *ncp; 
    1124111241  int status; 
    11242   int64_t dim; 
    11243   int64_t nelems; 
     11242  int dim; 
     11243  MPI_Offset nelems; 
    1124411244 
    1124511245  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1126011260 
    1126111261int 
    11262 ncmpi_iput_vars_long(int ncid, int64_t varid, 
    11263                    const int64_t start[], 
    11264                    const int64_t count[], 
    11265                    const int64_t stride[], 
     11262ncmpi_iput_vars_long(int ncid, int varid, 
     11263                   const MPI_Offset start[], 
     11264                   const MPI_Offset count[], 
     11265                   const MPI_Offset stride[], 
    1126611266                   const long *op, 
    1126711267                     NCMPI_Request *request) 
     
    1127011270  NC *ncp; 
    1127111271  int status; 
    11272   int64_t dim; 
    11273   int64_t nelems; 
     11272  int dim; 
     11273  MPI_Offset nelems; 
    1127411274 
    1127511275  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1129011290 
    1129111291int 
    11292 ncmpi_iput_vars_float(int ncid, int64_t varid, 
    11293                      const int64_t start[], 
    11294                      const int64_t count[], 
    11295                      const int64_t stride[], 
     11292ncmpi_iput_vars_float(int ncid, int varid, 
     11293                     const MPI_Offset start[], 
     11294                     const MPI_Offset count[], 
     11295                     const MPI_Offset stride[], 
    1129611296                     const float *op, 
    1129711297                     NCMPI_Request *request) 
     
    1130011300  NC *ncp; 
    1130111301  int status; 
    11302   int64_t dim; 
    11303   int64_t nelems; 
     11302  int dim; 
     11303  MPI_Offset nelems; 
    1130411304 
    1130511305  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1132011320 
    1132111321int 
    11322 ncmpi_iput_vars_double(int ncid, int64_t varid, 
    11323                       const int64_t start[], 
    11324                       const int64_t count[], 
    11325                       const int64_t stride[], 
     11322ncmpi_iput_vars_double(int ncid, int varid, 
     11323                      const MPI_Offset start[], 
     11324                      const MPI_Offset count[], 
     11325                      const MPI_Offset stride[], 
    1132611326                      const double *op, 
    1132711327                     NCMPI_Request *request) 
     
    1133111331  NC *ncp; 
    1133211332  int status; 
    11333   int64_t dim; 
    11334   int64_t nelems; 
     11333  int dim; 
     11334  MPI_Offset nelems; 
    1133511335 
    1133611336  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1135211352 
    1135311353int 
    11354 ncmpi_iget_vars_uchar(int ncid, int64_t varid, 
    11355                      const int64_t start[], 
    11356                      const int64_t count[], 
    11357                      const int64_t stride[], 
     11354ncmpi_iget_vars_uchar(int ncid, int varid, 
     11355                     const MPI_Offset start[], 
     11356                     const MPI_Offset count[], 
     11357                     const MPI_Offset stride[], 
    1135811358                     unsigned char *ip, 
    1135911359                     NCMPI_Request *request) 
     
    1136211362  NC *ncp; 
    1136311363  int status; 
    11364   int64_t dim; 
    11365   int64_t nelems; 
     11364  int dim; 
     11365  MPI_Offset nelems; 
    1136611366 
    1136711367  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1138211382 
    1138311383int 
    11384 ncmpi_iget_vars_schar(int ncid, int64_t varid, 
    11385                      const int64_t start[], 
    11386                      const int64_t count[], 
    11387                      const int64_t stride[], 
     11384ncmpi_iget_vars_schar(int ncid, int varid, 
     11385                     const MPI_Offset start[], 
     11386                     const MPI_Offset count[], 
     11387                     const MPI_Offset stride[], 
    1138811388                     signed char *ip, 
    1138911389                     NCMPI_Request *request) 
     
    1139211392  NC *ncp; 
    1139311393  int status; 
    11394   int64_t dim; 
    11395   int64_t nelems; 
     11394  int dim; 
     11395  MPI_Offset nelems; 
    1139611396 
    1139711397  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1141211412 
    1141311413int 
    11414 ncmpi_iget_vars_text(int ncid, int64_t varid, 
    11415                      const int64_t start[], 
    11416                      const int64_t count[], 
    11417                      const int64_t stride[], 
     11414ncmpi_iget_vars_text(int ncid, int varid, 
     11415                     const MPI_Offset start[], 
     11416                     const MPI_Offset count[], 
     11417                     const MPI_Offset stride[], 
    1141811418                     char *ip, 
    1141911419                     NCMPI_Request *request) 
     
    1142211422  NC *ncp; 
    1142311423  int status; 
    11424   int64_t dim; 
    11425   int64_t nelems; 
     11424  int dim; 
     11425  MPI_Offset nelems; 
    1142611426 
    1142711427  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1144211442 
    1144311443int 
    11444 ncmpi_iget_vars_short(int ncid, int64_t varid, 
    11445                      const int64_t start[], 
    11446                      const int64_t count[], 
    11447                      const int64_t stride[], 
     11444ncmpi_iget_vars_short(int ncid, int varid, 
     11445                     const MPI_Offset start[], 
     11446                     const MPI_Offset count[], 
     11447                     const MPI_Offset stride[], 
    1144811448                     short *ip, 
    1144911449                     NCMPI_Request *request) 
     
    1145211452  NC *ncp; 
    1145311453  int status; 
    11454   int64_t dim; 
    11455   int64_t nelems; 
     11454  int dim; 
     11455  MPI_Offset nelems; 
    1145611456 
    1145711457  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1147211472 
    1147311473int 
    11474 ncmpi_iget_vars_int(int ncid, int64_t varid, 
    11475                    const int64_t start[], 
    11476                    const int64_t count[], 
    11477                    const int64_t stride[], 
     11474ncmpi_iget_vars_int(int ncid, int varid, 
     11475                   const MPI_Offset start[], 
     11476                   const MPI_Offset count[], 
     11477                   const MPI_Offset stride[], 
    1147811478                   int *ip, 
    1147911479                     NCMPI_Request *request) 
     
    1148211482  NC *ncp; 
    1148311483  int status; 
    11484   int64_t dim; 
    11485   int64_t nelems; 
     11484  int dim; 
     11485  MPI_Offset nelems; 
    1148611486 
    1148711487  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1150211502 
    1150311503int 
    11504 ncmpi_iget_vars_long(int ncid, int64_t varid, 
    11505                    const int64_t start[], 
    11506                    const int64_t count[], 
    11507                    const int64_t stride[], 
     11504ncmpi_iget_vars_long(int ncid, int varid, 
     11505                   const MPI_Offset start[], 
     11506                   const MPI_Offset count[], 
     11507                   const MPI_Offset stride[], 
    1150811508                   long *ip, 
    1150911509                     NCMPI_Request *request) 
     
    1151211512  NC *ncp; 
    1151311513  int status; 
    11514   int64_t dim; 
    11515   int64_t nelems; 
     11514  int dim; 
     11515  MPI_Offset nelems; 
    1151611516 
    1151711517  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1153211532 
    1153311533int 
    11534 ncmpi_iget_vars_float(int ncid, int64_t varid, 
    11535                      const int64_t start[], 
    11536                      const int64_t count[], 
    11537                      const int64_t stride[], 
     11534ncmpi_iget_vars_float(int ncid, int varid, 
     11535                     const MPI_Offset start[], 
     11536                     const MPI_Offset count[], 
     11537                     const MPI_Offset stride[], 
    1153811538                     float *ip, 
    1153911539                     NCMPI_Request *request) 
     
    1154211542  NC *ncp; 
    1154311543  int status; 
    11544   int64_t dim; 
    11545   int64_t nelems; 
     11544  int dim; 
     11545  MPI_Offset nelems; 
    1154611546 
    1154711547  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1156211562 
    1156311563int 
    11564 ncmpi_iget_vars_double(int ncid, int64_t varid, 
    11565                       const int64_t start[], 
    11566                       const int64_t count[], 
    11567                       const int64_t stride[], 
     11564ncmpi_iget_vars_double(int ncid, int varid, 
     11565                      const MPI_Offset start[], 
     11566                      const MPI_Offset count[], 
     11567                      const MPI_Offset stride[], 
    1156811568                      double *ip, 
    1156911569                     NCMPI_Request *request) 
     
    1157311573  NC *ncp; 
    1157411574  int status; 
    11575   int64_t dim; 
    11576   int64_t nelems; 
     11575  int dim; 
     11576  MPI_Offset nelems; 
    1157711577 
    1157811578  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1159311593 
    1159411594int 
    11595 ncmpi_iput_varm_uchar(int ncid, int64_t varid, 
    11596                      const int64_t start[], 
    11597                      const int64_t count[], 
    11598                      const int64_t stride[], 
    11599                      const int64_t imap[], 
     11595ncmpi_iput_varm_uchar(int ncid, int varid, 
     11596                     const MPI_Offset start[], 
     11597                     const MPI_Offset count[], 
     11598                     const MPI_Offset stride[], 
     11599                     const MPI_Offset imap[], 
    1160011600                     const unsigned char *op, 
    1160111601                     NCMPI_Request *request) 
     
    1160411604  NC *ncp; 
    1160511605  int status; 
    11606   int64_t dim; 
    11607   int64_t nelems; 
     11606  int dim; 
     11607  MPI_Offset nelems; 
    1160811608 
    1160911609  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1162411624 
    1162511625int 
    11626 ncmpi_iput_varm_schar(int ncid, int64_t varid, 
    11627                      const int64_t start[], 
    11628                      const int64_t count[], 
    11629                      const int64_t stride[], 
    11630                      const int64_t imap[], 
     11626ncmpi_iput_varm_schar(int ncid, int varid, 
     11627                     const MPI_Offset start[], 
     11628                     const MPI_Offset count[], 
     11629                     const MPI_Offset stride[], 
     11630                     const MPI_Offset imap[], 
    1163111631                     const signed char *op, 
    1163211632                     NCMPI_Request *request) 
     
    1163511635  NC *ncp; 
    1163611636  int status; 
    11637   int64_t dim; 
    11638   int64_t nelems; 
     11637  int dim; 
     11638  MPI_Offset nelems; 
    1163911639 
    1164011640  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1165511655 
    1165611656int 
    11657 ncmpi_iput_varm_text(int ncid, int64_t varid, 
    11658                     const int64_t start[], 
    11659                     const int64_t count[], 
    11660                     const int64_t stride[], 
    11661                     const int64_t imap[], 
     11657ncmpi_iput_varm_text(int ncid, int varid, 
     11658                    const MPI_Offset start[], 
     11659                    const MPI_Offset count[], 
     11660                    const MPI_Offset stride[], 
     11661                    const MPI_Offset imap[], 
    1166211662                    const char *op, 
    1166311663                     NCMPI_Request *request) 
     
    1166611666  NC *ncp; 
    1166711667  int status; 
    11668   int64_t dim; 
    11669   int64_t nelems; 
     11668  int dim; 
     11669  MPI_Offset nelems; 
    1167011670 
    1167111671  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1168611686 
    1168711687int 
    11688 ncmpi_iput_varm_short(int ncid, int64_t varid, 
    11689                      const int64_t start[], 
    11690                      const int64_t count[], 
    11691                      const int64_t stride[], 
    11692                      const int64_t imap[], 
     11688ncmpi_iput_varm_short(int ncid, int varid, 
     11689                     const MPI_Offset start[], 
     11690                     const MPI_Offset count[], 
     11691                     const MPI_Offset stride[], 
     11692                     const MPI_Offset imap[], 
    1169311693                     const short *op, 
    1169411694                     NCMPI_Request *request) 
     
    1169711697  NC *ncp; 
    1169811698  int status; 
    11699   int64_t dim; 
    11700   int64_t nelems; 
     11699  int dim; 
     11700  MPI_Offset nelems; 
    1170111701 
    1170211702  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1171711717 
    1171811718int 
    11719 ncmpi_iput_varm_int(int ncid, int64_t varid, 
    11720                    const int64_t start[], 
    11721                    const int64_t count[], 
    11722                    const int64_t stride[], 
    11723                    const int64_t imap[], 
     11719ncmpi_iput_varm_int(int ncid, int varid, 
     11720                   const MPI_Offset start[], 
     11721                   const MPI_Offset count[], 
     11722                   const MPI_Offset stride[], 
     11723                   const MPI_Offset imap[], 
    1172411724                   const int *op, 
    1172511725                     NCMPI_Request *request) 
     
    1172811728  NC *ncp; 
    1172911729  int status; 
    11730   int64_t dim; 
    11731   int64_t nelems; 
     11730  int dim; 
     11731  MPI_Offset nelems; 
    1173211732 
    1173311733  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1174811748 
    1174911749int 
    11750 ncmpi_iput_varm_long(int ncid, int64_t varid, 
    11751                     const int64_t start[], 
    11752                     const int64_t count[], 
    11753                     const int64_t stride[], 
    11754                     const int64_t imap[], 
     11750ncmpi_iput_varm_long(int ncid, int varid, 
     11751                    const MPI_Offset start[], 
     11752                    const MPI_Offset count[], 
     11753                    const MPI_Offset stride[], 
     11754                    const MPI_Offset imap[], 
    1175511755                    const long *op, 
    1175611756                     NCMPI_Request *request) 
     
    1175911759  NC *ncp; 
    1176011760  int status; 
    11761   int64_t dim; 
     11761  int dim; 
    1176211762  long int nelems; 
    1176311763 
     
    1177911779 
    1178011780int 
    11781 ncmpi_iput_varm_float(int ncid, int64_t varid, 
    11782                      const int64_t start[], 
    11783                      const int64_t count[], 
    11784                      const int64_t stride[], 
    11785                      const int64_t imap[], 
     11781ncmpi_iput_varm_float(int ncid, int varid, 
     11782                     const MPI_Offset start[], 
     11783                     const MPI_Offset count[], 
     11784                     const MPI_Offset stride[], 
     11785                     const MPI_Offset imap[], 
    1178611786                     const float *op, 
    1178711787                     NCMPI_Request *request) 
     
    1179011790  NC *ncp; 
    1179111791  int status; 
    11792   int64_t dim; 
    11793   int64_t nelems; 
     11792  int dim; 
     11793  MPI_Offset nelems; 
    1179411794 
    1179511795  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1181011810 
    1181111811int 
    11812 ncmpi_iput_varm_double(int ncid, int64_t varid, 
    11813                       const int64_t start[], 
    11814                       const int64_t count[], 
    11815                       const int64_t stride[], 
    11816                       const int64_t imap[], 
     11812ncmpi_iput_varm_double(int ncid, int varid, 
     11813                      const MPI_Offset start[], 
     11814                      const MPI_Offset count[], 
     11815                      const MPI_Offset stride[], 
     11816                      const MPI_Offset imap[], 
    1181711817                      const double *op, 
    1181811818                     NCMPI_Request *request) 
     
    1182111821  NC *ncp; 
    1182211822  int status; 
    11823   int64_t dim; 
    11824   int64_t nelems; 
     11823  int dim; 
     11824  MPI_Offset nelems; 
    1182511825 
    1182611826  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1184111841 
    1184211842int 
    11843 ncmpi_iget_varm_uchar(int ncid, int64_t varid, 
    11844                      const int64_t start[], 
    11845                      const int64_t count[], 
    11846                      const int64_t stride[], 
    11847                      const int64_t imap[], 
     11843ncmpi_iget_varm_uchar(int ncid, int varid, 
     11844                     const MPI_Offset start[], 
     11845                     const MPI_Offset count[], 
     11846                     const MPI_Offset stride[], 
     11847                     const MPI_Offset imap[], 
    1184811848                     unsigned char *ip, 
    1184911849                     NCMPI_Request *request) 
     
    1185211852  NC *ncp; 
    1185311853  int status; 
    11854   int64_t dim; 
    11855   int64_t nelems; 
     11854  int dim; 
     11855  MPI_Offset nelems; 
    1185611856 
    1185711857  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1187211872 
    1187311873int 
    11874 ncmpi_iget_varm_schar(int ncid, int64_t varid, 
    11875                      const int64_t start[], 
    11876                      const int64_t count[], 
    11877                      const int64_t stride[], 
    11878                      const int64_t imap[], 
     11874ncmpi_iget_varm_schar(int ncid, int varid, 
     11875                     const MPI_Offset start[], 
     11876                     const MPI_Offset count[], 
     11877                     const MPI_Offset stride[], 
     11878                     const MPI_Offset imap[], 
    1187911879                     signed char *ip, 
    1188011880                     NCMPI_Request *request) 
     
    1188311883  NC *ncp; 
    1188411884  int status; 
    11885   int64_t dim; 
    11886   int64_t nelems; 
     11885  int dim; 
     11886  MPI_Offset nelems; 
    1188711887 
    1188811888  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1190311903 
    1190411904int 
    11905 ncmpi_iget_varm_text(int ncid, int64_t varid, 
    11906                     const int64_t start[], 
    11907                     const int64_t count[], 
    11908                     const int64_t stride[], 
    11909                     const int64_t imap[], 
     11905ncmpi_iget_varm_text(int ncid, int varid, 
     11906                    const MPI_Offset start[], 
     11907                    const MPI_Offset count[], 
     11908                    const MPI_Offset stride[], 
     11909                    const MPI_Offset imap[], 
    1191011910                    char *ip, 
    1191111911                     NCMPI_Request *request) 
     
    1191411914  NC *ncp; 
    1191511915  int status; 
    11916   int64_t dim; 
    11917   int64_t nelems; 
     11916  int dim; 
     11917  MPI_Offset nelems; 
    1191811918 
    1191911919  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1193411934 
    1193511935int 
    11936 ncmpi_iget_varm_short(int ncid, int64_t varid, 
    11937                      const int64_t start[], 
    11938                      const int64_t count[], 
    11939                      const int64_t stride[], 
    11940                      const int64_t imap[], 
     11936ncmpi_iget_varm_short(int ncid, int varid, 
     11937                     const MPI_Offset start[], 
     11938                     const MPI_Offset count[], 
     11939                     const MPI_Offset stride[], 
     11940                     const MPI_Offset imap[], 
    1194111941                     short *ip, 
    1194211942                     NCMPI_Request *request) 
     
    1194511945  NC *ncp; 
    1194611946  int status; 
    11947   int64_t dim; 
    11948   int64_t nelems; 
     11947  int dim; 
     11948  MPI_Offset nelems; 
    1194911949 
    1195011950  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1196511965 
    1196611966int 
    11967 ncmpi_iget_varm_int(int ncid, int64_t varid, 
    11968                    const int64_t start[], 
    11969                    const int64_t count[], 
    11970                    const int64_t stride[], 
    11971                    const int64_t imap[], 
     11967ncmpi_iget_varm_int(int ncid, int varid, 
     11968                   const MPI_Offset start[], 
     11969                   const MPI_Offset count[], 
     11970                   const MPI_Offset stride[], 
     11971                   const MPI_Offset imap[], 
    1197211972                   int *ip, 
    1197311973                     NCMPI_Request *request) 
     
    1197611976  NC *ncp; 
    1197711977  int status; 
    11978   int64_t dim; 
    11979   int64_t nelems; 
     11978  int dim; 
     11979  MPI_Offset nelems; 
    1198011980 
    1198111981  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1199611996 
    1199711997int 
    11998 ncmpi_iget_varm_long(int ncid, int64_t varid, 
    11999                     const int64_t start[], 
    12000                     const int64_t count[], 
    12001                     const int64_t stride[], 
    12002                     const int64_t imap[], 
     11998ncmpi_iget_varm_long(int ncid, int varid, 
     11999                    const MPI_Offset start[], 
     12000                    const MPI_Offset count[], 
     12001                    const MPI_Offset stride[], 
     12002                    const MPI_Offset imap[], 
    1200312003                    long *ip, 
    1200412004                     NCMPI_Request *request) 
     
    1200712007  NC *ncp; 
    1200812008  int status; 
    12009   int64_t dim; 
    12010   int64_t nelems; 
     12009  int dim; 
     12010  MPI_Offset nelems; 
    1201112011 
    1201212012  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1202712027 
    1202812028int 
    12029 ncmpi_iget_varm_float(int ncid, int64_t varid, 
    12030                      const int64_t start[], 
    12031                      const int64_t count[], 
    12032                      const int64_t stride[], 
    12033                      const int64_t imap[], 
     12029ncmpi_iget_varm_float(int ncid, int varid, 
     12030                     const MPI_Offset start[], 
     12031                     const MPI_Offset count[], 
     12032                     const MPI_Offset stride[], 
     12033                     const MPI_Offset imap[], 
    1203412034                     float *ip, 
    1203512035                     NCMPI_Request *request) 
     
    1203812038  NC *ncp; 
    1203912039  int status; 
    12040   int64_t dim; 
    12041   int64_t nelems; 
     12040  int dim; 
     12041  MPI_Offset nelems; 
    1204212042 
    1204312043  status = ncmpii_NC_check_id(ncid, &ncp); 
     
    1205812058 
    1205912059int 
    12060 ncmpi_iget_varm_double(int ncid, int64_t varid, 
    12061                       const int64_t start[], 
    12062                       const int64_t count[], 
    12063                       const int64_t stride[], 
    12064                       const int64_t imap[], 
     12060ncmpi_iget_varm_double(int ncid, int varid, 
     12061                      const MPI_Offset start[], 
     12062                      const MPI_Offset count[], 
     12063                      const MPI_Offset stride[], 
     12064                      const MPI_Offset imap[], 
    1206512065                      double *ip, 
    1206612066                     NCMPI_Request *request) 
     
    1206912069  NC *ncp; 
    1207012070  int status; 
    12071   int64_t dim; 
    12072   int64_t nelems; 
     12071  int dim; 
     12072  MPI_Offset nelems; 
    1207312073 
    1207412074  status = ncmpii_NC_check_id(ncid, &ncp); 
  • trunk/CDF3/src/lib/nc.c

    r613 r625  
    2525#define VER_CLASSIC 1 
    2626#define VER_64BIT_OFFSET 2 
    27 #define VER_64BIT_DATA 2.5 
    2827#define VER_HDF5 3 
     28#define VER_64BIT_DATA 5 
    2929 
    3030 
     
    3636static int move_vars_r(NC *ncp, NC *old); 
    3737static int write_NC(NC *ncp); 
    38 static int NC_begins(NC *ncp, int64_t h_minfree, int64_t v_align, 
    39                       int64_t v_minfree, int64_t r_align); 
    40 static int NC_check_def(MPI_Comm comm, void *buf, int64_t nn); 
     38static int NC_begins(NC *ncp, MPI_Offset h_minfree, MPI_Offset v_align, 
     39                      MPI_Offset v_minfree, MPI_Offset r_align); 
     40static int NC_check_def(MPI_Comm comm, void *buf, MPI_Offset nn); 
    4141 
    4242#if 0 
     
    8686 */ 
    8787static int 
    88 NC_check_def(MPI_Comm comm, void *buf, int64_t nn) { 
     88NC_check_def(MPI_Comm comm, void *buf, MPI_Offset nn) { 
    8989  int rank; 
    9090  int errcheck; 
    91   int64_t compare = 0; 
     91  MPI_Offset compare = 0; 
    9292  void *cmpbuf; 
    93   int64_t max_size; 
     93  MPI_Offset max_size; 
    9494 
    9595  MPI_Comm_rank(comm, &rank); 
     
    9797  if (rank == 0) 
    9898    max_size = nn; 
    99   MPI_Bcast(&max_size, 1, MPI_LONG, 0, comm); 
     99  MPI_Bcast(&max_size, 1, MPI_LONG_LONG_INT, 0, comm); 
    100100 
    101101  compare = max_size - nn; 
    102102 
    103   MPI_Allreduce(&compare, &errcheck, 1, MPI_LONG, MPI_LOR, comm); 
     103  MPI_Allreduce(&compare, &errcheck, 1, MPI_LONG_LONG_INT, MPI_LOR, comm); 
    104104 
    105105  if (errcheck) 
     
    118118  } 
    119119 
    120   MPI_Allreduce(&compare, &errcheck, 1, MPI_LONG, MPI_LOR, comm); 
     120  MPI_Allreduce(&compare, &errcheck, 1, MPI_LONG_LONG_INT, MPI_LOR, comm); 
    121121 
    122122  if (errcheck){ 
     
    164164/* static */ 
    165165NC * 
    166 ncmpii_new_NC(const int64_t *chunkp) 
     166ncmpii_new_NC(const MPI_Offset *chunkp) 
    167167{ 
    168168        NC *ncp; 
     
    274274 * will fit into xbufsize? 
    275275 */ 
    276 int64_
    277 ncmpix_howmany(nc_type type, int64_t xbufsize) 
     276MPI_Offse
     277ncmpix_howmany(nc_type type, MPI_Offset xbufsize) 
    278278{ 
    279279        switch(type){ 
     
    303303static int 
    304304NC_begins(NC *ncp, 
    305         int64_t h_minfree, int64_t v_align, 
    306         int64_t v_minfree, int64_t r_align) 
    307 { 
    308         int64_t ii; 
    309         int64_t sizeof_off_t; 
     305        MPI_Offset h_minfree, MPI_Offset v_align, 
     306        MPI_Offset v_minfree, MPI_Offset r_align) 
     307{ 
     308        MPI_Offset ii; 
     309        MPI_Offset sizeof_off_t; 
    310310        off_t index = 0; 
    311311        NC_var **vpp; 
     
    434434ncmpii_read_numrecs(NC *ncp) { 
    435435  int status = NC_NOERR, mpireturn; 
    436   int64_t nrecs; 
     436  MPI_Offset nrecs; 
    437437  void *buf, *pos; 
    438438  MPI_Status mpistatus; 
     
    493493ncmpii_write_numrecs(NC *ncp) { 
    494494  int status = NC_NOERR, mpireturn; 
    495   int64_t nrecs; 
     495  MPI_Offset nrecs; 
    496496  void *buf, *pos;  
    497497  MPI_Status mpistatus; 
     
    645645ncmpii_NC_sync(NC *ncp) 
    646646{ 
    647   int64_t mynumrecs, numrecs; 
     647  MPI_Offset mynumrecs, numrecs; 
    648648 
    649649  assert(!NC_readonly(ncp)); 
     
    652652 
    653653  mynumrecs = ncp->numrecs; 
    654   MPI_Allreduce(&mynumrecs, &numrecs, 1, MPI_LONG, MPI_MAX, ncp->nciop->comm); 
     654  MPI_Allreduce(&mynumrecs, &numrecs, 1, MPI_LONG_LONG_INT, MPI_MAX, ncp->nciop->comm); 
    655655  if (numrecs > ncp->numrecs) { 
    656656    ncp->numrecs = numrecs; 
     
    688688move_recs_r(NC *ncp, NC *old) { 
    689689  int status; 
    690   int64_t recno; 
    691   const int64_t old_nrecs = old->numrecs; 
    692   const int64_t ncp_recsize = ncp->recsize; 
    693   const int64_t old_recsize = old->recsize; 
     690  MPI_Offset recno; 
     691  const MPI_Offset old_nrecs = old->numrecs; 
     692  const MPI_Offset ncp_recsize = ncp->recsize; 
     693  const MPI_Offset old_recsize = old->recsize; 
    694694  const off_t ncp_off = ncp->begin_rec; 
    695695  const off_t old_off = old->begin_rec; 
     
    709709    /* else, new rec var inserted, to be moved one record at a time */ 
    710710 
    711     for (recno = (int64_t)old_nrecs -1; recno >= 0; recno--) { 
     711    for (recno = (MPI_Offset)old_nrecs -1; recno >= 0; recno--) { 
    712712      status = ncmpiio_move(ncp->nciop,  
    713713                         ncp_off+recno*ncp_recsize,  
     
    748748       of a record variable) in bytes.  This is different for format 1 
    749749       and format 2. */ 
    750     int64_t vlen_max; 
    751     int64_t ii; 
    752     int64_t large_vars_count; 
    753     int64_t rec_vars_count; 
     750    MPI_Offset vlen_max; 
     751    MPI_Offset ii; 
     752    MPI_Offset large_vars_count; 
     753    MPI_Offset rec_vars_count; 
    754754    int last=-1; 
    755755 
     
    973973int 
    974974ncmpi_inq(int ncid, 
    975         int64_t *ndimsp, 
    976         int64_t *nvarsp, 
    977         int64_t *nattsp, 
    978         int64_t *xtendimp) 
     975        int *ndimsp, 
     976        int *nvarsp, 
     977        int *nattsp, 
     978        int *xtendimp) 
    979979{ 
    980980        int status; 
     
    986986 
    987987        if(ndimsp != NULL) 
    988                 *ndimsp = (int64_t) ncp->dims.nelems; 
     988                *ndimsp = (int) ncp->dims.nelems; 
    989989        if(nvarsp != NULL) 
    990                 *nvarsp = (int64_t) ncp->vars.nelems; 
     990                *nvarsp = (int) ncp->vars.nelems; 
    991991        if(nattsp != NULL) 
    992                 *nattsp = (int64_t) ncp->attrs.nelems; 
     992                *nattsp = (int) ncp->attrs.nelems; 
    993993        if(xtendimp != NULL) 
    994994                *xtendimp = ncmpii_find_NC_Udim(&ncp->dims, NULL); 
     
    10211021 
    10221022int  
    1023 ncmpi_inq_ndims(int ncid, int64_t *ndimsp) 
     1023ncmpi_inq_ndims(int ncid, int *ndimsp) 
    10241024{ 
    10251025        int status; 
     
    10311031 
    10321032        if(ndimsp != NULL) 
    1033                 *ndimsp = (int64_t) ncp->dims.nelems; 
     1033                *ndimsp = (int) ncp->dims.nelems; 
    10341034 
    10351035        return NC_NOERR; 
     
    10371037 
    10381038int  
    1039 ncmpi_inq_nvars(int ncid, int64_t *nvarsp) 
     1039ncmpi_inq_nvars(int ncid, int *nvarsp) 
    10401040{ 
    10411041        int status; 
     
    10471047 
    10481048        if(nvarsp != NULL) 
    1049                 *nvarsp = (int64_t) ncp->vars.nelems; 
     1049                *nvarsp = (int) ncp->vars.nelems; 
    10501050 
    10511051        return NC_NOERR; 
     
    10531053 
    10541054int  
    1055 ncmpi_inq_natts(int ncid, int64_t *nattsp) 
     1055ncmpi_inq_natts(int ncid, int *nattsp) 
    10561056{ 
    10571057        int status; 
     
    10631063 
    10641064        if(nattsp != NULL) 
    1065                 *nattsp = (int64_t) ncp->attrs.nelems; 
     1065                *nattsp = (int) ncp->attrs.nelems; 
    10661066 
    10671067        return NC_NOERR; 
     
    10691069 
    10701070int  
    1071 ncmpi_inq_unlimdim(int ncid, int64_t *xtendimp) 
     1071ncmpi_inq_unlimdim(int ncid, int *xtendimp) 
    10721072{ 
    10731073        int status; 
  • trunk/CDF3/src/lib/nc.h

    r613 r625  
    1313#include "ncconfig.h" 
    1414 
    15 #include <stddef.h>     /* int64_t */ 
    16 #include <sys/types.h>  /* int64_t */ 
     15#include <stddef.h>     /* MPI_Offset */ 
     16#include <sys/types.h>  /* MPI_Offset */ 
    1717#include "pnetcdf.h" 
    1818#include "ncio.h"       /* ncio */ 
     
    5151typedef struct { 
    5252        /* all xdr'd */ 
    53         int64_t nchars; 
     53        MPI_Offset nchars; 
    5454        char *cp; 
    5555} NC_string; 
    5656 
    5757extern NC * 
    58 ncmpii_new_NC(const int64_t *chunkp); 
     58ncmpii_new_NC(const MPI_Offset *chunkp); 
    5959 
    6060extern NC * 
     
    6969 
    7070extern NC_string * 
    71 ncmpii_new_NC_string(int64_t slen, const char *str); 
     71ncmpii_new_NC_string(MPI_Offset slen, const char *str); 
    7272 
    7373extern int 
     
    8282        /* all xdr'd */ 
    8383        NC_string *name; 
    84         int64_t size; 
     84        MPI_Offset size; 
    8585} NC_dim; 
    8686 
    8787typedef struct NC_dimarray { 
    88         int64_t nalloc;               /* number allocated >= nelems */ 
     88        size_t nalloc;                /* number allocated >= nelems */ 
    8989        /* below gets xdr'd */ 
    9090        /* NCtype type = NC_DIMENSION */ 
    91         int64_t nelems;               /* length of the array */ 
     91        MPI_Offset nelems;            /* length of the array */ 
    9292        NC_dim **value; 
    9393} NC_dimarray; 
     
    116116 
    117117extern NC_dim * 
    118 ncmpii_elem_NC_dimarray(const NC_dimarray *ncap, int64_t elem); 
    119  
    120 extern int 
    121 ncmpi_def_dim(int ncid, const char *name, int64_t size, int64_t *dimidp); 
    122  
    123 extern int 
    124 ncmpi_rename_dim( int ncid, int64_t dimid, const char *newname); 
    125  
    126 extern int 
    127 ncmpi_inq_dimid(int ncid, const char *name, int64_t *dimid_ptr); 
    128  
    129 extern int 
    130 ncmpi_inq_dim(int ncid, int64_t dimid, char *name, int64_t *sizep); 
    131  
    132 extern int  
    133 ncmpi_inq_dimname(int ncid, int64_t dimid, char *name); 
    134  
    135 extern int  
    136 ncmpi_inq_dimlen(int ncid, int64_t dimid, int64_t *lenp); 
     118ncmpii_elem_NC_dimarray(const NC_dimarray *ncap, size_t elem); 
     119 
     120extern int 
     121ncmpi_def_dim(int ncid, const char *name, MPI_Offset size, int *dimidp); 
     122 
     123extern int 
     124ncmpi_rename_dim( int ncid, int dimid, const char *newname); 
     125 
     126extern int 
     127ncmpi_inq_dimid(int ncid, const char *name, int *dimid_ptr); 
     128 
     129extern int 
     130ncmpi_inq_dim(int ncid, int dimid, char *name, MPI_Offset *sizep); 
     131 
     132extern int  
     133ncmpi_inq_dimname(int ncid, int dimid, char *name); 
     134 
     135extern int  
     136ncmpi_inq_dimlen(int ncid, int dimid, MPI_Offset *lenp); 
    137137/* End defined in dim.c */ 
    138138 
     
    141141 */ 
    142142typedef struct { 
    143         int64_t xsz;          /* amount of space at xvalue */ 
     143        MPI_Offset xsz;               /* amount of space at xvalue */ 
    144144        /* below gets xdr'd */ 
    145145        NC_string *name; 
    146146        nc_type type;           /* the discriminant */ 
    147         int64_t nelems;               /* length of the array */ 
     147        MPI_Offset nelems;            /* length of the array */ 
    148148        void *xvalue;           /* the actual data, in external representation */ 
    149149} NC_attr; 
    150150 
    151151typedef struct NC_attrarray { 
    152         int64_t nalloc;               /* number allocated >= nelems */ 
     152        MPI_Offset nalloc;            /* number allocated >= nelems */ 
    153153        /* below gets xdr'd */ 
    154154        /* NCtype type = NC_ATTRIBUTE */ 
    155         int64_t nelems;               /* length of the array */ 
     155        MPI_Offset nelems;            /* length of the array */ 
    156156        NC_attr **value; 
    157157} NC_attrarray; 
     
    166166        NC_string *strp, 
    167167        nc_type type, 
    168         int64_t nelems); 
     168        MPI_Offset nelems); 
    169169 
    170170extern NC_attr ** 
     
    183183 
    184184extern NC_attr * 
    185 ncmpii_elem_NC_attrarray(const NC_attrarray *ncap, int64_t elem); 
    186  
    187 extern int 
    188 ncmpi_put_att_text(int ncid, int64_t varid, const char *name, 
    189         int64_t nelems, const char *value); 
    190  
    191 extern int 
    192 ncmpi_get_att_text(int ncid, int64_t varid, const char *name, char *str); 
    193  
    194 extern int 
    195 ncmpi_put_att_schar(int ncid, int64_t varid, const char *name, 
    196         nc_type type, int64_t nelems, const signed char *value); 
    197  
    198 extern int 
    199 ncmpi_get_att_schar(int ncid, int64_t varid, const char *name, signed char *tp); 
    200  
    201 extern int 
    202 ncmpi_put_att_uchar(int ncid, int64_t varid, const char *name, 
    203         nc_type type, int64_t nelems, const unsigned char *value); 
    204  
    205 extern int 
    206 ncmpi_get_att_uchar(int ncid, int64_t varid, const char *name, unsigned char *tp); 
    207  
    208 extern int 
    209 ncmpi_put_att_short(int ncid, int64_t varid, const char *name, 
    210         nc_type type, int64_t nelems, const short *value); 
    211  
    212 extern int 
    213 ncmpi_get_att_short(int ncid, int64_t varid, const char *name, short *tp); 
    214  
    215 extern int 
    216 ncmpi_put_att_int(int ncid, int64_t varid, const char *name, 
    217         nc_type type, int64_t nelems, const int *value); 
    218  
    219 extern int 
    220 ncmpi_get_att_int(int ncid, int64_t varid, const char *name, int *tp); 
    221  
    222 extern int 
    223 ncmpi_put_att_long(int ncid, int64_t varid, const char *name, 
    224         nc_type type, int64_t nelems, const long *value); 
    225  
    226 extern int 
    227 ncmpi_get_att_long(int ncid, int64_t varid, const char *name, long *tp); 
    228  
    229 extern int 
    230 ncmpi_put_att_float(int ncid, int64_t varid, const char *name, 
    231         nc_type type, int64_t nelems, const float *value); 
    232 extern int 
    233 ncmpi_get_att_float(int ncid, int64_t varid, const char *name, float *tp); 
    234 extern int 
    235 ncmpi_put_att_double(int ncid, int64_t varid, const char *name, 
    236         nc_type type, int64_t nelems, const double *value); 
    237 extern int 
    238 ncmpi_get_att_double(int ncid, int64_t varid, const char *name, double *tp); 
    239  
    240 extern int  
    241 ncmpi_inq_attid(int ncid, int64_t varid, const char *name, int64_t *attnump); 
    242  
    243 extern int  
    244 ncmpi_inq_atttype(int ncid, int64_t varid, const char *name, nc_type *datatypep); 
    245  
    246 extern int  
    247 ncmpi_inq_attlen(int ncid, int64_t varid, const char *name, int64_t *lenp); 
    248  
    249 extern int 
    250 ncmpi_inq_att(int ncid, int64_t varid, const char *name,  
    251         nc_type *datatypep, int64_t *lenp); 
    252  
    253 extern int 
    254 ncmpi_copy_att(int ncid_in, int64_t varid_in, const char *name,  
    255                 int64_t ncid_out, int64_t ovarid); 
    256  
    257 extern int 
    258 ncmpi_rename_att( int ncid, int64_t varid, const char *name, const char *newname); 
    259  
    260 extern int 
    261 ncmpi_del_att(int ncid, int64_t varid, const char *name); 
    262  
    263 extern int 
    264 ncmpi_inq_attname(int ncid, int64_t varid, int64_t attnum, char *name); 
     185ncmpii_elem_NC_attrarray(const NC_attrarray *ncap, int elem); 
     186 
     187extern int 
     188ncmpi_put_att_text(int ncid, int varid, const char *name, 
     189        MPI_Offset nelems, const char *value); 
     190 
     191extern int 
     192ncmpi_get_att_text(int ncid, int varid, const char *name, char *str); 
     193 
     194extern int 
     195ncmpi_put_att_schar(int ncid, int varid, const char *name, 
     196        nc_type type, MPI_Offset nelems, const signed char *value); 
     197 
     198extern int 
     199ncmpi_get_att_schar(int ncid, int varid, const char *name, signed char *tp); 
     200 
     201extern int 
     202ncmpi_put_att_uchar(int ncid, int varid, const char *name, 
     203        nc_type type, MPI_Offset nelems, const unsigned char *value); 
     204 
     205extern int 
     206ncmpi_get_att_uchar(int ncid, int varid, const char *name, unsigned char *tp); 
     207 
     208extern int 
     209ncmpi_put_att_short(int ncid, int varid, const char *name, 
     210        nc_type type, MPI_Offset nelems, const short *value); 
     211 
     212extern int 
     213ncmpi_get_att_short(int ncid, int varid, const char *name, short *tp); 
     214 
     215extern int 
     216ncmpi_put_att_int(int ncid, int varid, const char *name, 
     217        nc_type type, MPI_Offset nelems, const int *value); 
     218 
     219extern int 
     220ncmpi_get_att_int(int ncid, int varid, const char *name, int *tp); 
     221 
     222extern int 
     223ncmpi_put_att_long(int ncid, int varid, const char *name, 
     224        nc_type type, MPI_Offset nelems, const long *value); 
     225 
     226extern int 
     227ncmpi_get_att_long(int ncid, int varid, const char *name, long *tp); 
     228 
     229extern int 
     230ncmpi_put_att_float(int ncid, int varid, const char *name, 
     231        nc_type type, MPI_Offset nelems, const float *value); 
     232extern int 
     233ncmpi_get_att_float(int ncid, int varid, const char *name, float *tp); 
     234extern int 
     235ncmpi_put_att_double(int ncid, int varid, const char *name, 
     236        nc_type type, MPI_Offset nelems, const double *value); 
     237extern int 
     238ncmpi_get_att_double(int ncid, int varid, const char *name, double *tp); 
     239 
     240extern int  
     241ncmpi_inq_attid(int ncid, int varid, const char *name, int *attnump); 
     242 
     243extern int  
     244ncmpi_inq_atttype(int ncid, int varid, const char *name, nc_type *datatypep); 
     245 
     246extern int  
     247ncmpi_inq_attlen(int ncid, int varid, const char *name, MPI_Offset *lenp); 
     248 
     249extern int 
     250ncmpi_inq_att(int ncid, int varid, const char *name,  
     251        nc_type *datatypep, MPI_Offset *lenp); 
     252 
     253extern int 
     254ncmpi_copy_att(int ncid_in, int varid_in, const char *name,  
     255                int ncid_out, int ovarid); 
     256 
     257extern int 
     258ncmpi_rename_att( int ncid, int varid, const char *name, const char *newname); 
     259 
     260extern int 
     261ncmpi_del_att(int ncid, int varid, const char *name); 
     262 
     263extern int 
     264ncmpi_inq_attname(int ncid, int varid, int attnum, char *name); 
    265265/* End defined in attr.c */ 
    266266/* 
     
    268268 */ 
    269269typedef struct { 
    270         int64_t xsz;          /* xszof 1 element */ 
    271         int64_t *shape; /* compiled info: dim->size of each dim */ 
    272         int64_t *dsizes; /* compiled info: the right to left product of shape */ 
     270        MPI_Offset xsz;               /* xszof 1 element */ 
     271        MPI_Offset *shape; /* compiled info: dim->size of each dim */ 
     272        MPI_Offset *dsizes; /* compiled info: the right to left product of shape */ 
    273273        /* below gets xdr'd */ 
    274274        NC_string *name; 
    275275        /* next two: formerly NC_iarray *assoc */ /* user definition */ 
    276         int64_t ndims;        /* assoc->count */ 
    277         int64_t *dimids;      /* assoc->value */ 
     276        size_t ndims; /* assoc->count */ 
     277        int *dimids;  /* assoc->value */ 
    278278        NC_attrarray attrs; 
    279279        nc_type type;           /* the discriminant */ 
    280         int64_t len;          /* the total length originally allocated */ 
    281         int64_t begin; 
     280        MPI_Offset len;               /* the total length originally allocated */ 
     281        MPI_Offset begin; 
    282282} NC_var; 
    283283 
    284284typedef struct NC_vararray { 
    285         int64_t nalloc;               /* number allocated >= nelems */ 
     285        MPI_Offset nalloc;            /* number allocated >= nelems */ 
    286286        /* below gets xdr'd */ 
    287287        /* NCtype type = NC_VARIABLE */ 
    288         int64_t nelems;               /* length of the array */ 
     288        MPI_Offset nelems;            /* length of the array */ 
    289289        NC_var **value; 
    290290} NC_vararray; 
     
    298298ncmpii_new_x_NC_var( 
    299299        NC_string *strp, 
    300         int64_t ndims 
     300        size_t ndims 
    301301        ); 
    302302 
     
    319319 
    320320extern int 
    321 ncmpii_NC_check_vlen(NC_var *varp, int64_t vlen_max); 
     321ncmpii_NC_check_vlen(NC_var *varp, MPI_Offset vlen_max); 
    322322 
    323323extern NC_var * 
    324 ncmpii_NC_lookupvar(NC *ncp, int64_t varid); 
     324ncmpii_NC_lookupvar(NC *ncp, int varid); 
    325325 
    326326extern int 
    327327ncmpi_def_var( int ncid, const char *name, nc_type type, 
    328               int64_t ndims, const int64_t *dimidsp, int64_t *varidp); 
    329  
    330 extern int 
    331 ncmpi_rename_var(int ncid, int64_t varid, const char *newname); 
    332  
    333 extern int 
    334 ncmpi_inq_var(int ncid, int64_t varid, char *name, nc_type *typep,  
    335                 int64_t *ndimsp, int64_t *dimids, int64_t *nattsp); 
    336  
    337 extern int 
    338 ncmpi_inq_varid(int ncid, const char *name, int64_t *varid_ptr); 
    339  
    340 extern int  
    341 ncmpi_inq_varname(int ncid, int64_t varid, char *name); 
    342  
    343 extern int  
    344 ncmpi_inq_vartype(int ncid, int64_t varid, nc_type *typep); 
    345  
    346 extern int  
    347 ncmpi_inq_varndims(int ncid, int64_t varid, int64_t *ndimsp); 
    348  
    349 extern int  
    350 ncmpi_inq_vardimid(int ncid, int64_t varid, int64_t *dimids); 
    351  
    352 extern int  
    353 ncmpi_inq_varnatts(int ncid, int64_t varid, int64_t *nattsp); 
    354  
    355 extern int 
    356 ncmpi_rename_var(int ncid, int64_t varid, const char *newname); 
     328              int ndims, const int *dimidsp, int *varidp); 
     329 
     330extern int 
     331ncmpi_rename_var(int ncid, int varid, const char *newname); 
     332 
     333extern int 
     334ncmpi_inq_var(int ncid, int varid, char *name, nc_type *typep,  
     335                int *ndimsp, int *dimids, int *nattsp); 
     336 
     337extern int 
     338ncmpi_inq_varid(int ncid, const char *name, int *varid_ptr); 
     339 
     340extern int  
     341ncmpi_inq_varname(int ncid, int varid, char *name); 
     342 
     343extern int  
     344ncmpi_inq_vartype(int ncid, int varid, nc_type *typep); 
     345 
     346extern int  
     347ncmpi_inq_varndims(int ncid, int varid, int *ndimsp); 
     348 
     349extern int  
     350ncmpi_inq_vardimid(int ncid, int varid, int *dimids); 
     351 
     352extern int  
     353ncmpi_inq_varnatts(int ncid, int varid, int *nattsp); 
     354 
     355extern int 
     356ncmpi_rename_var(int ncid, int varid, const char *newname); 
    357357/* End defined in var.c */ 
    358358 
     
    377377        int flags; 
    378378        ncio *nciop; 
    379         int64_t chunk;        /* largest extent this layer will request from ncio->get() */ 
    380         int64_t xsz;  /* external size of this header, <= var[0].begin */ 
    381         int64_t begin_var; /* position of the first (non-record) var */ 
    382         int64_t begin_rec; /* position of the first 'record' */ 
     379        MPI_Offset chunk;     /* largest extent this layer will request from ncio->get() */ 
     380        MPI_Offset xsz;       /* external size of this header, <= var[0].begin */ 
     381        MPI_Offset begin_var; /* position of the first (non-record) var */ 
     382        MPI_Offset begin_rec; /* position of the first 'record' */ 
    383383        /* don't constrain maximu sinze of record unnecessarily */ 
    384         int64_t recsize;      /* length of 'record' */         
     384        MPI_Offset recsize;   /* length of 'record' */         
    385385        /* below gets xdr'd */ 
    386         int64_t numrecs; /* number of 'records' allocated */ 
     386        MPI_Offset numrecs; /* number of 'records' allocated */ 
    387387        NC_dimarray dims; 
    388388        NC_attrarray attrs; 
     
    439439ncmpii_cktype(nc_type datatype); 
    440440 
    441 extern int64_
    442 ncmpix_howmany(nc_type type, int64_t xbufsize); 
     441extern MPI_Offse
     442ncmpix_howmany(nc_type type, MPI_Offset xbufsize); 
    443443 
    444444extern int 
     
    470470 
    471471extern int 
    472 ncmpi_inq(int ncid, int64_t *ndimsp, int64_t *nvarsp, int64_t *nattsp, int64_t *xtendimp); 
    473  
    474 extern int  
    475 ncmpi_inq_ndims(int ncid, int64_t *ndimsp); 
    476  
    477 extern int  
    478 ncmpi_inq_nvars(int ncid, int64_t *nvarsp); 
    479  
    480 extern int  
    481 ncmpi_inq_natts(int ncid, int64_t *nattsp); 
    482  
    483 extern int  
    484 ncmpi_inq_unlimdim(int ncid, int64_t *xtendimp); 
     472ncmpi_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *xtendimp); 
     473 
     474extern int  
     475ncmpi_inq_ndims(int ncid, int *ndimsp); 
     476 
     477extern int  
     478ncmpi_inq_nvars(int ncid, int *nvarsp); 
     479 
     480extern int  
     481ncmpi_inq_natts(int ncid, int *nattsp); 
     482 
     483extern int  
     484ncmpi_inq_unlimdim(int ncid, int *xtendimp); 
    485485 
    486486extern int 
     
    491491 
    492492extern size_t 
    493 ncx_len_NC(const NC *ncp, int64_t sizeof_off_t); 
    494  
    495 extern int 
    496 ncx_put_NC(const NC *ncp, void **xpp, int64_t offset, int64_t extent); 
     493ncx_len_NC(const NC *ncp, MPI_Offset sizeof_off_t); 
     494 
     495extern int 
     496ncx_put_NC(const NC *ncp, void **xpp, MPI_Offset offset, MPI_Offset extent); 
    497497 
    498498extern int 
     
    505505 
    506506extern int 
    507 ncmpii_fill_NC_var(NC *ncp, const NC_var *varp, int64_t recno); 
    508  
    509 extern int 
    510 ncmpii_inq_rec(int ncid, int64_t *nrecvars, int64_t *recvarids, int64_t *recsizes); 
    511  
    512 extern int 
    513 ncmpii_get_rec(int ncid, int64_t recnum, void **datap); 
    514  
    515 extern int 
    516 ncmpii_put_rec(int ncid, int64_t recnum, void *const *datap); 
     507ncmpii_fill_NC_var(NC *ncp, const NC_var *varp, MPI_Offset recno); 
     508 
     509extern int 
     510ncmpii_inq_rec(int ncid, MPI_Offset *nrecvars, MPI_Offset *recvarids, MPI_Offset *recsizes); 
     511 
     512extern int 
     513ncmpii_get_rec(int ncid, MPI_Offset recnum, void **datap); 
     514 
     515extern int 
     516ncmpii_put_rec(int ncid, MPI_Offset recnum, void *const *datap); 
    517517#endif 
    518518 
     
    522522typedef struct bufferinfo { 
    523523  ncio *nciop;           
    524   int64_t offset;     /* current read/write offset in the file */ 
     524  MPI_Offset offset;  /* current read/write offset in the file */ 
    525525  int version;          /* either 1 for normal netcdf or  
    526526                           2 for 8-byte offset version */ 
    527527  void *base;           /* beginning of read/write buffer */ 
    528528  void *pos;            /* current position in buffer */ 
    529   int64_t size;               /* size of the buffer */ 
    530   int64_t index;              /* index of current position in buffer */ 
     529  MPI_Offset size;            /* size of the buffer */ 
     530  MPI_Offset index;           /* index of current position in buffer */ 
    531531} bufferinfo;   
    532532 
    533 extern int64_t  
     533extern MPI_Offset  
    534534ncmpix_len_nctype(nc_type type); 
    535535 
     
    539539#endif 
    540540 
    541 extern int64_
    542 ncmpii_hdr_len_NC(const NC *ncp, int64_t sizeof_off_t); 
     541extern MPI_Offse
     542ncmpii_hdr_len_NC(const NC *ncp, MPI_Offset sizeof_off_t); 
    543543 
    544544extern int 
     
    549549 
    550550extern int 
    551 ncmpii_NC_computeshapes(NC *ncp, int sizeof_t); 
     551ncmpii_NC_computeshapes(NC *ncp); 
    552552 
    553553/* end defined in header.c */ 
     
    565565 
    566566extern int 
    567 ncmpiio_move(ncio *const nciop, int64_t to, int64_t from, int64_t nbytes); 
     567ncmpiio_move(ncio *const nciop, MPI_Offset to, MPI_Offset from, MPI_Offset nbytes); 
    568568 
    569569extern int 
     
    586586 
    587587extern int 
    588 ncmpii_put_att(int ncid, int64_t varid, const char *name, nc_type datatype, 
    589         int64_t len, const void *value); 
    590  
    591 extern int 
    592 ncmpii_get_att(int ncid, int64_t varid, const char *name, void *value); 
    593  
    594 extern int 
    595 ncmpii_put_var1(int ncid, int64_t varid, const int64_t *index, const void *value); 
    596  
    597 extern int 
    598 ncmpii_get_var1(int ncid, int64_t varid, const int64_t *index, void *value); 
    599  
    600 extern int 
    601 ncmpii_put_vara(int ncid, int64_t varid, 
    602          const int64_t *start, const int64_t *count, const void *value); 
    603  
    604 extern int 
    605 ncmpii_get_vara(int ncid, int64_t varid, 
    606          const int64_t *start, const int64_t *count, void *value); 
    607  
    608 extern int 
    609 ncmpii_put_vars(int ncid, int64_t varid, 
    610          const int64_t *start, const int64_t *count, const ptrdiff_t *stride, 
     588ncmpii_put_att(int ncid, int varid, const char *name, nc_type datatype, 
     589        MPI_Offset len, const void *value); 
     590 
     591extern int 
     592ncmpii_get_att(int ncid, int varid, const char *name, void *value); 
     593 
     594extern int 
     595ncmpii_put_var1(int ncid, int varid, const MPI_Offset *index, const void *value); 
     596 
     597extern int 
     598ncmpii_get_var1(int ncid, int varid, const MPI_Offset *index, void *value); 
     599 
     600extern int 
     601ncmpii_put_vara(int ncid, int varid, 
     602         const MPI_Offset *start, const MPI_Offset *count, const void *value); 
     603 
     604extern int 
     605ncmpii_get_vara(int ncid, int varid, 
     606         const MPI_Offset *start, const MPI_Offset *count, void *value); 
     607 
     608extern int 
     609ncmpii_put_vars(int ncid, int varid, 
     610         const MPI_Offset *start, const MPI_Offset *count, const ptrdiff_t *stride, 
    611611         const void * value); 
    612612 
    613613extern int 
    614 ncmpii_get_vars(int ncid, int64_t varid, 
    615          const int64_t *start, const int64_t *count, const ptrdiff_t *stride, 
     614ncmpii_get_vars(int ncid, int varid, 
     615         const MPI_Offset *start, const MPI_Offset *count, const ptrdiff_t *stride, 
    616616         void * value); 
    617617 
    618618extern int 
    619 ncmpii_put_varm(int ncid, int64_t varid, 
    620          const int64_t *start, const int64_t *count, const ptrdiff_t *stride, 
     619ncmpii_put_varm(int ncid, int varid, 
     620         const MPI_Offset *start, const MPI_Offset *count, const ptrdiff_t *stride, 
    621621         const ptrdiff_t * map, const void *value); 
    622622 
    623623extern int 
    624 ncmpii_get_varm(int ncid, int64_t varid, 
    625          const int64_t *start, const int64_t *count, const ptrdiff_t *stride, 
     624ncmpii_get_varm(int ncid, int varid, 
     625         const MPI_Offset *start, const MPI_Offset *count, const ptrdiff_t *stride, 
    626626         const ptrdiff_t * map, void *value); 
    627627 
  • trunk/CDF3/src/lib/ncio.h

    r613 r625  
    99 
    1010#include <stddef.h>     /* size_t */ 
    11 #include <sys/types.h>  /* int64_t */ 
     11#include <sys/types.h>  /* MPI_Offset */ 
    1212#include "pnetcdf.h" 
    1313 
     
    5050         */ 
    5151typedef int ncmpiio_relfunc(ncio *const nciop, 
    52                  int64_t offset, int rflags); 
     52                 MPI_Offset offset, int rflags); 
    5353 
    5454        /* 
     
    6565         * Only reasonable flag value is RGN_NOLOCK. 
    6666         */ 
    67 typedef int ncmpiio_movefunc(ncio *const nciop, int64_t to, int64_t from, 
     67typedef int ncmpiio_movefunc(ncio *const nciop, MPI_Offset to, MPI_Offset from, 
    6868                        size_t nbytes, int rflags); 
    6969 
  • trunk/CDF3/src/lib/ncmpidtype.c

    r613 r625  
    185185 
    186186static int ncmpii_darray_get_totalblks(int rank, 
    187                                 int64_t ndims, 
     187                                MPI_Offset ndims, 
    188188                                int array_of_gsizes[], 
    189189                                int array_of_distribs[], 
     
    251251                        MPI_Datatype *ptype,  
    252252                        int *el_size, 
    253                         int64_t *nelems,  
     253                        MPI_Offset *nelems,  
    254254                        int *isderived, 
    255255                        int *iscontig_of_ptypes) 
    256256{ 
    257257  int i; 
    258   int64_t tmpnelems, total_blocks; 
     258  MPI_Offset tmpnelems, total_blocks; 
    259259  int tmpel_size; 
    260260  MPI_Datatype tmpptype; 
     
    265265  void *arraybuf; 
    266266  int memsz; 
    267   int64_t count; 
    268   int64_t ndims; 
     267  MPI_Offset count; 
     268  int ndims; 
    269269  int status = NC_NOERR; 
    270270 
     
    494494 
    495495int ncmpii_data_repack(void *inbuf,  
    496                        int64_t incount, 
     496                       MPI_Offset incount, 
    497497                       MPI_Datatype intype,  
    498498                       void *outbuf, 
    499                        int64_t outcount, 
     499                       MPI_Offset outcount, 
    500500                       MPI_Datatype outtype)  
    501501{ 
  • trunk/CDF3/src/lib/ncmpidtype.h

    r613 r625  
    1212                        MPI_Datatype *ptype, 
    1313                        int *el_size, 
    14                         int64_t *nelems, 
     14                        MPI_Offset *nelems, 
    1515                        int *isderived, 
    1616                        int *iscontig_of_ptypes); 
    1717 
    1818int ncmpii_data_repack(void *inbuf, 
    19                        int64_t incount, 
     19                       MPI_Offset incount, 
    2020                       MPI_Datatype intype, 
    2121                       void *outbuf, 
    22                        int64_t outcount, 
     22                       MPI_Offset outcount, 
    2323                       MPI_Datatype outtype); 
    2424 
  • trunk/CDF3/src/lib/ncx.c

    r613 r625  
    9696 
    9797static void 
    98 swapn2b(void *dst, const void *src, int64_t nn) 
     98swapn2b(void *dst, const void *src, MPI_Offset nn) 
    9999{ 
    100100        char *op = dst; 
     
    134134 
    135135static void 
    136 swapn4b(void *dst, const void *src, int64_t nn) 
     136swapn4b(void *dst, const void *src, MPI_Offset nn) 
    137137{ 
    138138        char *op = dst; 
     
    191191# ifndef vax 
    192192static void 
    193 swapn8b(void *dst, const void *src, int64_t nn) 
     193swapn8b(void *dst, const void *src, MPI_Offset nn) 
    194194{ 
    195195        char *op = dst; 
     
    602602 
    603603int 
    604 ncmpix_get_long_long(const void *xp,int64_t *ip) 
     604ncmpix_get_long_long(const void *xp,MPI_Offset *ip) 
    605605{ 
    606606#if SIZEOF_IX_INT == SIZEOF_LONG && IX_INT_MAX == LONG_MAX 
     
    14031403#if SIZEOF_SIZE_T < X_SIZEOF_SIZE_T 
    14041404#error "x_size_t implementation" 
    1405 /* netcdf requires int64_t which can hold a values from 0 to 2^31 -1 */ 
    1406 #endif 
    1407  
    1408 int 
    1409 ncmpix_put_size_t1(void **xpp, const int64_t *ulp) 
     1405/* netcdf requires MPI_Offset which can hold a values from 0 to 2^31 -1 */ 
     1406#endif 
     1407 
     1408int 
     1409ncmpix_put_size_t1(void **xpp, const MPI_Offset *ulp) 
    14101410{ 
    14111411        /* similar to put_ix_int() */ 
     
    14241424/* 
    14251425int 
    1426 ncmpix_put_size_t(void **xpp, const int64_t *ulp) 
     1426ncmpix_put_size_t(void **xpp, const MPI_Offset *ulp) 
    14271427{ 
    14281428//      uchar *cp = (uchar *) *xpp; 
     
    14401440*/ 
    14411441int 
    1442 ncmpix_put_size_t(void **xpp, const int64_t *lp, int sizeof_t) 
     1442ncmpix_put_size_t(void **xpp, const MPI_Offset *lp, MPI_Offset sizeof_t) 
    14431443{ 
    14441444        /* similar to put_ix_int() */ 
     
    14771477 
    14781478int 
    1479 ncmpix_get_size_t(const void **xpp,  int64_t *lp, int sizeof_off_t) 
     1479ncmpix_get_size_t(const void **xpp,  MPI_Offset *lp, MPI_Offset sizeof_off_t) 
    14801480{ 
    14811481        /* similar to get_ix_int */ 
     
    15141514 */ 
    15151515int 
    1516 ncmpix_put_off_t(void **xpp, const int64_t *lp, int sizeof_off_t) 
     1516ncmpix_put_off_t(void **xpp, const MPI_Offset *lp, MPI_Offset sizeof_off_t) 
    15171517{ 
    15181518        /* similar to put_ix_int() */ 
     
    15451545/* see comments for ncmpix_put_off_t */ 
    15461546int 
    1547 ncmpix_get_off_t(const void **xpp, int64_t *lp, int sizeof_off_t) 
     1547ncmpix_get_off_t(const void **xpp, MPI_Offset *lp, MPI_Offset sizeof_off_t) 
    15481548{ 
    15491549        /* similar to get_ix_int() */ 
     
    15821582 
    15831583int 
    1584 ncmpix_getn_schar_schar(const void **xpp, int64_t nelems, schar *tp) 
     1584ncmpix_getn_schar_schar(const void **xpp, MPI_Offset nelems, schar *tp) 
    15851585{ 
    15861586                (void) memcpy(tp, *xpp, nelems); 
     
    15901590} 
    15911591int 
    1592 ncmpix_getn_schar_uchar(const void **xpp, int64_t nelems, uchar *tp) 
     1592ncmpix_getn_schar_uchar(const void **xpp, MPI_Offset nelems, uchar *tp) 
    15931593{ 
    15941594                (void) memcpy(tp, *xpp, nelems); 
     
    15981598} 
    15991599int 
    1600 ncmpix_getn_schar_short(const void **xpp, int64_t nelems, short *tp) 
     1600ncmpix_getn_schar_short(const void **xpp, MPI_Offset nelems, short *tp) 
    16011601{ 
    16021602        schar *xp = (schar *)(*xpp); 
     
    16121612 
    16131613int 
    1614 ncmpix_getn_schar_int(const void **xpp, int64_t nelems, int *tp) 
     1614ncmpix_getn_schar_int(const void **xpp, MPI_Offset nelems, int *tp) 
    16151615{ 
    16161616        schar *xp = (schar *)(*xpp); 
     
    16261626 
    16271627int 
    1628 ncmpix_getn_schar_long(const void **xpp, int64_t nelems, long *tp) 
     1628ncmpix_getn_schar_long(const void **xpp, MPI_Offset nelems, long *tp) 
    16291629{ 
    16301630        schar *xp = (schar *)(*xpp); 
     
    16401640 
    16411641int 
    1642 ncmpix_getn_schar_float(const void **xpp, int64_t nelems, float *tp) 
     1642ncmpix_getn_schar_float(const void **xpp, MPI_Offset nelems, float *tp) 
    16431643{ 
    16441644        schar *xp = (schar *)(*xpp); 
     
    16541654 
    16551655int 
    1656 ncmpix_getn_schar_double(const void **xpp, int64_t nelems, double *tp) 
     1656ncmpix_getn_schar_double(const void **xpp, MPI_Offset nelems, double *tp) 
    16571657{ 
    16581658        schar *xp = (schar *)(*xpp); 
     
    16691669 
    16701670int 
    1671 ncmpix_pad_getn_schar_schar(const void **xpp, int64_t nelems, schar *tp) 
    1672 { 
    1673                 int64_t rndup = nelems % X_ALIGN; 
     1671ncmpix_pad_getn_schar_schar(const void **xpp, MPI_Offset nelems, schar *tp) 
     1672{ 
     1673                MPI_Offset rndup = nelems % X_ALIGN; 
    16741674 
    16751675        if(rndup) 
     
    16831683} 
    16841684int 
    1685 ncmpix_pad_getn_schar_uchar(const void **xpp, int64_t nelems, uchar *tp) 
    1686 { 
    1687                 int64_t rndup = nelems % X_ALIGN; 
     1685ncmpix_pad_getn_schar_uchar(const void **xpp, MPI_Offset nelems, uchar *tp) 
     1686{ 
     1687                MPI_Offset rndup = nelems % X_ALIGN; 
    16881688 
    16891689        if(rndup) 
     
    16971697} 
    16981698int 
    1699 ncmpix_pad_getn_schar_short(const void **xpp, int64_t nelems, short *tp) 
    1700 { 
    1701         int64_t rndup = nelems % X_ALIGN; 
     1699ncmpix_pad_getn_schar_short(const void **xpp, MPI_Offset nelems, short *tp) 
     1700{ 
     1701        MPI_Offset rndup = nelems % X_ALIGN; 
    17021702        schar *xp = (schar *) *xpp; 
    17031703 
     
    17151715 
    17161716int 
    1717 ncmpix_pad_getn_schar_int(const void **xpp, int64_t nelems, int *tp) 
    1718 { 
    1719         int64_t rndup = nelems % X_ALIGN; 
     1717ncmpix_pad_getn_schar_int(const void **xpp, MPI_Offset nelems, int *tp) 
     1718{ 
     1719        MPI_Offset rndup = nelems % X_ALIGN; 
    17201720        schar *xp = (schar *) *xpp; 
    17211721 
     
    17331733 
    17341734int 
    1735 ncmpix_pad_getn_schar_long(const void **xpp, int64_t nelems, long *tp) 
    1736 { 
    1737         int64_t rndup = nelems % X_ALIGN; 
     1735ncmpix_pad_getn_schar_long(const void **xpp, MPI_Offset nelems, long *tp) 
     1736{ 
     1737        MPI_Offset rndup = nelems % X_ALIGN; 
    17381738        schar *xp = (schar *) *xpp; 
    17391739 
     
    17511751 
    17521752int 
    1753 ncmpix_pad_getn_schar_float(const void **xpp, int64_t nelems, float *tp) 
    1754 { 
    1755         int64_t rndup = nelems % X_ALIGN; 
     1753ncmpix_pad_getn_schar_float(const void **xpp, MPI_Offset nelems, float *tp) 
     1754{ 
     1755        MPI_Offset rndup = nelems % X_ALIGN; 
    17561756        schar *xp = (schar *) *xpp; 
    17571757 
     
    17691769 
    17701770int 
    1771 ncmpix_pad_getn_schar_double(const void **xpp, int64_t nelems, double *tp) 
    1772 { 
    1773         int64_t rndup = nelems % X_ALIGN; 
     1771ncmpix_pad_getn_schar_double(const void **xpp, MPI_Offset nelems, double *tp) 
     1772{ 
     1773        MPI_Offset rndup = nelems % X_ALIGN; 
    17741774        schar *xp = (schar *) *xpp; 
    17751775 
     
    17881788 
    17891789int 
    1790 ncmpix_putn_schar_schar(void **xpp, int64_t nelems, const schar *tp) 
     1790ncmpix_putn_schar_schar(void **xpp, MPI_Offset nelems, const schar *tp) 
    17911791{ 
    17921792                (void) memcpy(*xpp, tp, nelems); 
     
    17971797} 
    17981798int 
    1799 ncmpix_putn_schar_uchar(void **xpp, int64_t nelems, const uchar *tp) 
     1799ncmpix_putn_schar_uchar(void **xpp, MPI_Offset nelems, const uchar *tp) 
    18001800{ 
    18011801                (void) memcpy(*xpp, tp, nelems); 
     
    18061806} 
    18071807int 
    1808 ncmpix_putn_schar_short(void **xpp, int64_t nelems, const short *tp) 
     1808ncmpix_putn_schar_short(void **xpp, MPI_Offset nelems, const short *tp) 
    18091809{ 
    18101810        int status = ENOERR; 
     
    18231823 
    18241824int 
    1825 ncmpix_putn_schar_int(void **xpp, int64_t nelems, const int *tp) 
     1825ncmpix_putn_schar_int(void **xpp, MPI_Offset nelems, const int *tp) 
    18261826{ 
    18271827        int status = ENOERR; 
     
    18401840 
    18411841int 
    1842 ncmpix_putn_schar_long(void **xpp, int64_t nelems, const long *tp) 
     1842ncmpix_putn_schar_long(void **xpp, MPI_Offset nelems, const long *tp) 
    18431843{ 
    18441844        int status = ENOERR; 
     
    18571857 
    18581858int 
    1859 ncmpix_putn_schar_float(void **xpp, int64_t nelems, const float *tp) 
     1859ncmpix_putn_schar_float(void **xpp, MPI_Offset nelems, const float *tp) 
    18601860{ 
    18611861        int status = ENOERR; 
     
    18741874 
    18751875int 
    1876 ncmpix_putn_schar_double(void **xpp, int64_t nelems, const double *tp) 
     1876ncmpix_putn_schar_double(void **xpp, MPI_Offset nelems, const double *tp) 
    18771877{ 
    18781878        int status = ENOERR; 
     
    18921892 
    18931893int 
    1894 ncmpix_pad_putn_schar_schar(void **xpp, int64_t nelems, const schar *tp) 
    1895 { 
    1896                 int64_t rndup = nelems % X_ALIGN; 
     1894ncmpix_pad_putn_schar_schar(void **xpp, MPI_Offset nelems, const schar *tp) 
     1895{ 
     1896                MPI_Offset rndup = nelems % X_ALIGN; 
    18971897 
    18981898        if(rndup) 
     
    19121912} 
    19131913int 
    1914 ncmpix_pad_putn_schar_uchar(void **xpp, int64_t nelems, const uchar *tp) 
    1915 { 
    1916                 int64_t rndup = nelems % X_ALIGN; 
     1914ncmpix_pad_putn_schar_uchar(void **xpp, MPI_Offset nelems, const uchar *tp) 
     1915{ 
     1916                MPI_Offset rndup = nelems % X_ALIGN; 
    19171917 
    19181918        if(rndup) 
     
    19321932} 
    19331933int 
    1934 ncmpix_pad_putn_schar_short(void **xpp, int64_t nelems, const short *tp) 
    1935 { 
    1936         int status = ENOERR; 
    1937         int64_t rndup = nelems % X_ALIGN; 
     1934ncmpix_pad_putn_schar_short(void **xpp, MPI_Offset nelems, const short *tp) 
     1935{ 
     1936        int status = ENOERR; 
     1937        MPI_Offset rndup = nelems % X_ALIGN; 
    19381938        schar *xp = (schar *) *xpp; 
    19391939 
     
    19611961 
    19621962int 
    1963 ncmpix_pad_putn_schar_int(void **xpp, int64_t nelems, const int *tp) 
    1964 { 
    1965         int status = ENOERR; 
    1966         int64_t rndup = nelems % X_ALIGN; 
     1963ncmpix_pad_putn_schar_int(void **xpp, MPI_Offset nelems, const int *tp) 
     1964{ 
     1965        int status = ENOERR; 
     1966        MPI_Offset rndup = nelems % X_ALIGN; 
    19671967        schar *xp = (schar *) *xpp; 
    19681968 
     
    19901990 
    19911991int 
    1992 ncmpix_pad_putn_schar_long(void **xpp, int64_t nelems, const long *tp) 
    1993 { 
    1994         int status = ENOERR; 
    1995         int64_t rndup = nelems % X_ALIGN; 
     1992ncmpix_pad_putn_schar_long(void **xpp, MPI_Offset nelems, const long *tp) 
     1993{ 
     1994        int status = ENOERR; 
     1995        MPI_Offset rndup = nelems % X_ALIGN; 
    19961996        schar *xp = (schar *) *xpp; 
    19971997 
     
    20192019 
    20202020int 
    2021 ncmpix_pad_putn_schar_float(void **xpp, int64_t nelems, const float *tp) 
    2022 { 
    2023         int status = ENOERR; 
    2024         int64_t rndup = nelems % X_ALIGN; 
     2021ncmpix_pad_putn_schar_float(void **xpp, MPI_Offset nelems, const float *tp) 
     2022{ 
     2023        int status = ENOERR; 
     2024        MPI_Offset rndup = nelems % X_ALIGN; 
    20252025        schar *xp = (schar *) *xpp; 
    20262026 
     
    20482048 
    20492049int 
    2050 ncmpix_pad_putn_schar_double(void **xpp, int64_t nelems, const double *tp) 
    2051 { 
    2052         int status = ENOERR; 
    2053         int64_t rndup = nelems % X_ALIGN; 
     2050ncmpix_pad_putn_schar_double(void **xpp, MPI_Offset nelems, const double *tp) 
     2051{ 
     2052        int status = ENOERR; 
     2053        MPI_Offset rndup = nelems % X_ALIGN; 
    20542054        schar *xp = (schar *) *xpp; 
    20552055 
     
    20812081 
    20822082int 
    2083 ncmpix_getn_short_schar(const void **xpp, int64_t nelems, schar *tp) 
     2083ncmpix_getn_short_schar(const void **xpp, MPI_Offset nelems, schar *tp) 
    20842084{ 
    20852085        const char *xp = (const char *) *xpp; 
     
    20982098 
    20992099int 
    2100 ncmpix_getn_short_uchar(const void **xpp, int64_t nelems, uchar *tp) 
     2100ncmpix_getn_short_uchar(const void **xpp, MPI_Offset nelems, uchar *tp) 
    21012101{ 
    21022102        const char *xp = (const char *) *xpp; 
     
    21172117/* optimized version */ 
    21182118int 
    2119 ncmpix_getn_short_short(const void **xpp, int64_t nelems, short *tp) 
     2119ncmpix_getn_short_short(const void **xpp, MPI_Offset nelems, short *tp) 
    21202120{ 
    21212121# ifdef WORDS_BIGENDIAN 
     
    21292129#else 
    21302130int 
    2131 ncmpix_getn_short_short(const void **xpp, int64_t nelems, short *tp) 
     2131ncmpix_getn_short_short(const void **xpp, MPI_Offset nelems, short *tp) 
    21322132{ 
    21332133        const char *xp = (const char *) *xpp; 
     
    21472147#endif 
    21482148int 
    2149 ncmpix_getn_short_int(const void **xpp, int64_t nelems, int *tp) 
     2149ncmpix_getn_short_int(const void **xpp, MPI_Offset nelems, int *tp) 
    21502150{ 
    21512151        const char *xp = (const char *) *xpp; 
     
    21642164 
    21652165int 
    2166 ncmpix_getn_short_long(const void **xpp, int64_t nelems, long *tp) 
     2166ncmpix_getn_short_long(const void **xpp, MPI_Offset nelems, long *tp) 
    21672167{ 
    21682168        const char *xp = (const char *) *xpp; 
     
    21812181 
    21822182int 
    2183 ncmpix_getn_short_float(const void **xpp, int64_t nelems, float *tp) 
     2183ncmpix_getn_short_float(const void **xpp, MPI_Offset nelems, float *tp) 
    21842184{ 
    21852185        const char *xp = (const char *) *xpp; 
     
    21982198 
    21992199int 
    2200 ncmpix_getn_short_double(const void **xpp, int64_t nelems, double *tp) 
     2200ncmpix_getn_short_double(const void **xpp, MPI_Offset nelems, double *tp) 
    22012201{ 
    22022202        const char *xp = (const char *) *xpp; 
     
    22162216 
    22172217int 
    2218 ncmpix_pad_getn_short_schar(const void **xpp, int64_t nelems, schar *tp) 
    2219 { 
    2220         const int64_t rndup = nelems % 2; 
     2218ncmpix_pad_getn_short_schar(const void **xpp, MPI_Offset nelems, schar *tp) 
     2219{ 
     2220        const MPI_Offset rndup = nelems % 2; 
    22212221 
    22222222        const char *xp = (const char *) *xpp; 
     
    22382238 
    22392239int 
    2240 ncmpix_pad_getn_short_uchar(const void **xpp, int64_t nelems, uchar *tp) 
    2241 { 
    2242         const int64_t rndup = nelems % 2; 
     2240ncmpix_pad_getn_short_uchar(const void **xpp, MPI_Offset nelems, uchar *tp) 
     2241{ 
     2242        const MPI_Offset rndup = nelems % 2; 
    22432243 
    22442244        const char *xp = (const char *) *xpp; 
     
    22602260 
    22612261int 
    2262 ncmpix_pad_getn_short_short(const void **xpp, int64_t nelems, short *tp) 
    2263 { 
    2264         const int64_t rndup = nelems % 2; 
     2262ncmpix_pad_getn_short_short(const void **xpp, MPI_Offset nelems, short *tp) 
     2263{ 
     2264        const MPI_Offset rndup = nelems % 2; 
    22652265 
    22662266        const char *xp = (const char *) *xpp; 
     
    22822282 
    22832283int 
    2284 ncmpix_pad_getn_short_int(const void **xpp, int64_t nelems, int *tp) 
    2285 { 
    2286         const int64_t rndup = nelems % 2; 
     2284ncmpix_pad_getn_short_int(const void **xpp, MPI_Offset nelems, int *tp) 
     2285{ 
     2286        const MPI_Offset rndup = nelems % 2; 
    22872287 
    22882288        const char *xp = (const char *) *xpp; 
     
    23042304 
    23052305int 
    2306 ncmpix_pad_getn_short_long(const void **xpp, int64_t nelems, long *tp) 
    2307 { 
    2308         const int64_t rndup = nelems % 2; 
     2306ncmpix_pad_getn_short_long(const void **xpp, MPI_Offset nelems, long *tp) 
     2307{ 
     2308        const MPI_Offset rndup = nelems % 2; 
    23092309 
    23102310        const char *xp = (const char *) *xpp; 
     
    23262326 
    23272327int 
    2328 ncmpix_pad_getn_short_float(const void **xpp, int64_t nelems, float *tp) 
    2329 { 
    2330         const int64_t rndup = nelems % 2; 
     2328ncmpix_pad_getn_short_float(const void **xpp, MPI_Offset nelems, float *tp) 
     2329{ 
     2330        const MPI_Offset rndup = nelems % 2; 
    23312331 
    23322332        const char *xp = (const char *) *xpp; 
     
    23482348 
    23492349int 
    2350 ncmpix_pad_getn_short_double(const void **xpp, int64_t nelems, double *tp) 
    2351 { 
    2352         const int64_t rndup = nelems % 2; 
     2350ncmpix_pad_getn_short_double(const void **xpp, MPI_Offset nelems, double *tp) 
     2351{ 
     2352        const MPI_Offset rndup = nelems % 2; 
    23532353 
    23542354        const char *xp = (const char *) *xpp; 
     
    23712371 
    23722372int 
    2373 ncmpix_putn_short_schar(void **xpp, int64_t nelems, const schar *tp) 
     2373ncmpix_putn_short_schar(void **xpp, MPI_Offset nelems, const schar *tp) 
    23742374{ 
    23752375        char *xp = (char *) *xpp; 
     
    23882388 
    23892389int 
    2390 ncmpix_putn_short_uchar(void **xpp, int64_t nelems, const uchar *tp) 
     2390ncmpix_putn_short_uchar(void **xpp, MPI_Offset nelems, const uchar *tp) 
    23912391{ 
    23922392        char *xp = (char *) *xpp; 
     
    24072407/* optimized version */ 
    24082408int 
    2409 ncmpix_putn_short_short(void **xpp, int64_t nelems, const short *tp) 
     2409ncmpix_putn_short_short(void **xpp, MPI_Offset nelems, const short *tp) 
    24102410{ 
    24112411# ifdef WORDS_BIGENDIAN 
     
    24192419#else 
    24202420int 
    2421 ncmpix_putn_short_short(void **xpp, int64_t nelems, const short *tp) 
     2421ncmpix_putn_short_short(void **xpp, MPI_Offset nelems, const short *tp) 
    24222422{ 
    24232423        char *xp = (char *) *xpp; 
     
    24372437#endif 
    24382438int 
    2439 ncmpix_putn_short_int(void **xpp, int64_t nelems, const int *tp) 
     2439ncmpix_putn_short_int(void **xpp, MPI_Offset nelems, const int *tp) 
    24402440{ 
    24412441        char *xp = (char *) *xpp; 
     
    24542454 
    24552455int 
    2456 ncmpix_putn_short_long(void **xpp, int64_t nelems, const long *tp) 
     2456ncmpix_putn_short_long(void **xpp, MPI_Offset nelems, const long *tp) 
    24572457{ 
    24582458        char *xp = (char *) *xpp; 
     
    24712471 
    24722472int 
    2473 ncmpix_putn_short_float(void **xpp, int64_t nelems, const float *tp) 
     2473ncmpix_putn_short_float(void **xpp, MPI_Offset nelems, const float *tp) 
    24742474{ 
    24752475        char *xp = (char *) *xpp; 
     
    24882488 
    24892489int 
    2490 ncmpix_putn_short_double(void **xpp, int64_t nelems, const double *tp) 
     2490ncmpix_putn_short_double(void **xpp, MPI_Offset nelems, const double *tp) 
    24912491{ 
    24922492        char *xp = (char *) *xpp; 
     
    25062506 
    25072507int 
    2508 ncmpix_pad_putn_short_schar(void **xpp, int64_t nelems, const schar *tp) 
    2509 { 
    2510         const int64_t rndup = nelems % 2; 
     2508ncmpix_pad_putn_short_schar(void **xpp, MPI_Offset nelems, const schar *tp) 
     2509{ 
     2510        const MPI_Offset rndup = nelems % 2; 
    25112511 
    25122512        char *xp = (char *) *xpp; 
     
    25312531 
    25322532int 
    2533 ncmpix_pad_putn_short_uchar(void **xpp, int64_t nelems, const uchar *tp) 
    2534 { 
    2535         const int64_t rndup = nelems % 2; 
     2533ncmpix_pad_putn_short_uchar(void **xpp, MPI_Offset nelems, const uchar *tp) 
     2534{ 
     2535        const MPI_Offset rndup = nelems % 2; 
    25362536 
    25372537        char *xp = (char *) *xpp; 
     
    25562556 
    25572557int 
    2558 ncmpix_pad_putn_short_short(void **xpp, int64_t nelems, const short *tp) 
    2559 { 
    2560         const int64_t rndup = nelems % 2; 
     2558ncmpix_pad_putn_short_short(void **xpp, MPI_Offset nelems, const short *tp) 
     2559{ 
     2560        const MPI_Offset rndup = nelems % 2; 
    25612561 
    25622562        char *xp = (char *) *xpp; 
     
    25812581 
    25822582int 
    2583 ncmpix_pad_putn_short_int(void **xpp, int64_t nelems, const int *tp) 
    2584 { 
    2585         const int64_t rndup = nelems % 2; 
     2583ncmpix_pad_putn_short_int(void **xpp, MPI_Offset nelems, const int *tp) 
     2584{ 
     2585        const MPI_Offset rndup = nelems % 2; 
    25862586 
    25872587        char *xp = (char *) *xpp; 
     
    26062606 
    26072607int 
    2608 ncmpix_pad_putn_short_long(void **xpp, int64_t nelems, const long *tp) 
    2609 { 
    2610         const int64_t rndup = nelems % 2; 
     2608ncmpix_pad_putn_short_long(void **xpp, MPI_Offset nelems, const long *tp) 
     2609{ 
     2610        const MPI_Offset rndup = nelems % 2; 
    26112611 
    26122612        char *xp = (char *) *xpp; 
     
    26312631 
    26322632int 
    2633 ncmpix_pad_putn_short_float(void **xpp, int64_t nelems, const float *tp) 
    2634 { 
    2635         const int64_t rndup = nelems % 2; 
     2633ncmpix_pad_putn_short_float(void **xpp, MPI_Offset nelems, const float *tp) 
     2634{ 
     2635        const MPI_Offset rndup = nelems % 2; 
    26362636 
    26372637        char *xp = (char *) *xpp; 
     
    26562656 
    26572657int 
    2658 ncmpix_pad_putn_short_double(void **xpp, int64_t nelems, const double *tp) 
    2659 { 
    2660         const int64_t rndup = nelems % 2; 
     2658ncmpix_pad_putn_short_double(void **xpp, MPI_Offset nelems, const double *tp) 
     2659{ 
     2660        const MPI_Offset rndup = nelems % 2; 
    26612661 
    26622662        char *xp = (char *) *xpp; 
     
    26852685 
    26862686int 
    2687 ncmpix_getn_int_schar(const void **xpp, int64_t nelems, schar *tp) 
     2687ncmpix_getn_int_schar(const void **xpp, MPI_Offset nelems, schar *tp) 
    26882688{ 
    26892689        const char *xp = (const char *) *xpp; 
     
    27022702 
    27032703int 
    2704 ncmpix_getn_int_uchar(const void **xpp, int64_t nelems, uchar *tp) 
     2704ncmpix_getn_int_uchar(const void **xpp, MPI_Offset nelems, uchar *tp) 
    27052705{ 
    27062706        const char *xp = (const char *) *xpp; 
     
    27192719 
    27202720int 
    2721 ncmpix_getn_int_short(const void **xpp, int64_t nelems, short *tp) 
     2721ncmpix_getn_int_short(const void **xpp, MPI_Offset nelems, short *tp) 
    27222722{ 
    27232723        const char *xp = (const char *) *xpp; 
     
    27382738/* optimized version */ 
    27392739int 
    2740 ncmpix_getn_int_int(const void **xpp, int64_t nelems, int *tp) 
     2740ncmpix_getn_int_int(const void **xpp, MPI_Offset nelems, int *tp) 
    27412741{ 
    27422742# ifdef WORDS_BIGENDIAN 
     
    27502750#else 
    27512751int 
    2752 ncmpix_getn_int_int(const void **xpp, int64_t nelems, int *tp) 
     2752ncmpix_getn_int_int(const void **xpp, MPI_Offset nelems, int *tp) 
    27532753{ 
    27542754        const char *xp = (const char *) *xpp; 
     
    27702770/* optimized version */ 
    27712771int 
    2772 ncmpix_getn_int_long(const void **xpp, int64_t nelems, long *tp) 
     2772ncmpix_getn_int_long(const void **xpp, MPI_Offset nelems, long *tp) 
    27732773{ 
    27742774# ifdef WORDS_BIGENDIAN 
     
    27822782#else 
    27832783int 
    2784 ncmpix_getn_int_long(const void **xpp, int64_t nelems, long *tp) 
     2784ncmpix_getn_int_long(const void **xpp, MPI_Offset nelems, long *tp) 
    27852785{ 
    27862786        const char *xp = (const char *) *xpp; 
     
    28012801 
    28022802int 
    2803 ncmpix_getn_long_long(const void **xpp, int64_t nelems, int64_t *tp) 
     2803ncmpix_getn_long_long(const void **xpp, MPI_Offset nelems, MPI_Offset *tp) 
    28042804{ 
    28052805        const char *xp = (const char *) *xpp; 
     
    28192819 
    28202820int 
    2821 ncmpix_getn_int_float(const void **xpp, int64_t nelems, float *tp) 
     2821ncmpix_getn_int_float(const void **xpp, MPI_Offset nelems, float *tp) 
    28222822{ 
    28232823        const char *xp = (const char *) *xpp; 
     
    28362836 
    28372837int 
    2838 ncmpix_getn_int_double(const void **xpp, int64_t nelems, double *tp) 
     2838ncmpix_getn_int_double(const void **xpp, MPI_Offset nelems, double *tp) 
    28392839{ 
    28402840        const char *xp = (const char *) *xpp; 
     
    28542854 
    28552855int 
    2856 ncmpix_putn_int_schar(void **xpp, int64_t nelems, const schar *tp) 
     2856ncmpix_putn_int_schar(void **xpp, MPI_Offset nelems, const schar *tp) 
    28572857{ 
    28582858        char *xp = (char *) *xpp; 
     
    28712871 
    28722872int 
    2873 ncmpix_putn_int_uchar(void **xpp, int64_t nelems, const uchar *tp) 
     2873ncmpix_putn_int_uchar(void **xpp, MPI_Offset nelems, const uchar *tp) 
    28742874{ 
    28752875        char *xp = (char *) *xpp; 
     
    28882888 
    28892889int 
    2890 ncmpix_putn_int_short(void **xpp, int64_t nelems, const short *tp) 
     2890ncmpix_putn_int_short(void **xpp, MPI_Offset nelems, const short *tp) 
    28912891{ 
    28922892        char *xp = (char *) *xpp; 
     
    29072907/* optimized version */ 
    29082908int 
    2909 ncmpix_putn_int_int(void **xpp, int64_t nelems, const int *tp) 
     2909ncmpix_putn_int_int(void **xpp, MPI_Offset nelems, const int *tp) 
    29102910{ 
    29112911# ifdef WORDS_BIGENDIAN 
     
    29192919#else 
    29202920int 
    2921 ncmpix_putn_int_int(void **xpp, int64_t nelems, const int *tp) 
     2921ncmpix_putn_int_int(void **xpp, MPI_Offset nelems, const int *tp) 
    29222922{ 
    29232923        char *xp = (char *) *xpp; 
     
    29392939/* optimized version */ 
    29402940int 
    2941 ncmpix_putn_int_long(void **xpp, int64_t nelems, const long *tp) 
     2941ncmpix_putn_int_long(void **xpp, MPI_Offset nelems, const long *tp) 
    29422942{ 
    29432943# ifdef WORDS_BIGENDIAN 
     
    29512951#else 
    29522952int 
    2953 ncmpix_putn_int_long(void **xpp, int64_t nelems, const long *tp) 
     2953ncmpix_putn_int_long(void **xpp, MPI_Offset nelems, const long *tp) 
    29542954{ 
    29552955        char *xp = (char *) *xpp; 
     
    29692969#endif 
    29702970int 
    2971 ncmpix_putn_int_float(void **xpp, int64_t nelems, const float *tp) 
     2971ncmpix_putn_int_float(void **xpp, MPI_Offset nelems, const float *tp) 
    29722972{ 
    29732973        char *xp = (char *) *xpp; 
     
    29862986 
    29872987int 
    2988 ncmpix_putn_int_double(void **xpp, int64_t nelems, const double *tp) 
     2988ncmpix_putn_int_double(void **xpp, MPI_Offset nelems, const double *tp) 
    29892989{ 
    29902990        char *xp = (char *) *xpp; 
     
    30073007 
    30083008int 
    3009 ncmpix_getn_float_schar(const void **xpp, int64_t nelems, schar *tp) 
     3009ncmpix_getn_float_schar(const void **xpp, MPI_Offset nelems, schar *tp) 
    30103010{ 
    30113011        const char *xp = (const char *) *xpp; 
     
    30243024 
    30253025int 
    3026 ncmpix_getn_float_uchar(const void **xpp, int64_t nelems, uchar *tp) 
     3026ncmpix_getn_float_uchar(const void **xpp, MPI_Offset nelems, uchar *tp) 
    30273027{ 
    30283028        const char *xp = (const char *) *xpp; 
     
    30413041 
    30423042int 
    3043 ncmpix_getn_float_short(const void **xpp, int64_t nelems, short *tp) 
     3043ncmpix_getn_float_short(const void **xpp, MPI_Offset nelems, short *tp) 
    30443044{ 
    30453045        const char *xp = (const char *) *xpp; 
     
    30583058 
    30593059int 
    3060 ncmpix_getn_float_int(const void **xpp, int64_t nelems, int *tp) 
     3060ncmpix_getn_float_int(const void **xpp, MPI_Offset nelems, int *tp) 
    30613061{ 
    30623062        const char *xp = (const char *) *xpp; 
     
    30753075 
    30763076int 
    3077 ncmpix_getn_float_long(const void **xpp, int64_t nelems, long *tp) 
     3077ncmpix_getn_float_long(const void **xpp, MPI_Offset nelems, long *tp) 
    30783078{ 
    30793079        const char *xp = (const char *) *xpp; 
     
    30943094/* optimized version */ 
    30953095int 
    3096 ncmpix_getn_float_float(const void **xpp, int64_t nelems, float *tp) 
     3096ncmpix_getn_float_float(const void **xpp, MPI_Offset nelems, float *tp) 
    30973097{ 
    30983098# ifdef WORDS_BIGENDIAN 
     
    31063106#elif vax 
    31073107int 
    3108 ncmpix_getn_float_float(const void **xpp, int64_t nfloats, float *ip) 
     3108ncmpix_getn_float_float(const void **xpp, MPI_Offset nfloats, float *ip) 
    31093109{ 
    31103110        float *const end = ip + nfloats; 
     
    31663166#else 
    31673167int 
    3168 ncmpix_getn_float_float(const void **xpp, int64_t nelems, float *tp) 
     3168ncmpix_getn_float_float(const void **xpp, MPI_Offset nelems, float *tp) 
    31693169{ 
    31703170        const char *xp = *xpp; 
     
    31843184#endif 
    31853185int 
    3186 ncmpix_getn_float_double(const void **xpp, int64_t nelems, double *tp) 
     3186ncmpix_getn_float_double(const void **xpp, MPI_Offset nelems, double *tp) 
    31873187{ 
    31883188        const char *xp = (const char *) *xpp; 
     
    32023202 
    32033203int 
    3204 ncmpix_putn_float_schar(void **xpp, int64_t nelems, const schar *tp) 
     3204ncmpix_putn_float_schar(void **xpp, MPI_Offset nelems, const schar *tp) 
    32053205{ 
    32063206        char *xp = (char *) *xpp; 
     
    32193219 
    32203220int 
    3221 ncmpix_putn_float_uchar(void **xpp, int64_t nelems, const uchar *tp) 
     3221ncmpix_putn_float_uchar(void **xpp, MPI_Offset nelems, const uchar *tp) 
    32223222{ 
    32233223        char *xp = (char *) *xpp; 
     
    32363236 
    32373237int 
    3238 ncmpix_putn_float_short(void **xpp, int64_t nelems, const short *tp) 
     3238ncmpix_putn_float_short(void **xpp, MPI_Offset nelems, const short *tp) 
    32393239{ 
    32403240        char *xp = (char *) *xpp; 
     
    32533253 
    32543254int 
    3255 ncmpix_putn_float_int(void **xpp, int64_t nelems, const int *tp) 
     3255ncmpix_putn_float_int(void **xpp, MPI_Offset nelems, const int *tp) 
    32563256{ 
    32573257        char *xp = (char *) *xpp; 
     
    32703270 
    32713271int 
    3272 ncmpix_putn_float_long(void **xpp, int64_t nelems, const long *tp) 
     3272ncmpix_putn_float_long(void **xpp, MPI_Offset nelems, const long *tp) 
    32733273{ 
    32743274        char *xp = (char *) *xpp; 
     
    32893289/* optimized version */ 
    32903290int 
    3291 ncmpix_putn_float_float(void **xpp, int64_t nelems, const float *tp) 
     3291ncmpix_putn_float_float(void **xpp, MPI_Offset nelems, const float *tp) 
    32923292{ 
    32933293# ifdef WORDS_BIGENDIAN 
     
    33013301#elif vax 
    33023302int 
    3303 ncmpix_putn_float_float(void **xpp, int64_t nfloats, const float *ip) 
     3303ncmpix_putn_float_float(void **xpp, MPI_Offset nfloats, const float *ip) 
    33043304{ 
    33053305        const float *const end = ip + nfloats; 
     
    33603360#else 
    33613361int 
    3362 ncmpix_putn_float_float(void **xpp, int64_t nelems, const float *tp) 
     3362ncmpix_putn_float_float(void **xpp, MPI_Offset nelems, const float *tp) 
    33633363{ 
    33643364        char *xp = *xpp; 
     
    33783378#endif 
    33793379int 
    3380 ncmpix_putn_float_double(void **xpp, int64_t nelems, const double *tp) 
     3380ncmpix_putn_float_double(void **xpp, MPI_Offset nelems, const double *tp) 
    33813381{ 
    33823382        char *xp = (char *) *xpp; 
     
    33993399 
    34003400int 
    3401 ncmpix_getn_double_schar(const void **xpp, int64_t nelems, schar *tp) 
     3401ncmpix_getn_double_schar(const void **xpp, MPI_Offset nelems, schar *tp) 
    34023402{ 
    34033403        const char *xp = (const char *) *xpp; 
     
    34163416 
    34173417int 
    3418 ncmpix_getn_double_uchar(const void **xpp, int64_t nelems, uchar *tp) 
     3418ncmpix_getn_double_uchar(const void **xpp, MPI_Offset nelems, uchar *tp) 
    34193419{ 
    34203420        const char *xp = (const char *) *xpp; 
     
    34333433 
    34343434int 
    3435 ncmpix_getn_double_short(const void **xpp, int64_t nelems, short *tp) 
     3435ncmpix_getn_double_short(const void **xpp, MPI_Offset nelems, short *tp) 
    34363436{ 
    34373437        const char *xp = (const char *) *xpp; 
     
    34503450 
    34513451int 
    3452 ncmpix_getn_double_int(const void **xpp, int64_t nelems, int *tp) 
     3452ncmpix_getn_double_int(const void **xpp, MPI_Offset nelems, int *tp) 
    34533453{ 
    34543454        const char *xp = (const char *) *xpp; 
     
    34673467 
    34683468int 
    3469 ncmpix_getn_double_long(const void **xpp, int64_t nelems, long *tp) 
     3469ncmpix_getn_double_long(const void **xpp, MPI_Offset nelems, long *tp) 
    34703470{ 
    34713471        const char *xp = (const char *) *xpp; 
     
    34843484 
    34853485int 
    3486 ncmpix_getn_double_float(const void **xpp, int64_t nelems, float *tp) 
     3486ncmpix_getn_double_float(const void **xpp, MPI_Offset nelems, float *tp) 
    34873487{ 
    34883488        const char *xp = (const char *) *xpp; 
     
    35033503/* optimized version */ 
    35043504int 
    3505 ncmpix_getn_double_double(const void **xpp, int64_t nelems, double *tp) 
     3505ncmpix_getn_double_double(const void **xpp, MPI_Offset nelems, double *tp) 
    35063506{ 
    35073507# ifdef WORDS_BIGENDIAN 
     
    35153515#elif vax 
    35163516int 
    3517 ncmpix_getn_double_double(const void **xpp, int64_t ndoubles, double *ip) 
     3517ncmpix_getn_double_double(const void **xpp, MPI_Offset ndoubles, double *ip) 
    35183518{ 
    35193519        double *const end = ip + ndoubles; 
     
    35723572#else 
    35733573int 
    3574 ncmpix_getn_double_double(const void **xpp, int64_t nelems, double *tp) 
     3574ncmpix_getn_double_double(const void **xpp, MPI_Offset nelems, double *tp) 
    35753575{ 
    35763576        const char *xp = *xpp; 
     
    35913591 
    35923592int 
    3593 ncmpix_putn_double_schar(void **xpp, int64_t nelems, const schar *tp) 
     3593ncmpix_putn_double_schar(void **xpp, MPI_Offset nelems, const schar *tp) 
    35943594{ 
    35953595        char *xp = (char *) *xpp; 
     
    36083608 
    36093609int 
    3610 ncmpix_putn_double_uchar(void **xpp, int64_t nelems, const uchar *tp) 
     3610ncmpix_putn_double_uchar(void **xpp, MPI_Offset nelems, const uchar *tp) 
    36113611{ 
    36123612        char *xp = (char *) *xpp; 
     
    36253625 
    36263626int 
    3627 ncmpix_putn_double_short(void **xpp, int64_t nelems, const short *tp) 
     3627ncmpix_putn_double_short(void **xpp, MPI_Offset nelems, const short *tp) 
    36283628{ 
    36293629        char *xp = (char *) *xpp; 
     
    36423642 
    36433643int 
    3644 ncmpix_putn_double_int(void **xpp, int64_t nelems, const int *tp) 
     3644ncmpix_putn_double_int(void **xpp, MPI_Offset nelems, const int *tp) 
    36453645{ 
    36463646        char *xp = (char *) *xpp; 
     
    36593659 
    36603660int 
    3661 ncmpix_putn_double_long(void **xpp, int64_t nelems, const long *tp) 
     3661ncmpix_putn_double_long(void **xpp, MPI_Offset nelems, const long *tp) 
    36623662{ 
    36633663        char *xp = (char *) *xpp; 
     
    36763676 
    36773677int 
    3678 ncmpix_putn_double_float(void **xpp, int64_t nelems, const float *tp) 
     3678ncmpix_putn_double_float(void **xpp, MPI_Offset nelems, const float *tp) 
    36793679{ 
    36803680        char *xp = (char *) *xpp; 
     
    36953695/* optimized version */ 
    36963696int 
    3697 ncmpix_putn_double_double(void **xpp, int64_t nelems, const double *tp) 
     3697ncmpix_putn_double_double(void **xpp, MPI_Offset nelems, const double *tp) 
    36983698{ 
    36993699# ifdef WORDS_BIGENDIAN 
     
    37073707#elif vax 
    37083708int 
    3709 ncmpix_putn_double_double(void **xpp, int64_t ndoubles, const double *ip) 
     3709ncmpix_putn_double_double(void **xpp, MPI_Offset ndoubles, const double *ip) 
    37103710{ 
    37113711        const double *const end = ip + ndoubles; 
     
    37823782#else 
    37833783int 
    3784 ncmpix_putn_double_double(void **xpp, int64_t nelems, const double *tp) 
     3784ncmpix_putn_double_double(void **xpp, MPI_Offset nelems, const double *tp) 
    37853785{ 
    37863786        char *xp = *xpp; 
     
    38083808 
    38093809int 
    3810 ncmpix_getn_text(const void **xpp, int64_t nelems, char *tp) 
     3810ncmpix_getn_text(const void **xpp, MPI_Offset nelems, char *tp) 
    38113811{ 
    38123812        (void) memcpy(tp, *xpp, nelems); 
     
    38173817 
    38183818int 
    3819 ncmpix_pad_getn_text(const void **xpp, int64_t nelems, char *tp) 
    3820 { 
    3821         int64_t rndup = nelems % X_ALIGN; 
     3819ncmpix_pad_getn_text(const void **xpp, MPI_Offset nelems, char *tp) 
     3820{ 
     3821        MPI_Offset rndup = nelems % X_ALIGN; 
    38223822 
    38233823        if(rndup) 
     
    38323832 
    38333833int 
    3834 ncmpix_putn_text(void **xpp, int64_t nelems, const char *tp) 
     3834ncmpix_putn_text(void **xpp, MPI_Offset nelems, const char *tp) 
    38353835{ 
    38363836        (void) memcpy(*xpp, tp, nelems); 
     
    38423842 
    38433843int 
    3844 ncmpix_pad_putn_text(void **xpp, int64_t nelems, const char *tp) 
    3845 { 
    3846         int64_t rndup = nelems % X_ALIGN; 
     3844ncmpix_pad_putn_text(void **xpp, MPI_Offset nelems, const char *tp) 
     3845{ 
     3846        MPI_Offset rndup = nelems % X_ALIGN; 
    38473847 
    38483848        if(rndup) 
     
    38663866 
    38673867int 
    3868 ncmpix_getn_void(const void **xpp, int64_t nelems, void *tp) 
     3868ncmpix_getn_void(const void **xpp, MPI_Offset nelems, void *tp) 
    38693869{ 
    38703870        (void) memcpy(tp, *xpp, nelems); 
     
    38753875 
    38763876int 
    3877 ncmpix_pad_getn_void(const void **xpp, int64_t nelems, void *tp) 
    3878 { 
    3879         int64_t rndup = nelems % X_ALIGN; 
     3877ncmpix_pad_getn_void(const void **xpp, MPI_Offset nelems, void *tp) 
     3878{ 
     3879        MPI_Offset rndup = nelems % X_ALIGN; 
    38803880 
    38813881        if(rndup) 
     
    38903890 
    38913891int 
    3892 ncmpix_putn_void(void **xpp, int64_t nelems, const void *tp) 
     3892ncmpix_putn_void(void **xpp, MPI_Offset nelems, const void *tp) 
    38933893{ 
    38943894        (void) memcpy(*xpp, tp, nelems); 
     
    39003900 
    39013901int 
    3902 ncmpix_pad_putn_void(void **xpp, int64_t nelems, const void *tp) 
    3903 { 
    3904         int64_t rndup = nelems % X_ALIGN; 
     3902ncmpix_pad_putn_void(void **xpp, MPI_Offset nelems, const void *tp) 
     3903{ 
     3904        MPI_Offset rndup = nelems % X_ALIGN; 
    39053905 
    39063906        if(rndup) 
  • trunk/CDF3/src/lib/ncx.h

    r622 r625  
    364364/* ncx_get_int_size_t */ 
    365365extern int 
    366 ncmpix_get_size_t(const void **xpp, int64_t *ulp, int sizeof_off_t); 
     366ncmpix_get_size_t(const void **xpp, MPI_Offset *ulp, MPI_Offset sizeof_off_t); 
    367367/* ncx_get_int_off_t */ 
    368368extern int 
    369 ncmpix_get_off_t(const void **xpp, int64_t *lp, int sizeof_off_t); 
     369ncmpix_get_off_t(const void **xpp, MPI_Offset *lp, MPI_Offset sizeof_off_t); 
    370370 
    371371/* ncx_put_int_size_t */ 
    372372extern int 
    373 ncmpix_put_size_t(void **xpp, const int64_t *ulp, int sizeof_off_t); 
     373ncmpix_put_size_t(void **xpp, const MPI_Offset *ulp, MPI_Offset sizeof_off_t); 
    374374/* ncx_put_int_off_t */ 
    375375extern int 
    376 ncmpix_put_off_t(void **xpp, const int64_t *lp, int sizeof_off_t); 
     376ncmpix_put_off_t(void **xpp, const MPI_Offset *lp, MPI_Offset sizeof_off_t); 
    377377 
    378378 
     
    418418 
    419419extern int 
    420 ncmpix_getn_schar_schar(const void **xpp, int64_t nelems, schar *ip); 
    421 extern int 
    422 ncmpix_getn_schar_uchar(const void **xpp, int64_t nelems, uchar *ip); 
    423 extern int 
    424 ncmpix_getn_schar_short(const void **xpp, int64_t nelems, short *ip); 
    425 extern int 
    426 ncmpix_getn_schar_int(const void **xpp, int64_t nelems, int *ip); 
    427 extern int 
    428 ncmpix_getn_schar_long(const void **xpp, int64_t nelems, long *ip); 
    429 extern int 
    430 ncmpix_getn_schar_float(const void **xpp, int64_t nelems, float *ip); 
    431 extern int 
    432 ncmpix_getn_schar_double(const void **xpp, int64_t nelems, double *ip); 
    433  
    434 extern int 
    435 ncmpix_pad_getn_schar_schar(const void **xpp, int64_t nelems, schar *ip); 
    436 extern int 
    437 ncmpix_pad_getn_schar_uchar(const void **xpp, int64_t nelems, uchar *ip); 
    438 extern int 
    439 ncmpix_pad_getn_schar_short(const void **xpp, int64_t nelems, short *ip); 
    440 extern int 
    441 ncmpix_pad_getn_schar_int(const void **xpp, int64_t nelems, int *ip); 
    442 extern int 
    443 ncmpix_pad_getn_schar_long(const void **xpp, int64_t nelems, long *ip); 
    444 extern int 
    445 ncmpix_pad_getn_schar_float(const void **xpp, int64_t nelems, float *ip); 
    446 extern int 
    447 ncmpix_pad_getn_schar_double(const void **xpp, int64_t nelems, double *ip); 
    448  
    449 extern int 
    450 ncmpix_putn_schar_schar(void **xpp, int64_t nelems, const schar *ip); 
    451 extern int 
    452 ncmpix_putn_schar_uchar(void **xpp, int64_t nelems, const uchar *ip); 
    453 extern int 
    454 ncmpix_putn_schar_short(void **xpp, int64_t nelems, const short *ip); 
    455 extern int 
    456 ncmpix_putn_schar_int(void **xpp, int64_t nelems, const int *ip); 
    457 extern int 
    458 ncmpix_putn_schar_long(void **xpp, int64_t nelems, const long *ip); 
    459 extern int 
    460 ncmpix_putn_schar_float(void **xpp, int64_t nelems, const float *ip); 
    461 extern int 
    462 ncmpix_putn_schar_double(void **xpp, int64_t nelems, const double *ip); 
    463   
    464 extern int 
    465 ncmpix_pad_putn_schar_schar(void **xpp, int64_t nelems, const schar *ip); 
    466 extern int 
    467 ncmpix_pad_putn_schar_uchar(void **xpp, int64_t nelems, const uchar *ip); 
    468 extern int 
    469 ncmpix_pad_putn_schar_short(void **xpp, int64_t nelems, const short *ip); 
    470 extern int 
    471 ncmpix_pad_putn_schar_int(void **xpp, int64_t nelems, const int *ip); 
    472 extern int 
    473 ncmpix_pad_putn_schar_long(void **xpp, int64_t nelems, const long *ip); 
    474 extern int 
    475 ncmpix_pad_putn_schar_float(void **xpp, int64_t nelems, const float *ip); 
    476 extern int 
    477 ncmpix_pad_putn_schar_double(void **xpp, int64_t nelems, const double *ip); 
    478  
    479  
    480 extern int 
    481 ncmpix_getn_short_schar(const void **xpp, int64_t nelems, schar *ip); 
    482 extern int 
    483 ncmpix_getn_short_uchar(const void **xpp, int64_t nelems, uchar *ip); 
    484 extern int 
    485 ncmpix_getn_short_short(const void **xpp, int64_t nelems, short *ip); 
    486 extern int 
    487 ncmpix_getn_short_int(const void **xpp, int64_t nelems, int *ip); 
    488 extern int 
    489 ncmpix_getn_short_long(const void **xpp, int64_t nelems, long *ip); 
    490 extern int 
    491 ncmpix_getn_short_float(const void **xpp, int64_t nelems, float *ip); 
    492 extern int 
    493 ncmpix_getn_short_double(const void **xpp, int64_t nelems, double *ip); 
    494  
    495 extern int 
    496 ncmpix_pad_getn_short_schar(const void **xpp, int64_t nelems, schar *ip); 
    497 extern int 
    498 ncmpix_pad_getn_short_uchar(const void **xpp, int64_t nelems, uchar *ip); 
    499 extern int 
    500 ncmpix_pad_getn_short_short(const void **xpp, int64_t nelems, short *ip); 
    501 extern int 
    502 ncmpix_pad_getn_short_int(const void **xpp, int64_t nelems, int *ip); 
    503 extern int 
    504 ncmpix_pad_getn_short_long(const void **xpp, int64_t nelems, long *ip); 
    505 extern int 
    506 ncmpix_pad_getn_short_float(const void **xpp, int64_t nelems, float *ip); 
    507 extern int 
    508 ncmpix_pad_getn_short_double(const void **xpp, int64_t nelems, double *ip); 
    509  
    510 extern int 
    511 ncmpix_putn_short_schar(void **xpp, int64_t nelems, const schar *ip); 
    512 extern int 
    513 ncmpix_putn_short_uchar(void **xpp, int64_t nelems, const uchar *ip); 
    514 extern int 
    515 ncmpix_putn_short_short(void **xpp, int64_t nelems, const short *ip); 
    516 extern int 
    517 ncmpix_putn_short_int(void **xpp, int64_t nelems, const int *ip); 
    518 extern int 
    519 ncmpix_putn_short_long(void **xpp, int64_t nelems, const long *ip); 
    520 extern int 
    521 ncmpix_putn_short_float(void **xpp, int64_t nelems, const float *ip); 
    522 extern int 
    523 ncmpix_putn_short_double(void **xpp, int64_t nelems, const double *ip); 
    524   
    525 extern int 
    526 ncmpix_pad_putn_short_schar(void **xpp, int64_t nelems, const schar *ip); 
    527 extern int 
    528 ncmpix_pad_putn_short_uchar(void **xpp, int64_t nelems, const uchar *ip); 
    529 extern int 
    530 ncmpix_pad_putn_short_short(void **xpp, int64_t nelems, const short *ip); 
    531 extern int 
    532 ncmpix_pad_putn_short_int(void **xpp, int64_t nelems, const int *ip); 
    533 extern int 
    534 ncmpix_pad_putn_short_long(void **xpp, int64_t nelems, const long *ip); 
    535 extern int 
    536 ncmpix_pad_putn_short_float(void **xpp, int64_t nelems, const float *ip); 
    537 extern int 
    538 ncmpix_pad_putn_short_double(void **xpp, int64_t nelems, const double *ip); 
    539  
    540  
    541 extern int 
    542 ncmpix_getn_int_schar(const void **xpp, int64_t nelems, schar *ip); 
    543 extern int 
    544 ncmpix_getn_int_uchar(const void **xpp, int64_t nelems, uchar *ip); 
    545 extern int 
    546 ncmpix_getn_int_short(const void **xpp, int64_t nelems, short *ip); 
    547 extern int 
    548 ncmpix_getn_int_int(const void **xpp, int64_t nelems, int *ip); 
    549 extern int 
    550 ncmpix_getn_int_long(const void **xpp, int64_t nelems, long *ip); 
    551 extern int 
    552 ncmpix_getn_long_long(const void **xpp, int64_t nelems, int64_t *ip); 
    553 extern int 
    554 ncmpix_getn_int_float(const void **xpp, int64_t nelems, float *ip); 
    555 extern int 
    556 ncmpix_getn_int_double(const void **xpp, int64_t nelems, double *ip); 
    557  
    558 extern int 
    559 ncmpix_putn_int_schar(void **xpp, int64_t nelems, const schar *ip); 
    560 extern int 
    561 ncmpix_putn_int_uchar(void **xpp, int64_t nelems, const uchar *ip); 
    562 extern int 
    563 ncmpix_putn_int_short(void **xpp, int64_t nelems, const short *ip); 
    564 extern int 
    565 ncmpix_putn_int_int(void **xpp, int64_t nelems, const int *ip); 
    566 extern int 
    567 ncmpix_putn_int_long(void **xpp, int64_t nelems, const long *ip); 
    568 extern int 
    569 ncmpix_putn_int_float(void **xpp, int64_t nelems, const float *ip); 
    570 extern int 
    571 ncmpix_putn_int_double(void **xpp, int64_t nelems, const double *ip); 
    572   
    573  
    574 extern int 
    575 ncmpix_getn_float_schar(const void **xpp, int64_t nelems, schar *ip); 
    576 extern int 
    577 ncmpix_getn_float_uchar(const void **xpp, int64_t nelems, uchar *ip); 
    578 extern int 
    579 ncmpix_getn_float_short(const void **xpp, int64_t nelems, short *ip); 
    580 extern int 
    581 ncmpix_getn_float_int(const void **xpp, int64_t nelems, int *ip); 
    582 extern int 
    583 ncmpix_getn_float_long(const void **xpp, int64_t nelems, long *ip); 
    584 extern int 
    585 ncmpix_getn_float_float(const void **xpp, int64_t nelems, float *ip); 
    586 extern int 
    587 ncmpix_getn_float_double(const void **xpp, int64_t nelems, double *ip); 
    588  
    589 extern int 
    590 ncmpix_putn_float_schar(void **xpp, int64_t nelems, const schar *ip); 
    591 extern int 
    592 ncmpix_putn_float_uchar(void **xpp, int64_t nelems, const uchar *ip); 
    593 extern int 
    594 ncmpix_putn_float_short(void **xpp, int64_t nelems, const short *ip); 
    595 extern int 
    596 ncmpix_putn_float_int(void **xpp, int64_t nelems, const int *ip); 
    597 extern int 
    598 ncmpix_putn_float_long(void **xpp, int64_t nelems, const long *ip); 
    599 extern int 
    600 ncmpix_putn_float_float(void **xpp, int64_t nelems, const float *ip); 
    601 extern int 
    602 ncmpix_putn_float_double(void **xpp, int64_t nelems, const double *ip); 
    603   
    604  
    605 extern int 
    606 ncmpix_getn_double_schar(const void **xpp, int64_t nelems, schar *ip); 
    607 extern int 
    608 ncmpix_getn_double_uchar(const void **xpp, int64_t nelems, uchar *ip); 
    609 extern int 
    610 ncmpix_getn_double_short(const void **xpp, int64_t nelems, short *ip); 
    611 extern int 
    612 ncmpix_getn_double_int(const void **xpp, int64_t nelems, int *ip); 
    613 extern int 
    614 ncmpix_getn_double_long(const void **xpp, int64_t nelems, long *ip); 
    615 extern int 
    616 ncmpix_getn_double_float(const void **xpp, int64_t nelems, float *ip); 
    617 extern int 
    618 ncmpix_getn_double_double(const void **xpp, int64_t nelems, double *ip); 
    619  
    620 extern int 
    621 ncmpix_putn_double_schar(void **xpp, int64_t nelems, const schar *ip); 
    622 extern int 
    623 ncmpix_putn_double_uchar(void **xpp, int64_t nelems, const uchar *ip); 
    624 extern int 
    625 ncmpix_putn_double_short(void **xpp, int64_t nelems, const short *ip); 
    626 extern int 
    627 ncmpix_putn_double_int(void **xpp, int64_t nelems, const int *ip); 
    628 extern int 
    629 ncmpix_putn_double_long(void **xpp, int64_t nelems, const long *ip); 
    630 extern int 
    631 ncmpix_putn_double_float(void **xpp, int64_t nelems, const float *ip); 
    632 extern int 
    633 ncmpix_putn_double_double(void **xpp, int64_t nelems, const double *ip); 
     420ncmpix_getn_schar_schar(const void **xpp, MPI_Offset nelems, schar *ip); 
     421extern int 
     422ncmpix_getn_schar_uchar(const void **xpp, MPI_Offset nelems, uchar *ip); 
     423extern int 
     424ncmpix_getn_schar_short(const void **xpp, MPI_Offset nelems, short *ip); 
     425extern int 
     426ncmpix_getn_schar_int(const void **xpp, MPI_Offset nelems, int *ip); 
     427extern int 
     428ncmpix_getn_schar_long(const void **xpp, MPI_Offset nelems, long *ip); 
     429extern int 
     430ncmpix_getn_schar_float(const void **xpp, MPI_Offset nelems, float *ip); 
     431extern int 
     432ncmpix_getn_schar_double(const void **xpp, MPI_Offset nelems, double *ip); 
     433 
     434extern int 
     435ncmpix_pad_getn_schar_schar(const void **xpp, MPI_Offset nelems, schar *ip); 
     436extern int 
     437ncmpix_pad_getn_schar_uchar(const void **xpp, MPI_Offset nelems, uchar *ip); 
     438extern int 
     439ncmpix_pad_getn_schar_short(const void **xpp, MPI_Offset nelems, short *ip); 
     440extern int 
     441ncmpix_pad_getn_schar_int(const void **xpp, MPI_Offset nelems, int *ip); 
     442extern int 
     443ncmpix_pad_getn_schar_long(const void **xpp, MPI_Offset nelems, long *ip); 
     444extern int 
     445ncmpix_pad_getn_schar_float(const void **xpp, MPI_Offset nelems, float *ip); 
     446extern int 
     447ncmpix_pad_getn_schar_double(const void **xpp, MPI_Offset nelems, double *ip); 
     448 
     449extern int 
     450ncmpix_putn_schar_schar(void **xpp, MPI_Offset nelems, const schar *ip); 
     451extern int 
     452ncmpix_putn_schar_uchar(void **xpp, MPI_Offset nelems, const uchar *ip); 
     453extern int 
     454ncmpix_putn_schar_short(void **xpp, MPI_Offset nelems, const short *ip); 
     455extern int 
     456ncmpix_putn_schar_int(void **xpp, MPI_Offset nelems, const int *ip); 
     457extern int 
     458ncmpix_putn_schar_long(void **xpp, MPI_Offset nelems, const long *ip); 
     459extern int 
     460ncmpix_putn_schar_float(void **xpp, MPI_Offset nelems, const float *ip); 
     461extern int 
     462ncmpix_putn_schar_double(void **xpp, MPI_Offset nelems, const double *ip); 
     463  
     464extern int 
     465ncmpix_pad_putn_schar_schar(void **xpp, MPI_Offset nelems, const schar *ip); 
     466extern int 
     467ncmpix_pad_putn_schar_uchar(void **xpp, MPI_Offset nelems, const uchar *ip); 
     468extern int 
     469ncmpix_pad_putn_schar_short(void **xpp, MPI_Offset nelems, const short *ip); 
     470extern int 
     471ncmpix_pad_putn_schar_int(void **xpp, MPI_Offset nelems, const int *ip); 
     472extern int 
     473ncmpix_pad_putn_schar_long(void **xpp, MPI_Offset nelems, const long *ip); 
     474extern int 
     475ncmpix_pad_putn_schar_float(void **xpp, MPI_Offset nelems, const float *ip); 
     476extern int 
     477ncmpix_pad_putn_schar_double(void **xpp, MPI_Offset nelems, const double *ip); 
     478 
     479 
     480extern int 
     481ncmpix_getn_short_schar(const void **xpp, MPI_Offset nelems, schar *ip); 
     482extern int 
     483ncmpix_getn_short_uchar(const void **xpp, MPI_Offset nelems, uchar *ip); 
     484extern int 
     485ncmpix_getn_short_short(const void **xpp, MPI_Offset nelems, short *ip); 
     486extern int 
     487ncmpix_getn_short_int(const void **xpp, MPI_Offset nelems, int *ip); 
     488extern int 
     489ncmpix_getn_short_long(const void **xpp, MPI_Offset nelems, long *ip); 
     490extern int 
     491ncmpix_getn_short_float(const void **xpp, MPI_Offset nelems, float *ip); 
     492extern int 
     493ncmpix_getn_short_double(const void **xpp, MPI_Offset nelems, double *ip); 
     494 
     495extern int 
     496ncmpix_pad_getn_short_schar(const void **xpp, MPI_Offset nelems, schar *ip); 
     497extern int 
     498ncmpix_pad_getn_short_uchar(const void **xpp, MPI_Offset nelems, uchar *ip); 
     499extern int 
     500ncmpix_pad_getn_short_short(const void **xpp, MPI_Offset nelems, short *ip); 
     501extern int 
     502ncmpix_pad_getn_short_int(const void **xpp, MPI_Offset nelems, int *ip); 
     503extern int 
     504ncmpix_pad_getn_short_long(const void **xpp, MPI_Offset nelems, long *ip); 
     505extern int 
     506ncmpix_pad_getn_short_float(const void **xpp, MPI_Offset nelems, float *ip); 
     507extern int 
     508ncmpix_pad_getn_short_double(const void **xpp, MPI_Offset nelems, double *ip); 
     509 
     510extern int 
     511ncmpix_putn_short_schar(void **xpp, MPI_Offset nelems, const schar *ip); 
     512extern int 
     513ncmpix_putn_short_uchar(void **xpp, MPI_Offset nelems, const uchar *ip); 
     514extern int 
     515ncmpix_putn_short_short(void **xpp, MPI_Offset nelems, const short *ip); 
     516extern int 
     517ncmpix_putn_short_int(void **xpp, MPI_Offset nelems, const int *ip); 
     518extern int 
     519ncmpix_putn_short_long(void **xpp, MPI_Offset nelems, const long *ip); 
     520extern int 
     521ncmpix_putn_short_float(void **xpp, MPI_Offset nelems, const float *ip); 
     522extern int 
     523ncmpix_putn_short_double(void **xpp, MPI_Offset nelems, const double *ip); 
     524  
     525extern int 
     526ncmpix_pad_putn_short_schar(void **xpp, MPI_Offset nelems, const schar *ip); 
     527extern int 
     528ncmpix_pad_putn_short_uchar(void **xpp, MPI_Offset nelems, const uchar *ip); 
     529extern int 
     530ncmpix_pad_putn_short_short(void **xpp, MPI_Offset nelems, const short *ip); 
     531extern int 
     532ncmpix_pad_putn_short_int(void **xpp, MPI_Offset nelems, const int *ip); 
     533extern int 
     534ncmpix_pad_putn_short_long(void **xpp, MPI_Offset nelems, const long *ip); 
     535extern int 
     536ncmpix_pad_putn_short_float(void **xpp, MPI_Offset nelems, const float *ip); 
     537extern int 
     538ncmpix_pad_putn_short_double(void **xpp, MPI_Offset nelems, const double *ip); 
     539 
     540 
     541extern int 
     542ncmpix_getn_int_schar(const void **xpp, MPI_Offset nelems, schar *ip); 
     543extern int 
     544ncmpix_getn_int_uchar(const void **xpp, MPI_Offset nelems, uchar *ip); 
     545extern int 
     546ncmpix_getn_int_short(const void **xpp, MPI_Offset nelems, short *ip); 
     547extern int 
     548ncmpix_getn_int_int(const void **xpp, MPI_Offset nelems, int *ip); 
     549extern int 
     550ncmpix_getn_int_long(const void **xpp, MPI_Offset nelems, long *ip); 
     551extern int 
     552ncmpix_getn_long_long(const void **xpp, MPI_Offset nelems, MPI_Offset *ip); 
     553extern int 
     554ncmpix_getn_int_float(const void **xpp, MPI_Offset nelems, float *ip); 
     555extern int 
     556ncmpix_getn_int_double(const void **xpp, MPI_Offset nelems, double *ip); 
     557 
     558extern int 
     559ncmpix_putn_int_schar(void **xpp, MPI_Offset nelems, const schar *ip); 
     560extern int 
     561ncmpix_putn_int_uchar(void **xpp, MPI_Offset nelems, const uchar *ip); 
     562extern int 
     563ncmpix_putn_int_short(void **xpp, MPI_Offset nelems, const short *ip); 
     564extern int 
     565ncmpix_putn_int_int(void **xpp, MPI_Offset nelems, const int *ip); 
     566extern int 
     567ncmpix_putn_int_long(void **xpp, MPI_Offset nelems, const long *ip); 
     568extern int 
     569ncmpix_putn_int_float(void **xpp, MPI_Offset nelems, const float *ip); 
     570extern int 
     571ncmpix_putn_int_double(void **xpp, MPI_Offset nelems, const double *ip); 
     572  
     573 
     574extern int 
     575ncmpix_getn_float_schar(const void **xpp, MPI_Offset nelems, schar *ip); 
     576extern int 
     577ncmpix_getn_float_uchar(const void **xpp, MPI_Offset nelems, uchar *ip); 
     578extern int 
     579ncmpix_getn_float_short(const void **xpp, MPI_Offset nelems, short *ip); 
     580extern int 
     581ncmpix_getn_float_int(const void **xpp, MPI_Offset nelems, int *ip); 
     582extern int 
     583ncmpix_getn_float_long(const void **xpp, MPI_Offset nelems, long *ip); 
     584extern int 
     585ncmpix_getn_float_float(const void **xpp, MPI_Offset nelems, float *ip); 
     586extern int 
     587ncmpix_getn_float_double(const void **xpp, MPI_Offset nelems, double *ip); 
     588 
     589extern int 
     590ncmpix_putn_float_schar(void **xpp, MPI_Offset nelems, const schar *ip); 
     591extern int 
     592ncmpix_putn_float_uchar(void **xpp, MPI_Offset nelems, const uchar *ip); 
     593extern int 
     594ncmpix_putn_float_short(void **xpp, MPI_Offset nelems, const short *ip); 
     595extern int 
     596ncmpix_putn_float_int(void **xpp, MPI_Offset nelems, const int *ip); 
     597extern int 
     598ncmpix_putn_float_long(void **xpp, MPI_Offset nelems, const long *ip); 
     599extern int 
     600ncmpix_putn_float_float(void **xpp, MPI_Offset nelems, const float *ip); 
     601extern int 
     602ncmpix_putn_float_double(void **xpp, MPI_Offset nelems, const double *ip); 
     603  
     604 
     605extern int 
     606ncmpix_getn_double_schar(const void **xpp, MPI_Offset nelems, schar *ip); 
     607extern int 
     608ncmpix_getn_double_uchar(const void **xpp, MPI_Offset nelems, uchar *ip); 
     609extern int 
     610ncmpix_getn_double_short(const void **xpp, MPI_Offset nelems, short *ip); 
     611extern int 
     612ncmpix_getn_double_int(const void **xpp, MPI_Offset nelems, int *ip); 
     613extern int 
     614ncmpix_getn_double_long(const void **xpp, MPI_Offset nelems, long *ip); 
     615extern int 
     616ncmpix_getn_double_float(const void **xpp, MPI_Offset nelems, float *ip); 
     617extern int 
     618ncmpix_getn_double_double(const void **xpp, MPI_Offset nelems, double *ip); 
     619 
     620extern int 
     621ncmpix_putn_double_schar(void **xpp, MPI_Offset nelems, const schar *ip); 
     622extern int 
     623ncmpix_putn_double_uchar(void **xpp, MPI_Offset nelems, const uchar *ip); 
     624extern int 
     625ncmpix_putn_double_short(void **xpp, MPI_Offset nelems, const short *ip); 
     626extern int 
     627ncmpix_putn_double_int(void **xpp, MPI_Offset nelems, const int *ip); 
     628extern int 
     629ncmpix_putn_double_long(void **xpp, MPI_Offset nelems, const long *ip); 
     630extern int 
     631ncmpix_putn_double_float(void **xpp, MPI_Offset nelems, const float *ip); 
     632extern int 
     633ncmpix_putn_double_double(void **xpp, MPI_Offset nelems, const double *ip); 
    634634  
    635635 
     
    640640/* read ASCII characters */ 
    641641extern int 
    642 ncmpix_getn_text(const void **xpp, int64_t nchars, char *cp); 
    643 extern int 
    644 ncmpix_pad_getn_text(const void **xpp, int64_t nchars, char *cp); 
     642ncmpix_getn_text(const void **xpp, MPI_Offset nchars, char *cp); 
     643extern int 
     644ncmpix_pad_getn_text(const void **xpp, MPI_Offset nchars, char *cp); 
    645645 
    646646/* write ASCII characters */ 
    647647extern int 
    648 ncmpix_putn_text(void **xpp, int64_t nchars, const char *cp); 
    649 extern int 
    650 ncmpix_pad_putn_text(void **xpp, int64_t nchars, const char *cp); 
     648ncmpix_putn_text(void **xpp, MPI_Offset nchars, const char *cp); 
     649extern int 
     650ncmpix_pad_putn_text(void **xpp, MPI_Offset nchars, const char *cp); 
    651651 
    652652/* for symmetry */ 
     
    656656/* read opaque data */ 
    657657extern int 
    658 ncmpix_getn_void(const void **xpp, int64_t nchars, void *vp); 
    659 extern int 
    660 ncmpix_pad_getn_void(const void **xpp, int64_t nchars, void *vp); 
     658ncmpix_getn_void(const void **xpp, MPI_Offset nchars, void *vp); 
     659extern int 
     660ncmpix_pad_getn_void(const void **xpp, MPI_Offset nchars, void *vp); 
    661661 
    662662/* write opaque data */ 
    663663extern int 
    664 ncmpix_putn_void(void **xpp, int64_t nchars, const void *vp); 
    665 extern int 
    666 ncmpix_pad_putn_void(void **xpp, int64_t nchars, const void *vp); 
     664ncmpix_putn_void(void **xpp, MPI_Offset nchars, const void *vp); 
     665extern int 
     666ncmpix_pad_putn_void(void **xpp, MPI_Offset nchars, const void *vp); 
    667667 
    668668#endif /* _NCX_H_ */ 
  • trunk/CDF3/src/lib/pnetcdf.h

    r616 r625  
    7070  void *cbuf; 
    7171  void *lbuf; 
    72   int64_t nelems; 
    73   int64_t cnelems; 
    74   int64_t lnelems; 
     72  MPI_Offset nelems; 
     73  MPI_Offset cnelems; 
     74  MPI_Offset lnelems; 
    7575  int iscontig_of_ptypes; 
    7676  void *buf; 
    77   int64_t bufcount; 
     77  MPI_Offset bufcount; 
    7878  MPI_Datatype datatype; 
    7979  MPI_Datatype ptype; 
     
    130130#define NC_FORMAT_CLASSIC 1 
    131131#define NC_FORMAT_64BIT 2 
    132 #define NC_FORMAT_64BIT_DATA 3 
     132#define NC_FORMAT_64BIT_DATA 5 
    133133  
    134134/* 
     
    159159 * these sizes internally. 
    160160 */ 
    161 #define NC_MAX_DIMS     4096    /* max dimensions per file */ 
    162 /* #define NC_MAX_DIMS  214783648 */      /* max dimensions per file */ 
     161#define NC_MAX_DIMS     512    /* max dimensions per file */ 
    163162#define NC_MAX_ATTRS    4096     /* max global or per variable attributes */ 
    164163#define NC_MAX_VARS     4096     /* max variables per file */ 
     
    168167  
    169168/* 
    170  * The netcdf version 3 functions all return integer error status. 
     169 * The netcdf version 5 functions all return integer error status. 
    171170 * These are the possible values, in addition to certain 
    172171 * values from the system errno.h. 
     
    289288 
    290289 
    291 int ncmpi_def_dim(int ncid, const char *name, int64_t len, int64_t *idp); 
     290int ncmpi_def_dim(int ncid, const char *name, MPI_Offset len, int *idp); 
    292291 
    293292 
    294293int ncmpi_def_var(int ncid, const char *name, nc_type xtype,  
    295               int64_t ndims, const int64_t *dimidsp, int64_t *varidp); 
    296  
    297  
    298 int ncmpi_rename_dim(int ncid, int64_t dimid, const char *name); 
    299  
    300  
    301 int ncmpi_rename_var(int ncid, int64_t varid, const char *name); 
     294              int ndims, const int *dimidsp, int *varidp); 
     295 
     296 
     297int ncmpi_rename_dim(int ncid, int dimid, const char *name); 
     298 
     299 
     300int ncmpi_rename_var(int ncid, int varid, const char *name); 
    302301 
    303302/* End Define Mode Functions */ 
     
    308307ncmpi_inq_libvers(void); 
    309308 
    310 int ncmpi_inq(int ncid, int64_t *ndimsp, int64_t *nvarsp, 
    311           int64_t *ngattsp, int64_t *unlimdimidp);  
     309int ncmpi_inq(int ncid, int *ndimsp, int *nvarsp, 
     310          int *ngattsp, int *unlimdimidp);  
    312311 
    313312 
    314313int ncmpi_inq_version(int ncid, int *NC_mode); 
    315314 
    316 int ncmpi_inq_ndims(int ncid, int64_t *ndimsp); 
    317  
    318  
    319 int ncmpi_inq_nvars(int ncid, int64_t *nvarsp); 
    320  
    321  
    322 int ncmpi_inq_natts(int ncid, int64_t *ngattsp); 
    323  
    324  
    325 int ncmpi_inq_unlimdim(int ncid, int64_t *unlimdimidp); 
    326  
    327  
    328 int ncmpi_inq_dimid(int ncid, const char *name, int64_t *idp); 
    329  
    330  
    331 int ncmpi_inq_dim(int ncid, int64_t dimid, char *name, int64_t *lenp); 
    332  
    333  
    334 int ncmpi_inq_dimname(int ncid, int64_t dimid, char *name); 
    335  
    336  
    337 int ncmpi_inq_dimlen(int ncid, int64_t dimid, int64_t *lenp); 
    338  
    339  
    340 int ncmpi_inq_var(int ncid, int64_t varid, char *name, 
    341               nc_type *xtypep, int64_t *ndimsp, int64_t *dimidsp, 
    342               int64_t *nattsp); 
    343  
    344  
    345 int ncmpi_inq_varid(int ncid, const char *name, int64_t *varidp); 
    346  
    347  
    348 int ncmpi_inq_varname(int ncid, int64_t varid, char *name); 
    349  
    350  
    351 int ncmpi_inq_vartype(int ncid, int64_t varid, nc_type *xtypep); 
    352  
    353 int ncmpi_inq_varndims(int ncid, int64_t varid, int64_t *ndimsp); 
    354  
    355  
    356 int ncmpi_inq_vardimid(int ncid, int64_t varid, int64_t *dimidsp); 
    357  
    358  
    359 int ncmpi_inq_varnatts(int ncid, int64_t varid, int64_t *nattsp); 
     315int ncmpi_inq_ndims(int ncid, int *ndimsp); 
     316 
     317 
     318int ncmpi_inq_nvars(int ncid, int *nvarsp); 
     319 
     320 
     321int ncmpi_inq_natts(int ncid, int *ngattsp); 
     322 
     323 
     324int ncmpi_inq_unlimdim(int ncid, int *unlimdimidp); 
     325 
     326 
     327int ncmpi_inq_dimid(int ncid, const char *name, int *idp); 
     328 
     329 
     330int ncmpi_inq_dim(int ncid, int dimid, char *name, MPI_Offset *lenp); 
     331 
     332 
     333int ncmpi_inq_dimname(int ncid, int dimid, char *name); 
     334 
     335 
     336int ncmpi_inq_dimlen(int ncid, int dimid, MPI_Offset *lenp); 
     337 
     338 
     339int ncmpi_inq_var(int ncid, int varid, char *name, 
     340              nc_type *xtypep, int *ndimsp, int *dimidsp, 
     341              int *nattsp); 
     342 
     343 
     344int ncmpi_inq_varid(int ncid, const char *name, int *varidp); 
     345 
     346 
     347int ncmpi_inq_varname(int ncid, int varid, char *name); 
     348 
     349 
     350int ncmpi_inq_vartype(int ncid, int varid, nc_type *xtypep); 
     351 
     352int ncmpi_inq_varndims(int ncid, int varid, int *ndimsp); 
     353 
     354 
     355int ncmpi_inq_vardimid(int ncid, int varid, int *dimidsp); 
     356 
     357 
     358int ncmpi_inq_varnatts(int ncid, int varid, int *nattsp); 
    360359 
    361360/* End Inquiry Functions */ 
     
    364363 
    365364 
    366 int ncmpi_inq_att(int ncid, int64_t varid, const char *name, 
    367               nc_type *xtypep, int64_t *lenp); 
    368  
    369  
    370 int ncmpi_inq_attid(int ncid, int64_t varid, const char *name, int64_t *idp); 
    371  
    372  
    373 int ncmpi_inq_atttype(int ncid, int64_t varid, const char *name, 
     365int ncmpi_inq_att(int ncid, int varid, const char *name, 
     366              nc_type *xtypep, MPI_Offset *lenp); 
     367 
     368 
     369int ncmpi_inq_attid(int ncid, int varid, const char *name, int *idp); 
     370 
     371 
     372int ncmpi_inq_atttype(int ncid, int varid, const char *name, 
    374373                  nc_type *xtypep); 
    375374 
    376375 
    377 int ncmpi_inq_attlen(int ncid, int64_t varid, const char *name, 
    378                  int64_t *lenp); 
    379  
    380  
    381 int ncmpi_inq_attname(int ncid, int64_t varid, int64_t attnum, char *name); 
    382  
    383  
    384 int ncmpi_copy_att(int ncid_in, int64_t varid_in, const char *name, 
    385                int64_t ncid_out, int64_t varid_out); 
    386  
    387  
    388 int ncmpi_rename_att(int ncid, int64_t varid, const char *name, 
     376int ncmpi_inq_attlen(int ncid, int varid, const char *name, 
     377                 MPI_Offset *lenp); 
     378 
     379 
     380int ncmpi_inq_attname(int ncid, int varid, int attnum, char *name); 
     381 
     382 
     383int ncmpi_copy_att(int ncid_in, int varid_in, const char *name, 
     384               int ncid_out, int varid_out); 
     385 
     386 
     387int ncmpi_rename_att(int ncid, int varid, const char *name, 
    389388                 const char *newname); 
    390389 
    391390 
    392 int ncmpi_del_att(int ncid, int64_t varid, const char *name); 
    393  
    394  
    395 int ncmpi_put_att_text(int ncid, int64_t varid, const char *name, int64_t len, 
     391int ncmpi_del_att(int ncid, int varid, const char *name); 
     392 
     393 
     394int ncmpi_put_att_text(int ncid, int varid, const char *name, MPI_Offset len, 
    396395                   const char *op); 
    397396 
    398397 
    399 int ncmpi_get_att_text(int ncid, int64_t varid, const char *name, char *ip); 
    400  
    401 /* Begin Skip Prototypes for Fortran binding */ 
    402  
    403 int ncmpi_put_att_uchar(int ncid, int64_t varid, const char *name, 
    404                     nc_type xtype, int64_t len, const unsigned char *op); 
    405  
    406  
    407 int ncmpi_get_att_uchar(int ncid, int64_t varid, const char *name, 
     398int ncmpi_get_att_text(int ncid, int varid, const char *name, char *ip); 
     399 
     400/* Begin Skip Prototypes for Fortran binding */ 
     401 
     402int ncmpi_put_att_uchar(int ncid, int varid, const char *name, 
     403                    nc_type xtype, MPI_Offset len, const unsigned char *op); 
     404 
     405 
     406int ncmpi_get_att_uchar(int ncid, int varid, const char *name, 
    408407                    unsigned char *ip); 
    409408 
    410409/* End Skip Prototypes for Fortran binding */ 
    411410 
    412 int ncmpi_put_att_schar(int ncid, int64_t varid, const char *name, 
    413                     nc_type xtype, int64_t len, const signed char *op); 
    414  
    415  
    416 int ncmpi_get_att_schar(int ncid, int64_t varid, const char *name, 
     411int ncmpi_put_att_schar(int ncid, int varid, const char *name, 
     412                    nc_type xtype, MPI_Offset len, const signed char *op); 
     413 
     414 
     415int ncmpi_get_att_schar(int ncid, int varid, const char *name, 
    417416                    signed char *ip); 
    418417 
    419418 
    420 int ncmpi_put_att_short(int ncid, int64_t varid, const char *name, 
    421                     nc_type xtype, int64_t len, const short *op); 
    422  
    423  
    424 int ncmpi_get_att_short(int ncid, int64_t varid, const char *name, short *ip); 
    425  
    426  
    427 int ncmpi_put_att_int(int ncid, int64_t varid, const char *name, 
    428                   nc_type xtype, int64_t len, const int *op); 
    429  
    430  
    431 int ncmpi_get_att_int(int ncid, int64_t varid, const char *name, int *ip); 
    432  
    433  
    434 /* Begin Skip Prototypes for Fortran binding */ 
    435  
    436 int ncmpi_put_att_long(int ncid, int64_t varid, const char *name, 
    437                    nc_type xtype, int64_t len, const long *op); 
    438  
    439 int ncmpi_get_att_long(int ncid, int64_t varid, const char *name, long *ip); 
    440  
    441 /* End Skip Prototypes for Fortran binding */ 
    442  
    443  
    444 int ncmpi_put_att_float(int ncid, int64_t varid, const char *name, 
    445                     nc_type xtype, int64_t len, const float *op); 
    446  
    447  
    448 int ncmpi_get_att_float(int ncid, int64_t varid, const char *name, float *ip); 
    449  
    450  
    451 int ncmpi_put_att_double(int ncid, int64_t varid, const char *name, 
    452                      nc_type xtype, int64_t len, const double *op); 
    453  
    454  
    455 int ncmpi_get_att_double(int ncid, int64_t varid, const char *name, 
     419int ncmpi_put_att_short(int ncid, int varid, const char *name, 
     420                    nc_type xtype, MPI_Offset len, const short *op); 
     421 
     422 
     423int ncmpi_get_att_short(int ncid, int varid, const char *name, short *ip); 
     424 
     425 
     426int ncmpi_put_att_int(int ncid, int varid, const char *name, 
     427                  nc_type xtype, MPI_Offset len, const int *op); 
     428 
     429 
     430int ncmpi_get_att_int(int ncid, int varid, const char *name, int *ip); 
     431 
     432 
     433/* Begin Skip Prototypes for Fortran binding */ 
     434 
     435int ncmpi_put_att_long(int ncid, int varid, const char *name, 
     436                   nc_type xtype, MPI_Offset len, const long *op); 
     437 
     438int ncmpi_get_att_long(int ncid, int varid, const char *name, long *ip); 
     439 
     440/* End Skip Prototypes for Fortran binding */ 
     441 
     442 
     443int ncmpi_put_att_float(int ncid, int varid, const char *name, 
     444                    nc_type xtype, MPI_Offset len, const float *op); 
     445 
     446 
     447int ncmpi_get_att_float(int ncid, int varid, const char *name, float *ip); 
     448 
     449 
     450int ncmpi_put_att_double(int ncid, int varid, const char *name, 
     451                     nc_type xtype, MPI_Offset len, const double *op); 
     452 
     453 
     454int ncmpi_get_att_double(int ncid, int varid, const char *name, 
    456455                     double *ip); 
    457456 
     
    461460 
    462461 
    463 int ncmpi_put_var1(int ncid, int64_t varid, 
    464                const int64_t index[], 
    465                const void *buf, int64_t bufcount, 
     462int ncmpi_put_var1(int ncid, int varid, 
     463               const MPI_Offset index[], 
     464               const void *buf, MPI_Offset bufcount, 
    466465               MPI_Datatype datatype); 
    467466 
    468467 
    469 int ncmpi_get_var1(int ncid, int64_t varid, 
    470                const int64_t index[], 
    471                void *buf, int64_t bufcount, 
     468int ncmpi_get_var1(int ncid, int varid, 
     469               const MPI_Offset index[], 
     470               void *buf, MPI_Offset bufcount, 
    472471               MPI_Datatype datatype); 
    473472 
    474473 
    475474/* Begin Skip Prototypes for Fortran binding */ 
    476 int ncmpi_put_var1_uchar(int ncid, int64_t varid, 
    477                     const int64_t index[], 
     475int ncmpi_put_var1_uchar(int ncid, int varid, 
     476                    const MPI_Offset index[], 
    478477                    const unsigned char *op); 
    479478/* End Skip Prototypes for Fortran binding */ 
    480479 
    481 int ncmpi_put_var1_schar(int ncid, int64_t varid, 
    482                     const int64_t index[], 
     480int ncmpi_put_var1_schar(int ncid, int varid, 
     481                    const MPI_Offset index[], 
    483482                    const signed char *op); 
    484483 
    485484 
    486 int ncmpi_put_var1_text(int ncid, int64_t varid, 
    487                     const int64_t index[], 
     485int ncmpi_put_var1_text(int ncid, int varid, 
     486                    const MPI_Offset index[], 
    488487                    const char *op); 
    489488 
    490489 
    491 int ncmpi_put_var1_short(int ncid, int64_t varid, 
    492                      const int64_t index[], 
     490int ncmpi_put_var1_short(int ncid, int varid, 
     491                     const MPI_Offset index[], 
    493492                     const short *op); 
    494493 
    495494 
    496 int ncmpi_put_var1_int(int ncid, int64_t varid, 
    497                    const int64_t index[], 
     495int ncmpi_put_var1_int(int ncid, int varid, 
     496                   const MPI_Offset index[], 
    498497                   const int *op); 
    499498 
     
    501500/* Begin Skip Prototypes for Fortran binding */ 
    502501 
    503 int ncmpi_put_var1_long(int ncid, int64_t varid, 
    504                    const int64_t index[], 
     502int ncmpi_put_var1_long(int ncid, int varid, 
     503                   const MPI_Offset index[], 
    505504                   const long *ip); 
    506505 
     
    508507 
    509508 
    510 int ncmpi_put_var1_float(int ncid, int64_t varid, 
    511                      const int64_t index[], 
     509int ncmpi_put_var1_float(int ncid, int varid, 
     510                     const MPI_Offset index[], 
    512511                     const float *op); 
    513512 
    514513 
    515 int ncmpi_put_var1_double(int ncid, int64_t varid, 
    516                       const int64_t index[], 
     514int ncmpi_put_var1_double(int ncid, int varid, 
     515                      const MPI_Offset index[], 
    517516                      const double *op); 
    518517 
    519518 
    520519/* Begin Skip Prototypes for Fortran binding */ 
    521 int ncmpi_get_var1_uchar(int ncid, int64_t varid, 
    522                     const int64_t index[], 
     520int ncmpi_get_var1_uchar(int ncid, int varid, 
     521                    const MPI_Offset index[], 
    523522                    unsigned char *ip); 
    524523 
    525524/* End Skip Prototypes for Fortran binding */ 
    526525 
    527 int ncmpi_get_var1_schar(int ncid, int64_t varid, 
    528                     const int64_t index[], 
     526int ncmpi_get_var1_schar(int ncid, int varid, 
     527                    const MPI_Offset index[], 
    529528                    signed char *ip); 
    530529 
    531530 
    532 int ncmpi_get_var1_text(int ncid, int64_t varid, 
    533                     const int64_t index[], 
     531int ncmpi_get_var1_text(int ncid, int varid, 
     532                    const MPI_Offset index[], 
    534533                    char *ip); 
    535534 
    536535 
    537 int ncmpi_get_var1_short(int ncid, int64_t varid, 
    538                      const int64_t index[], 
     536int ncmpi_get_var1_short(int ncid, int varid, 
     537                     const MPI_Offset index[], 
    539538                     short *ip); 
    540539 
    541540 
    542 int ncmpi_get_var1_int(int ncid, int64_t varid, 
    543                    const int64_t index[], 
     541int ncmpi_get_var1_int(int ncid, int varid, 
     542                   const MPI_Offset index[], 
    544543                   int *ip); 
    545544 
     
    547546/* Begin Skip Prototypes for Fortran binding */ 
    548547 
    549 int ncmpi_get_var1_long(int ncid, int64_t varid, 
    550                    const int64_t index[], 
     548int ncmpi_get_var1_long(int ncid, int varid, 
     549                   const MPI_Offset index[], 
    551550                   long *ip); 
    552551 
     
    554553 
    555554 
    556 int ncmpi_get_var1_float(int ncid, int64_t varid, 
    557                      const int64_t index[], 
     555int ncmpi_get_var1_float(int ncid, int varid, 
     556                     const MPI_Offset index[], 
    558557                     float *ip); 
    559558 
    560559 
    561 int ncmpi_get_var1_double(int ncid, int64_t varid, 
    562                       const int64_t index[], 
     560int ncmpi_get_var1_double(int ncid, int varid, 
     561                      const MPI_Offset index[], 
    563562                      double *ip); 
    564563 
     
    568567 
    569568 
    570 int ncmpi_put_var(int ncid, int64_t varid, const void *buf, int64_t bufcount, MPI_Datatype datatype); 
    571  
    572  
    573 int ncmpi_get_var(int ncid, int64_t varid, void *buf, int64_t bufcount, MPI_Datatype datatype); 
    574  
    575  
    576 int ncmpi_get_var_all(int ncid, int64_t varid, void *buf, int64_t bufcount, MPI_Datatype datatype); 
    577  
    578  
    579 /* Begin Skip Prototypes for Fortran binding */ 
    580 int ncmpi_put_var_uchar(int ncid, int64_t varid, const unsigned char *op); 
    581  
    582 /* End Skip Prototypes for Fortran binding */ 
    583  
    584 int ncmpi_put_var_schar(int ncid, int64_t varid, const signed char *op); 
    585  
    586  
    587 int ncmpi_put_var_text(int ncid, int64_t varid, const char *op); 
    588  
    589  
    590 int ncmpi_put_var_short(int ncid, int64_t varid, const short *op); 
    591  
    592  
    593 int ncmpi_put_var_int(int ncid, int64_t varid, const int *op); 
    594  
    595  
    596 /* Begin Skip Prototypes for Fortran binding */ 
    597  
    598 int ncmpi_put_var_long(int ncid, int64_t varid, const long *op); 
    599  
    600 /* End Skip Prototypes for Fortran binding */ 
    601  
    602  
    603 int ncmpi_put_var_float(int ncid, int64_t varid, const float *op); 
    604  
    605  
    606 int ncmpi_put_var_double(int ncid, int64_t varid, const double *op); 
    607  
    608  
    609 /* Begin Skip Prototypes for Fortran binding */ 
    610 int ncmpi_get_var_uchar(int ncid, int64_t varid, unsigned char *ip); 
    611  
    612 /* End Skip Prototypes for Fortran binding */ 
    613  
    614 int ncmpi_get_var_schar(int ncid, int64_t varid, signed char *ip); 
    615  
    616  
    617 int ncmpi_get_var_text(int ncid, int64_t varid, char *ip); 
    618  
    619  
    620 int ncmpi_get_var_short(int ncid, int64_t varid, short *ip); 
    621  
    622  
    623 int ncmpi_get_var_int(int ncid, int64_t varid, int *ip); 
    624  
    625  
    626 /* Begin Skip Prototypes for Fortran binding */ 
    627  
    628 int ncmpi_get_var_long(int ncid, int64_t varid, long *ip); 
    629  
    630 /* End Skip Prototypes for Fortran binding */ 
    631  
    632  
    633 int ncmpi_get_var_float(int ncid, int64_t varid, float *ip); 
    634  
    635  
    636 int ncmpi_get_var_double(int ncid, int64_t varid, double *ip); 
    637  
    638  
    639 /* Begin Skip Prototypes for Fortran binding */ 
    640 int ncmpi_get_var_uchar_all(int ncid, int64_t varid, unsigned char *ip); 
    641 /* End Skip Prototypes for Fortran binding */ 
    642  
    643  
    644 int ncmpi_get_var_schar_all(int ncid, int64_t varid, signed char *ip); 
    645  
    646  
    647 int ncmpi_get_var_text_all(int ncid, int64_t varid, char *ip); 
    648  
    649  
    650 int ncmpi_get_var_short_all(int ncid, int64_t varid, short *ip); 
    651  
    652  
    653 int ncmpi_get_var_int_all(int ncid, int64_t varid, int *ip); 
    654  
    655  
    656 /* Begin Skip Prototypes for Fortran binding */ 
    657  
    658 int ncmpi_get_var_long_all(int ncid, int64_t varid, long *ip); 
    659  
    660 /* End Skip Prototypes for Fortran binding */ 
    661  
    662  
    663 int ncmpi_get_var_float_all(int ncid, int64_t varid, float *ip); 
    664  
    665  
    666 int ncmpi_get_var_double_all(int ncid, int64_t varid, double *ip); 
     569int ncmpi_put_var(int ncid, int varid, const void *buf, MPI_Offset bufcount, MPI_Datatype datatype); 
     570 
     571 
     572int ncmpi_get_var(int ncid, int varid, void *buf, MPI_Offset bufcount, MPI_Datatype datatype); 
     573 
     574 
     575int ncmpi_get_var_all(int ncid, int varid, void *buf, MPI_Offset bufcount, MPI_Datatype datatype); 
     576 
     577 
     578/* Begin Skip Prototypes for Fortran binding */ 
     579int ncmpi_put_var_uchar(int ncid, int varid, const unsigned char *op); 
     580 
     581/* End Skip Prototypes for Fortran binding */ 
     582 
     583int ncmpi_put_var_schar(int ncid, int varid, const signed char *op); 
     584 
     585 
     586int ncmpi_put_var_text(int ncid, int varid, const char *op); 
     587 
     588 
     589int ncmpi_put_var_short(int ncid, int varid, const short *op); 
     590 
     591 
     592int ncmpi_put_var_int(int ncid, int varid, const int *op); 
     593 
     594 
     595/* Begin Skip Prototypes for Fortran binding */ 
     596 
     597int ncmpi_put_var_long(int ncid, int varid, const long *op); 
     598 
     599/* End Skip Prototypes for Fortran binding */ 
     600 
     601 
     602int ncmpi_put_var_float(int ncid, int varid, const float *op); 
     603 
     604 
     605int ncmpi_put_var_double(int ncid, int varid, const double *op); 
     606 
     607 
     608/* Begin Skip Prototypes for Fortran binding */ 
     609int ncmpi_get_var_uchar(int ncid, int varid, unsigned char *ip); 
     610 
     611/* End Skip Prototypes for Fortran binding */ 
     612 
     613int ncmpi_get_var_schar(int ncid, int varid, signed char *ip); 
     614 
     615 
     616int ncmpi_get_var_text(int ncid, int varid, char *ip); 
     617 
     618 
     619int ncmpi_get_var_short(int ncid, int varid, short *ip); 
     620 
     621 
     622int ncmpi_get_var_int(int ncid, int varid, int *ip); 
     623 
     624 
     625/* Begin Skip Prototypes for Fortran binding */ 
     626 
     627int ncmpi_get_var_long(int ncid, int varid, long *ip); 
     628 
     629/* End Skip Prototypes for Fortran binding */ 
     630 
     631 
     632int ncmpi_get_var_float(int ncid, int varid, float *ip); 
     633 
     634 
     635int ncmpi_get_var_double(int ncid, int varid, double *ip); 
     636 
     637 
     638/* Begin Skip Prototypes for Fortran binding */ 
     639int ncmpi_get_var_uchar_all(int ncid, int varid, unsigned char *ip); 
     640/* End Skip Prototypes for Fortran binding */ 
     641 
     642 
     643int ncmpi_get_var_schar_all(int ncid, int varid, signed char *ip); 
     644 
     645 
     646int ncmpi_get_var_text_all(int ncid, int varid, char *ip); 
     647 
     648 
     649int ncmpi_get_var_short_all(int ncid, int varid, short *ip); 
     650 
     651 
     652int ncmpi_get_var_int_all(int ncid, int varid, int *ip); 
     653 
     654 
     655/* Begin Skip Prototypes for Fortran binding */ 
     656 
     657int ncmpi_get_var_long_all(int ncid, int varid, long *ip); 
     658 
     659/* End Skip Prototypes for Fortran binding */ 
     660 
     661 
     662int ncmpi_get_var_float_all(int ncid, int varid, float *ip); 
     663 
     664 
     665int ncmpi_get_var_double_all(int ncid, int varid, double *ip); 
    667666 
    668667/* End {put,get}_var */ 
     
    671670 
    672671 
    673 int ncmpi_put_vara_all(int ncid, int64_t varid, 
    674                    const int64_t start[], const int64_t count[], 
    675                    const void *buf, int64_t bufcount, 
     672int ncmpi_put_vara_all(int ncid, int varid, 
     673                   const MPI_Offset start[], const MPI_Offset count[], 
     674                   const void *buf, MPI_Offset bufcount, 
    676675                   MPI_Datatype datatype); 
    677676 
    678677 
    679 int ncmpi_get_vara_all(int ncid, int64_t varid, 
    680                    const int64_t start[], const int64_t count[], 
    681                    void *buf, int64_t bufcount, 
     678int ncmpi_get_vara_all(int ncid, int varid, 
     679                   const MPI_Offset start[], const MPI_Offset count[], 
     680                   void *buf, MPI_Offset bufcount, 
    682681                   MPI_Datatype datatype); 
    683682 
    684683 
    685 int ncmpi_put_vara(int ncid, int64_t varid, 
    686                const int64_t start[], const int64_t count[], 
    687                const void *buf, int64_t bufcount, 
     684int ncmpi_put_vara(int ncid, int varid, 
     685               const MPI_Offset start[], const MPI_Offset count[], 
     686               const void *buf, MPI_Offset bufcount, 
    688687               MPI_Datatype datatype); 
    689688 
    690689 
    691 int ncmpi_get_vara(int ncid, int64_t varid, 
    692                const int64_t start[], const int64_t count[], 
    693                void *buf, int64_t bufcount, 
     690int ncmpi_get_vara(int ncid, int varid, 
     691               const MPI_Offset start[], const MPI_Offset count[], 
     692               void *buf, MPI_Offset bufcount, 
    694693               MPI_Datatype datatype); 
    695694 
    696695 
    697696/* Begin Skip Prototypes for Fortran binding */ 
    698 int ncmpi_put_vara_uchar_all(int ncid, int64_t varid, 
    699                     const int64_t start[], const int64_t count[], 
     697int ncmpi_put_vara_uchar_all(int ncid, int varid, 
     698                    const MPI_Offset start[], const MPI_Offset count[], 
    700699                    const unsigned char *op); 
    701700 
    702701 
    703 int ncmpi_put_vara_uchar(int ncid, int64_t varid, 
    704                     const int64_t start[], const int64_t count[], 
     702int ncmpi_put_vara_uchar(int ncid, int varid, 
     703                    const MPI_Offset start[], const MPI_Offset count[], 
    705704                    const unsigned char *op); 
    706705 
    707706/* End Skip Prototypes for Fortran binding */ 
    708707 
    709 int ncmpi_put_vara_schar_all(int ncid, int64_t varid, 
    710                     const int64_t start[], const int64_t count[], 
     708int ncmpi_put_vara_schar_all(int ncid, int varid, 
     709                    const MPI_Offset start[], const MPI_Offset count[], 
    711710                    const signed char *op); 
    712711 
    713712 
    714 int ncmpi_put_vara_schar(int ncid, int64_t varid, 
    715                     const int64_t start[], const int64_t count[], 
     713int ncmpi_put_vara_schar(int ncid, int varid, 
     714                    const MPI_Offset start[], const MPI_Offset count[], 
    716715                    const signed char *op); 
    717716 
    718717 
    719 int ncmpi_put_vara_text_all(int ncid, int64_t varid, 
    720                     const int64_t start[], const int64_t count[], 
     718int ncmpi_put_vara_text_all(int ncid, int varid, 
     719                    const MPI_Offset start[], const MPI_Offset count[], 
    721720                    const char *op); 
    722721 
    723722 
    724 int ncmpi_put_vara_text(int ncid, int64_t varid, 
    725                     const int64_t start[], const int64_t count[], 
     723int ncmpi_put_vara_text(int ncid, int varid, 
     724                    const MPI_Offset start[], const MPI_Offset count[], 
    726725                    const char *op); 
    727726 
    728727 
    729 int ncmpi_put_vara_short_all(int ncid, int64_t varid, 
    730                     const int64_t start[], const int64_t count[], 
     728int ncmpi_put_vara_short_all(int ncid, int varid, 
     729                    const MPI_Offset start[], const MPI_Offset count[], 
    731730                    const short *op); 
    732731 
    733732 
    734 int ncmpi_put_vara_short(int ncid, int64_t varid, 
    735                     const int64_t start[], const int64_t count[], 
     733int ncmpi_put_vara_short(int ncid, int varid, 
     734                    const MPI_Offset start[], const MPI_Offset count[], 
    736735                    const short *op); 
    737736 
    738737 
    739 int ncmpi_put_vara_int_all(int ncid, int64_t varid, 
    740                     const int64_t start[], const int64_t count[], 
     738int ncmpi_put_vara_int_all(int ncid, int varid, 
     739                    const MPI_Offset start[], const MPI_Offset count[], 
    741740                    const int *op); 
    742741 
    743742 
    744 int ncmpi_put_vara_int(int ncid, int64_t varid, 
    745                 const int64_t start[], const int64_t count[], 
     743int ncmpi_put_vara_int(int ncid, int varid, 
     744                const MPI_Offset start[], const MPI_Offset count[], 
    746745                const int *op); 
    747746 
     
    749748/* Begin Skip Prototypes for Fortran binding */ 
    750749 
    751 int ncmpi_put_vara_long_all(int ncid, int64_t varid, 
    752                     const int64_t start[], const int64_t count[], 
     750int ncmpi_put_vara_long_all(int ncid, int varid, 
     751                    const MPI_Offset start[], const MPI_Offset count[], 
    753752                    const long *op); 
    754753 
    755754 
    756 int ncmpi_put_vara_long(int ncid, int64_t varid, 
    757                 const int64_t start[], const int64_t count[], 
     755int ncmpi_put_vara_long(int ncid, int varid, 
     756                const MPI_Offset start[], const MPI_Offset count[], 
    758757                const long *op); 
    759758 
     
    761760 
    762761 
    763 int ncmpi_put_vara_float_all(int ncid, int64_t varid, 
    764                     const int64_t start[], const int64_t count[], 
     762int ncmpi_put_vara_float_all(int ncid, int varid, 
     763                    const MPI_Offset start[], const MPI_Offset count[], 
    765764                    const float *op); 
    766765 
    767766 
    768 int ncmpi_put_vara_float(int ncid, int64_t varid, 
    769                 const int64_t start[], const int64_t count[], 
     767int ncmpi_put_vara_float(int ncid, int varid, 
     768                const MPI_Offset start[], const MPI_Offset count[], 
    770769                const float *op); 
    771770 
    772771 
    773 int ncmpi_put_vara_double_all(int ncid, int64_t varid, 
    774                     const int64_t start[], const int64_t count[], 
     772int ncmpi_put_vara_double_all(int ncid, int varid, 
     773                    const MPI_Offset start[], const MPI_Offset count[], 
    775774                    const double *op); 
    776775 
    777776 
    778 int ncmpi_put_vara_double(int ncid, int64_t varid, 
    779                 const int64_t start[], const int64_t count[], 
     777int ncmpi_put_vara_double(int ncid, int varid, 
     778                const MPI_Offset start[], const MPI_Offset count[], 
    780779                const double *op); 
    781780 
    782781 
    783782/* Begin Skip Prototypes for Fortran binding */ 
    784 int ncmpi_get_vara_uchar_all(int ncid, int64_t varid, 
    785                     const int64_t start[], const int64_t count[], 
     783int ncmpi_get_vara_uchar_all(int ncid, int varid, 
     784                    const MPI_Offset start[], const MPI_Offset count[], 
    786785                    unsigned char *ip); 
    787786 
    788787 
    789 int ncmpi_get_vara_uchar(int ncid, int64_t varid, 
    790                     const int64_t start[], const int64_t count[], 
     788int ncmpi_get_vara_uchar(int ncid, int varid, 
     789                    const MPI_Offset start[], const MPI_Offset count[], 
    791790                    unsigned char *ip); 
    792791/* End Skip Prototypes for Fortran binding */ 
    793792 
    794793 
    795 int ncmpi_get_vara_schar_all(int ncid, int64_t varid, 
    796                     const int64_t start[], const int64_t count[], 
     794int ncmpi_get_vara_schar_all(int ncid, int varid, 
     795                    const MPI_Offset start[], const MPI_Offset count[], 
    797796                    signed char *ip); 
    798797 
    799798 
    800 int ncmpi_get_vara_schar(int ncid, int64_t varid, 
    801                     const int64_t start[], const int64_t count[], 
     799int ncmpi_get_vara_schar(int ncid, int varid, 
     800                    const MPI_Offset start[], const MPI_Offset count[], 
    802801                    signed char *ip); 
    803802 
    804803 
    805 int ncmpi_get_vara_text_all(int ncid, int64_t varid, 
    806                     const int64_t start[], const int64_t count[], 
     804int ncmpi_get_vara_text_all(int ncid, int varid, 
     805                    const MPI_Offset start[], const MPI_Offset count[], 
    807806                    char *ip); 
    808807 
    809808 
    810 int ncmpi_get_vara_text(int ncid, int64_t varid, 
    811                     const int64_t start[], const int64_t count[], 
     809int ncmpi_get_vara_text(int ncid, int varid, 
     810                    const MPI_Offset start[], const MPI_Offset count[], 
    812811                    char *ip); 
    813812 
    814813 
    815 int ncmpi_get_vara_short_all(int ncid, int64_t varid, 
    816                     const int64_t start[], const int64_t count[], 
     814int ncmpi_get_vara_short_all(int ncid, int varid, 
     815                    const MPI_Offset start[], const MPI_Offset count[], 
    817816                    short *ip); 
    818817 
    819818 
    820 int ncmpi_get_vara_short(int ncid, int64_t varid, 
    821                     const int64_t start[], const int64_t count[], 
     819int ncmpi_get_vara_short(int ncid, int varid, 
     820                    const MPI_Offset start[], const MPI_Offset count[], 
    822821                    short *ip); 
    823822 
    824823 
    825 int ncmpi_get_vara_int_all(int ncid, int64_t varid, 
    826                     const int64_t start[], const int64_t count[], 
     824int ncmpi_get_vara_int_all(int ncid, int varid, 
     825                    const MPI_Offset start[], const MPI_Offset count[], 
    827826                    int *ip); 
    828827 
    829828 
    830 int ncmpi_get_vara_int(int ncid, int64_t varid, 
    831                 const int64_t start[], const int64_t count[], 
     829int ncmpi_get_vara_int(int ncid, int varid, 
     830                const MPI_Offset start[], const MPI_Offset count[], 
    832831                int *ip); 
    833832 
     
    835834/* Begin Skip Prototypes for Fortran binding */ 
    836835 
    837 int ncmpi_get_vara_long_all(int ncid, int64_t varid, 
    838                     const int64_t start[], const int64_t count[], 
     836int ncmpi_get_vara_long_all(int ncid, int varid, 
     837                    const MPI_Offset start[], const MPI_Offset count[], 
    839838                    long *ip); 
    840839 
    841840 
    842 int ncmpi_get_vara_long(int ncid, int64_t varid, 
    843                 const int64_t start[], const int64_t count[], 
     841int ncmpi_get_vara_long(int ncid, int varid, 
     842                const MPI_Offset start[], const MPI_Offset count[], 
    844843                long *ip); 
    845844 
     
    847846 
    848847 
    849 int ncmpi_get_vara_float_all(int ncid, int64_t varid, 
    850                     const int64_t start[], const int64_t count[], 
     848int ncmpi_get_vara_float_all(int ncid, int varid, 
     849                    const MPI_Offset start[], const MPI_Offset count[], 
    851850                    float *ip); 
    852851 
    853852 
    854 int ncmpi_get_vara_float(int ncid, int64_t varid, 
    855                 const int64_t start[], const int64_t count[], 
     853int ncmpi_get_vara_float(int ncid, int varid, 
     854                const MPI_Offset start[], const MPI_Offset count[], 
    856855                float *ip); 
    857856 
    858857 
    859 int ncmpi_get_vara_double_all(int ncid, int64_t varid, 
    860                     const int64_t start[], const int64_t count[], 
     858int ncmpi_get_vara_double_all(int ncid, int varid, 
     859                    const MPI_Offset start[], const MPI_Offset count[], 
    861860                    double *ip); 
    862861 
    863862 
    864 int ncmpi_get_vara_double(int ncid, int64_t varid, 
    865                 const int64_t start[], const int64_t count[], 
     863int ncmpi_get_vara_double(int ncid, int varid, 
     864                const MPI_Offset start[], const MPI_Offset count[], 
    866865                double *ip); 
    867866 
     
    871870 
    872871 
    873 int ncmpi_put_vars_all(int ncid, int64_t varid, 
    874                    const int64_t start[], 
    875                    const int64_t count[], 
    876                    const int64_t stride[], 
    877                    const void *buf, int64_t bufcount, 
     872int ncmpi_put_vars_all(int ncid, int varid, 
     873                   const MPI_Offset start[], 
     874                   const MPI_Offset count[], 
     875                   const MPI_Offset stride[], 
     876                   const void *buf, MPI_Offset bufcount, 
    878877                   MPI_Datatype datatype); 
    879878 
    880879 
    881 int ncmpi_get_vars_all(int ncid, int64_t varid, 
    882                    const int64_t start[], 
    883                    const int64_t count[], 
    884                    const int64_t stride[], 
    885                    void *buf, int64_t bufcount, 
     880int ncmpi_get_vars_all(int ncid, int varid, 
     881                   const MPI_Offset start[], 
     882                   const MPI_Offset count[], 
     883                   const MPI_Offset stride[], 
     884                   void *buf, MPI_Offset bufcount, 
    886885                   MPI_Datatype datatype); 
    887886 
    888887 
    889 int ncmpi_put_vars(int ncid, int64_t varid, 
    890                const int64_t start[], 
    891                const int64_t count[], 
    892                const int64_t stride[], 
    893                const void *buf, int64_t bufcount, 
     888int ncmpi_put_vars(int ncid, int varid, 
     889               const MPI_Offset start[], 
     890               const MPI_Offset count[], 
     891               const MPI_Offset stride[], 
     892               const void *buf, MPI_Offset bufcount, 
    894893               MPI_Datatype datatype); 
    895894 
    896895 
    897 int ncmpi_get_vars(int ncid, int64_t varid, 
    898                const int64_t start[], 
    899                const int64_t count[], 
    900                const int64_t stride[], 
    901                void *buf, int64_t bufcount, 
     896int ncmpi_get_vars(int ncid, int varid, 
     897               const MPI_Offset start[], 
     898               const MPI_Offset count[], 
     899               const MPI_Offset stride[], 
     900               void *buf, MPI_Offset bufcount, 
    902901               MPI_Datatype datatype); 
    903902 
    904903 
    905904/* Begin Skip Prototypes for Fortran binding */ 
    906 int ncmpi_put_vars_uchar_all(int ncid, int64_t varid, 
    907                         const int64_t start[], 
    908                         const int64_t count[], 
    909                         const int64_t stride[], 
     905int ncmpi_put_vars_uchar_all(int ncid, int varid, 
     906                        const MPI_Offset start[], 
     907                        const MPI_Offset count[], 
     908                        const MPI_Offset stride[], 
    910909                        const unsigned char *op); 
    911910 
    912911 
    913 int ncmpi_put_vars_uchar(int ncid, int64_t varid, 
    914                     const int64_t start[], 
    915                     const int64_t count[], 
    916                     const int64_t stride[], 
     912int ncmpi_put_vars_uchar(int ncid, int varid, 
     913                    const MPI_Offset start[], 
     914                    const MPI_Offset count[], 
     915                    const MPI_Offset stride[], 
    917916                    const unsigned char *op); 
    918917/* End Skip Prototypes for Fortran binding */ 
    919918 
    920919 
    921 int ncmpi_put_vars_schar_all(int ncid, int64_t varid, 
    922                         const int64_t start[], 
    923                         const int64_t count[], 
    924                         const int64_t stride[], 
     920int ncmpi_put_vars_schar_all(int ncid, int varid, 
     921                        const MPI_Offset start[], 
     922                        const MPI_Offset count[], 
     923                        const MPI_Offset stride[], 
    925924                        const signed char *op); 
    926925 
    927926 
    928 int ncmpi_put_vars_schar(int ncid, int64_t varid, 
    929                     const int64_t start[], 
    930                     const int64_t count[], 
    931                     const int64_t stride[], 
     927int ncmpi_put_vars_schar(int ncid, int varid, 
     928                    const MPI_Offset start[], 
     929                    const MPI_Offset count[], 
     930                    const MPI_Offset stride[], 
    932931                    const signed char *op); 
    933932 
    934933 
    935 int ncmpi_put_vars_text_all(int ncid, int64_t varid, 
    936                         const int64_t start[], 
    937                         const int64_t count[], 
    938                         const int64_t stride[], 
     934int ncmpi_put_vars_text_all(int ncid, int varid, 
     935                        const MPI_Offset start[], 
     936                        const MPI_Offset count[], 
     937                        const MPI_Offset stride[], 
    939938                        const char *op); 
    940939 
    941940 
    942 int ncmpi_put_vars_text(int ncid, int64_t varid, 
    943                     const int64_t start[], 
    944                     const int64_t count[], 
    945                     const int64_t stride[], 
     941int ncmpi_put_vars_text(int ncid, int varid, 
     942                    const MPI_Offset start[], 
     943                    const MPI_Offset count[], 
     944                    const MPI_Offset stride[], 
    946945                    const char *op); 
    947946 
    948947 
    949 int ncmpi_put_vars_short_all(int ncid, int64_t varid, 
    950                          const int64_t start[], 
    951                          const int64_t count[], 
    952                          const int64_t stride[], 
     948int ncmpi_put_vars_short_all(int ncid, int varid, 
     949                         const MPI_Offset start[], 
     950                         const MPI_Offset count[], 
     951                         const MPI_Offset stride[], 
    953952                         const short *op); 
    954953 
    955954 
    956 int ncmpi_put_vars_short(int ncid, int64_t varid, 
    957                      const int64_t start[], 
    958                      const int64_t count[], 
    959                      const int64_t stride[], 
     955int ncmpi_put_vars_short(int ncid, int varid, 
     956                     const MPI_Offset start[], 
     957                     const MPI_Offset count[], 
     958                     const MPI_Offset stride[], 
    960959                     const short *op); 
    961960 
    962961 
    963 int ncmpi_put_vars_int_all(int ncid, int64_t varid, 
    964                        const int64_t start[], 
    965                        const int64_t count[], 
    966                        const int64_t stride[], 
     962int ncmpi_put_vars_int_all(int ncid, int varid, 
     963                       const MPI_Offset start[], 
     964                       const MPI_Offset count[], 
     965                       const MPI_Offset stride[], 
    967966                       const int *op); 
    968967 
    969968 
    970 int ncmpi_put_vars_int(int ncid, int64_t varid, 
    971                    const int64_t start[], 
    972                    const int64_t count[], 
    973                    const int64_t stride[], 
     969int ncmpi_put_vars_int(int ncid, int varid, 
     970                   const MPI_Offset start[], 
     971                   const MPI_Offset count[], 
     972                   const MPI_Offset stride[], 
    974973                   const int *op); 
    975974 
     
    977976/* Begin Skip Prototypes for Fortran binding */ 
    978977 
    979 int ncmpi_put_vars_long_all(int ncid, int64_t varid, 
    980                        const int64_t start[], 
    981                        const int64_t count[], 
    982                        const int64_t stride[], 
     978int ncmpi_put_vars_long_all(int ncid, int varid, 
     979                       const MPI_Offset start[], 
     980                       const MPI_Offset count[], 
     981                       const MPI_Offset stride[], 
    983982                       const long *op); 
    984983 
    985984 
    986 int ncmpi_put_vars_long(int ncid, int64_t varid, 
    987                    const int64_t start[], 
    988                    const int64_t count[], 
    989                    const int64_t stride[], 
     985int ncmpi_put_vars_long(int ncid, int varid, 
     986                   const MPI_Offset start[], 
     987                   const MPI_Offset count[], 
     988                   const MPI_Offset stride[], 
    990989                   const long *op); 
    991990 
     
    993992 
    994993 
    995 int ncmpi_put_vars_float_all(int ncid, int64_t varid, 
    996                          const int64_t start[], 
    997                          const int64_t count[], 
    998                          const int64_t stride[], 
     994int ncmpi_put_vars_float_all(int ncid, int varid, 
     995                         const MPI_Offset start[], 
     996                         const MPI_Offset count[], 
     997                         const MPI_Offset stride[], 
    999998                         const float *op); 
    1000999 
    10011000 
    1002 int ncmpi_put_vars_float(int ncid, int64_t varid, 
    1003                      const int64_t start[], 
    1004                      const int64_t count[], 
    1005                      const int64_t stride[], 
     1001int ncmpi_put_vars_float(int ncid, int varid, 
     1002                     const MPI_Offset start[], 
     1003                     const MPI_Offset count[], 
     1004                     const MPI_Offset stride[], 
    10061005                     const float *op); 
    10071006 
    10081007 
    1009 int ncmpi_put_vars_double_all(int ncid, int64_t varid, 
    1010                           const int64_t start[], 
    1011                           const int64_t count[], 
    1012                           const int64_t stride[], 
     1008int ncmpi_put_vars_double_all(int ncid, int varid, 
     1009                          const MPI_Offset start[], 
     1010                          const MPI_Offset count[], 
     1011                          const MPI_Offset stride[], 
    10131012                          const double *op); 
    10141013 
    10151014 
    1016 int ncmpi_put_vars_double(int ncid, int64_t varid, 
    1017                       const int64_t start[], 
    1018                       const int64_t count[], 
    1019                       const int64_t stride[], 
     1015int ncmpi_put_vars_double(int ncid, int varid, 
     1016                      const MPI_Offset start[], 
     1017                      const MPI_Offset count[], 
     1018                      const MPI_Offset stride[], 
    10201019                      const double *op); 
    10211020 
    10221021 
    10231022/* Begin Skip Prototypes for Fortran binding */ 
    1024 int ncmpi_get_vars_uchar_all(int ncid, int64_t varid, 
    1025                         const int64_t start[], 
    1026                         const int64_t count[], 
    1027                         const int64_t stride[], 
     1023int ncmpi_get_vars_uchar_all(int ncid, int varid, 
     1024                        const MPI_Offset start[], 
     1025                        const MPI_Offset count[], 
     1026                        const MPI_Offset stride[], 
    10281027                        unsigned char *ip); 
    10291028 
    10301029 
    1031 int ncmpi_get_vars_uchar(int ncid, int64_t varid, 
    1032                     const int64_t start[], 
    1033                     const int64_t count[], 
    1034                     const int64_t stride[], 
     1030int ncmpi_get_vars_uchar(int ncid, int varid, 
     1031                    const MPI_Offset start[], 
     1032                    const MPI_Offset count[], 
     1033                    const MPI_Offset stride[], 
    10351034                    unsigned char *ip); 
    10361035 
    10371036/* End Skip Prototypes for Fortran binding */ 
    10381037 
    1039 int ncmpi_get_vars_schar_all(int ncid, int64_t varid, 
    1040                         const int64_t start[], 
    1041                         const int64_t count[], 
    1042                         const int64_t stride[], 
     1038int ncmpi_get_vars_schar_all(int ncid, int varid, 
     1039                        const MPI_Offset start[], 
     1040                        const MPI_Offset count[], 
     1041                        const MPI_Offset stride[], 
    10431042                        signed char *ip); 
    10441043 
    10451044 
    1046 int ncmpi_get_vars_schar(int ncid, int64_t varid, 
    1047                     const int64_t start[], 
    1048                     const int64_t count[], 
    1049                     const int64_t stride[], 
     1045int ncmpi_get_vars_schar(int ncid, int varid, 
     1046                    const MPI_Offset start[], 
     1047                    const MPI_Offset count[], 
     1048                    const MPI_Offset stride[], 
    10501049                    signed char *ip); 
    10511050 
    10521051 
    1053 int ncmpi_get_vars_text_all(int ncid, int64_t varid, 
    1054                         const int64_t start[], 
    1055                         const int64_t count[], 
    1056                         const int64_t stride[], 
     1052int ncmpi_get_vars_text_all(int ncid, int varid, 
     1053                        const MPI_Offset start[], 
     1054                        const MPI_Offset count[], 
     1055                        const MPI_Offset stride[], 
    10571056                        char *ip); 
    10581057 
    10591058 
    1060 int ncmpi_get_vars_text(int ncid, int64_t varid, 
    1061                     const int64_t start[], 
    1062                     const int64_t count[], 
    1063                     const int64_t stride[], 
     1059int ncmpi_get_vars_text(int ncid, int varid, 
     1060                    const MPI_Offset start[], 
     1061                    const MPI_Offset count[], 
     1062                    const MPI_Offset stride[], 
    10641063                    char *ip); 
    10651064 
    10661065 
    1067 int ncmpi_get_vars_short_all(int ncid, int64_t varid, 
    1068                          const int64_t start[], 
    1069                          const int64_t count[], 
    1070                          const int64_t stride[], 
     1066int ncmpi_get_vars_short_all(int ncid, int varid, 
     1067                         const MPI_Offset start[], 
     1068                         const MPI_Offset count[], 
     1069                         const MPI_Offset stride[], 
    10711070                         short *ip); 
    10721071 
    10731072 
    1074 int ncmpi_get_vars_short(int ncid, int64_t varid, 
    1075                      const int64_t start[], 
    1076                      const int64_t count[], 
    1077                      const int64_t stride[], 
     1073int ncmpi_get_vars_short(int ncid, int varid, 
     1074                     const MPI_Offset start[], 
     1075                     const MPI_Offset count[], 
     1076                     const MPI_Offset stride[], 
    10781077                     short *ip); 
    10791078 
    10801079 
    1081 int ncmpi_get_vars_int_all(int ncid, int64_t varid, 
    1082                        const int64_t start[], 
    1083                        const int64_t count[], 
    1084                        const int64_t stride[], 
     1080int ncmpi_get_vars_int_all(int ncid, int varid, 
     1081                       const MPI_Offset start[], 
     1082                       const MPI_Offset count[], 
     1083                       const MPI_Offset stride[], 
    10851084                       int *ip); 
    10861085 
    10871086 
    1088 int ncmpi_get_vars_int(int ncid, int64_t varid, 
    1089                    const int64_t start[], 
    1090                    const int64_t count[], 
    1091                    const int64_t stride[], 
     1087int ncmpi_get_vars_int(int ncid, int varid, 
     1088                   const MPI_Offset start[], 
     1089                   const MPI_Offset count[], 
     1090                   const MPI_Offset stride[], 
    10921091                   int *ip); 
    10931092 
     
    10951094/* Begin Skip Prototypes for Fortran binding */ 
    10961095 
    1097 int ncmpi_get_vars_long_all(int ncid, int64_t varid, 
    1098                        const int64_t start[], 
    1099                        const int64_t count[], 
    1100                        const int64_t stride[], 
     1096int ncmpi_get_vars_long_all(int ncid, int varid, 
     1097                       const MPI_Offset start[], 
     1098                       const MPI_Offset count[], 
     1099                       const MPI_Offset stride[], 
    11011100                       long *ip); 
    11021101 
    11031102 
    1104 int ncmpi_get_vars_long(int ncid, int64_t varid, 
    1105                    const int64_t start[], 
    1106                    const int64_t count[], 
    1107                    const int64_t stride[], 
     1103int ncmpi_get_vars_long(int ncid, int varid, 
     1104                   const MPI_Offset start[], 
     1105                   const MPI_Offset count[], 
     1106                   const MPI_Offset stride[], 
    11081107                   long *ip); 
    11091108 
     
    11111110 
    11121111 
    1113 int ncmpi_get_vars_float_all(int ncid, int64_t varid, 
    1114                          const int64_t start[], 
    1115                          const int64_t count[], 
    1116                          const int64_t stride[], 
     1112int ncmpi_get_vars_float_all(int ncid, int varid, 
     1113                         const MPI_Offset start[], 
     1114                         const MPI_Offset count[], 
     1115                         const MPI_Offset stride[], 
    11171116                         float *ip); 
    11181117 
    11191118 
    1120 int ncmpi_get_vars_float(int ncid, int64_t varid, 
    1121                      const int64_t start[], 
    1122                      const int64_t count[], 
    1123                      const int64_t stride[], 
     1119int ncmpi_get_vars_float(int ncid, int varid, 
     1120                     const MPI_Offset start[], 
     1121                     const MPI_Offset count[], 
     1122                     const MPI_Offset stride[], 
    11241123                     float *ip); 
    11251124 
    11261125 
    1127 int ncmpi_get_vars_double_all(int ncid, int64_t varid, 
    1128                           const int64_t start[], 
    1129                           const int64_t count[], 
    1130                           const int64_t stride[], 
     1126int ncmpi_get_vars_double_all(int ncid, int varid, 
     1127                          const MPI_Offset start[], 
     1128                          const MPI_Offset count[], 
     1129                          const MPI_Offset stride[], 
    11311130                          double *ip); 
    11321131 
    11331132 
    1134 int ncmpi_get_vars_double(int ncid, int64_t varid, 
    1135                       const int64_t start[], 
    1136                       const int64_t count[], 
    1137                       const int64_t stride[], 
     1133int ncmpi_get_vars_double(int ncid, int varid, 
     1134                      const MPI_Offset start[], 
     1135                      const MPI_Offset count[], 
     1136                      const MPI_Offset stride[], 
    11381137                      double *ip); 
    11391138 
     
    11431142 
    11441143 
    1145 int ncmpi_put_varm_all(int ncid, int64_t varid, 
    1146                    const int64_t start[], 
    1147                    const int64_t count[], 
    1148                    const int64_t stride[], 
    1149                    const int64_t imap[], 
    1150                    const void *buf, int64_t bufcount, 
     1144int ncmpi_put_varm_all(int ncid, int varid, 
     1145                   const MPI_Offset start[], 
     1146                   const MPI_Offset count[], 
     1147                   const MPI_Offset stride[], 
     1148                   const MPI_Offset imap[], 
     1149                   const void *buf, MPI_Offset bufcount, 
    11511150                   MPI_Datatype datatype); 
    11521151 
    11531152 
    1154 int ncmpi_get_varm_all(int ncid, int64_t varid, 
    1155                    const int64_t start[], 
    1156                    const int64_t count[], 
    1157                    const int64_t stride[], 
    1158                    const int64_t imap[], 
    1159                    void *buf, int64_t bufcount, 
     1153int ncmpi_get_varm_all(int ncid, int varid, 
     1154                   const MPI_Offset start[], 
     1155                   const MPI_Offset count[], 
     1156                   const MPI_Offset stride[], 
     1157                   const MPI_Offset imap[], 
     1158                   void *buf, MPI_Offset bufcount, 
    11601159                   MPI_Datatype datatype); 
    11611160 
    11621161 
    1163 int ncmpi_put_varm(int ncid, int64_t varid, 
    1164                const int64_t start[], 
    1165                const int64_t count[], 
    1166                const int64_t stride[], 
    1167                const int64_t imap[], 
    1168                const void *buf, int64_t bufcount, 
     1162int ncmpi_put_varm(int ncid, int varid, 
     1163               const MPI_Offset start[], 
     1164               const MPI_Offset count[], 
     1165               const MPI_Offset stride[], 
     1166               const MPI_Offset imap[], 
     1167               const void *buf, MPI_Offset bufcount, 
    11691168               MPI_Datatype datatype); 
    11701169 
    11711170 
    1172 int ncmpi_get_varm(int ncid, int64_t varid, 
    1173                const int64_t start[], 
    1174                const int64_t count[], 
    1175                const int64_t stride[], 
    1176                const int64_t imap[], 
    1177                void *buf, int64_t bufcount, 
     1171int ncmpi_get_varm(int ncid, int varid, 
     1172               const MPI_Offset start[], 
     1173               const MPI_Offset count[], 
     1174               const MPI_Offset stride[], 
     1175               const MPI_Offset imap[], 
     1176               void *buf, MPI_Offset bufcount, 
    11781177               MPI_Datatype datatype); 
    11791178 
    11801179 
    11811180/* Begin Skip Prototypes for Fortran binding */ 
    1182 int ncmpi_put_varm_uchar_all(int ncid, int64_t varid, 
    1183                         const int64_t start[], 
    1184                         const int64_t count[], 
    1185                         const int64_t stride[], 
    1186                         const int64_t imap[], 
     1181int ncmpi_put_varm_uchar_all(int ncid, int varid, 
     1182                        const MPI_Offset start[], 
     1183                        const MPI_Offset count[], 
     1184                        const MPI_Offset stride[], 
     1185                        const MPI_Offset imap[], 
    11871186                        const unsigned char *op); 
    11881187 
    11891188 
    1190 int ncmpi_put_varm_uchar(int ncid, int64_t varid, 
    1191                     const int64_t start[], 
    1192                     const int64_t count[], 
    1193                     const int64_t stride[], 
    1194                     const int64_t imap[], 
     1189int ncmpi_put_varm_uchar(int ncid, int varid, 
     1190                    const MPI_Offset start[], 
     1191                    const MPI_Offset count[], 
     1192                    const MPI_Offset stride[], 
     1193                    const MPI_Offset imap[], 
    11951194                    const unsigned char *op); 
    11961195/* End Skip Prototypes for Fortran binding */ 
    11971196 
    11981197 
    1199 int ncmpi_put_varm_schar_all(int ncid, int64_t varid, 
    1200                         const int64_t start[], 
    1201                         const int64_t count[], 
    1202                         const int64_t stride[], 
    1203                         const int64_t imap[], 
     1198int ncmpi_put_varm_schar_all(int ncid, int varid, 
     1199                        const MPI_Offset start[], 
     1200                        const MPI_Offset count[], 
     1201                        const MPI_Offset stride[], 
     1202                        const MPI_Offset imap[], 
    12041203                        const signed char *op); 
    12051204 
    12061205 
    1207 int ncmpi_put_varm_schar(int ncid, int64_t varid, 
    1208                     const int64_t start[], 
    1209                     const int64_t count[], 
    1210                     const int64_t stride[], 
    1211                     const int64_t imap[], 
     1206int ncmpi_put_varm_schar(int ncid, int varid, 
     1207                    const MPI_Offset start[], 
     1208                    const MPI_Offset count[], 
     1209                    const MPI_Offset stride[], 
     1210                    const MPI_Offset imap[], 
    12121211                    const signed char *op); 
    12131212 
    12141213 
    1215 int ncmpi_put_varm_text_all(int ncid, int64_t varid, 
    1216                         const int64_t start[], 
    1217                         const int64_t count[], 
    1218                         const int64_t stride[], 
    1219                         const int64_t imap[], 
     1214int ncmpi_put_varm_text_all(int ncid, int varid, 
     1215                        const MPI_Offset start[], 
     1216                        const MPI_Offset count[], 
     1217                        const MPI_Offset stride[], 
     1218                        const MPI_Offset imap[], 
    12201219                        const char *op); 
    12211220 
    12221221 
    1223 int ncmpi_put_varm_text(int ncid, int64_t varid, 
    1224                     const int64_t start[], 
    1225                     const int64_t count[], 
    1226                     const int64_t stride[], 
    1227                     const int64_t imap[], 
     1222int ncmpi_put_varm_text(int ncid, int varid, 
     1223                    const MPI_Offset start[], 
     1224                    const MPI_Offset count[], 
     1225                    const MPI_Offset stride[], 
     1226                    const MPI_Offset imap[], 
    12281227                    const char *op); 
    12291228 
    12301229 
    1231 int ncmpi_put_varm_short_all(int ncid, int64_t varid, 
    1232                          const int64_t start[], 
    1233                          const int64_t count[], 
    1234                          const int64_t stride[], 
    1235                          const int64_t imap[], 
     1230int ncmpi_put_varm_short_all(int ncid, int varid, 
     1231                         const MPI_Offset start[], 
     1232                         const MPI_Offset count[], 
     1233                         const MPI_Offset stride[], 
     1234                         const MPI_Offset imap[], 
    12361235                         const short *op); 
    12371236 
    12381237 
    1239 int ncmpi_put_varm_short(int ncid, int64_t varid, 
    1240                      const int64_t start[], 
    1241                      const int64_t count[], 
    1242                      const int64_t stride[], 
    1243                      const int64_t imap[], 
     1238int ncmpi_put_varm_short(int ncid, int varid, 
     1239                     const MPI_Offset start[], 
     1240                     const MPI_Offset count[], 
     1241                     const MPI_Offset stride[], 
     1242                     const MPI_Offset imap[], 
    12441243                     const short *op); 
    12451244 
    12461245 
    1247 int ncmpi_put_varm_int_all(int ncid, int64_t varid, 
    1248                        const int64_t start[], 
    1249                        const int64_t count[], 
    1250                        const int64_t stride[], 
    1251                        const int64_t imap[], 
     1246int ncmpi_put_varm_int_all(int ncid, int varid, 
     1247                       const MPI_Offset start[], 
     1248                       const MPI_Offset count[], 
     1249                       const MPI_Offset stride[], 
     1250                       const MPI_Offset imap[], 
    12521251                       const int *op); 
    12531252 
    12541253 
    1255 int ncmpi_put_varm_int(int ncid, int64_t varid, 
    1256                    const int64_t start[], 
    1257                    const int64_t count[], 
    1258                    const int64_t stride[], 
    1259                    const int64_t imap[], 
     1254int ncmpi_put_varm_int(int ncid, int varid, 
     1255                   const MPI_Offset start[], 
     1256                   const MPI_Offset count[], 
     1257                   const MPI_Offset stride[], 
     1258                   const MPI_Offset imap[], 
    12601259                   const int *op); 
    12611260 
     
    12631262/* Begin Skip Prototypes for Fortran binding */ 
    12641263 
    1265 int ncmpi_put_varm_long_all(int ncid, int64_t varid, 
    1266                        const int64_t start[], 
    1267                        const int64_t count[], 
    1268                        const int64_t stride[], 
    1269                        const int64_t imap[], 
     1264int ncmpi_put_varm_long_all(int ncid, int varid, 
     1265                       const MPI_Offset start[], 
     1266                       const MPI_Offset count[], 
     1267                       const MPI_Offset stride[], 
     1268                       const MPI_Offset imap[], 
    12701269                       const long *op); 
    12711270 
    12721271 
    1273 int ncmpi_put_varm_long(int ncid, int64_t varid, 
    1274                    const int64_t start[], 
    1275                    const int64_t count[], 
    1276                    const int64_t stride[], 
    1277                    const int64_t imap[], 
     1272int ncmpi_put_varm_long(int ncid, int varid, 
     1273                   const MPI_Offset start[], 
     1274                   const MPI_Offset count[], 
     1275                   const MPI_Offset stride[], 
     1276                   const MPI_Offset imap[], 
    12781277                   const long *op); 
    12791278 
     
    12811280 
    12821281 
    1283 int ncmpi_put_varm_float_all(int ncid, int64_t varid, 
    1284                          const int64_t start[], 
    1285                          const int64_t count[], 
    1286                          const int64_t stride[], 
    1287                          const int64_t imap[], 
     1282int ncmpi_put_varm_float_all(int ncid, int varid, 
     1283                         const MPI_Offset start[], 
     1284                         const MPI_Offset count[], 
     1285                         const MPI_Offset stride[], 
     1286                         const MPI_Offset imap[], 
    12881287                         const float *op); 
    12891288 
    12901289 
    1291 int ncmpi_put_varm_float(int ncid, int64_t varid, 
    1292                      const int64_t start[], 
    1293                      const int64_t count[], 
    1294                      const int64_t stride[], 
    1295                      const int64_t imap[], 
     1290int ncmpi_put_varm_float(int ncid, int varid, 
     1291                     const MPI_Offset start[], 
     1292                     const MPI_Offset count[], 
     1293                     const MPI_Offset stride[], 
     1294                     const MPI_Offset imap[], 
    12961295                     const float *op); 
    12971296 
    12981297 
    1299 int ncmpi_put_varm_double_all(int ncid, int64_t varid, 
    1300                           const int64_t start[], 
    1301                           const int64_t count[], 
    1302                           const int64_t stride[], 
    1303                           const int64_t imap[], 
     1298int ncmpi_put_varm_double_all(int ncid, int varid, 
     1299                          const MPI_Offset start[], 
     1300                          const MPI_Offset count[], 
     1301                          const MPI_Offset stride[], 
     1302                          const MPI_Offset imap[], 
    13041303                          const double *op); 
    13051304 
    13061305 
    1307 int ncmpi_put_varm_double(int ncid, int64_t varid, 
    1308                       const int64_t start[], 
    1309                       const int64_t count[], 
    1310                       const int64_t stride[], 
    1311                       const int64_t imap[], 
     1306int ncmpi_put_varm_double(int ncid, int varid, 
     1307                      const MPI_Offset start[], 
     1308                      const MPI_Offset count[], 
     1309                      const MPI_Offset stride[], 
     1310                      const MPI_Offset imap[], 
    13121311                      const double *op); 
    13131312 
    13141313 
    13151314/* Begin Skip Prototypes for Fortran binding */ 
    1316 int ncmpi_get_varm_uchar_all(int ncid, int64_t varid, 
    1317                         const int64_t start[], 
    1318                         const int64_t count[], 
    1319                         const int64_t stride[], 
    1320                         const int64_t imap[], 
     1315int ncmpi_get_varm_uchar_all(int ncid, int varid, 
     1316                        const MPI_Offset start[], 
     1317                        const MPI_Offset count[], 
     1318                        const MPI_Offset stride[], 
     1319                        const MPI_Offset imap[], 
    13211320                        unsigned char *ip); 
    13221321 
    13231322 
    1324 int ncmpi_get_varm_uchar(int ncid, int64_t varid, 
    1325                     const int64_t start[], 
    1326                     const int64_t count[], 
    1327                     const int64_t stride[], 
    1328                     const int64_t imap[], 
     1323int ncmpi_get_varm_uchar(int ncid, int varid, 
     1324                    const MPI_Offset start[], 
     1325                    const MPI_Offset count[], 
     1326                    const MPI_Offset stride[], 
     1327                    const MPI_Offset imap[], 
    13291328                    unsigned char *ip); 
    13301329 
    13311330/* End Skip Prototypes for Fortran binding */ 
    13321331 
    1333 int ncmpi_get_varm_schar_all(int ncid, int64_t varid, 
    1334                         const int64_t start[], 
    1335                         const int64_t count[], 
    1336                         const int64_t stride[], 
    1337                         const int64_t imap[], 
     1332int ncmpi_get_varm_schar_all(int ncid, int varid, 
     1333                        const MPI_Offset start[], 
     1334                        const MPI_Offset count[], 
     1335                        const MPI_Offset stride[], 
     1336                        const MPI_Offset imap[], 
    13381337                        signed char *ip); 
    13391338 
    13401339 
    1341 int ncmpi_get_varm_schar(int ncid, int64_t varid, 
    1342                     const int64_t start[], 
    1343                     const int64_t count[], 
    1344                     const int64_t stride[], 
    1345                     const int64_t imap[], 
     1340int ncmpi_get_varm_schar(int ncid, int varid, 
     1341                    const MPI_Offset start[], 
     1342                    const MPI_Offset count[], 
     1343                    const MPI_Offset stride[], 
     1344                    const MPI_Offset imap[], 
    13461345                    signed char *ip); 
    13471346 
    13481347 
    1349 int ncmpi_get_varm_text_all(int ncid, int64_t varid, 
    1350                         const int64_t start[], 
    1351                         const int64_t count[], 
    1352                         const int64_t stride[], 
    1353                         const int64_t imap[], 
     1348int ncmpi_get_varm_text_all(int ncid, int varid, 
     1349                        const MPI_Offset start[], 
     1350                        const MPI_Offset count[], 
     1351                        const MPI_Offset stride[], 
     1352                        const MPI_Offset imap[], 
    13541353                        char *ip); 
    13551354 
    13561355 
    1357 int ncmpi_get_varm_text(int ncid, int64_t varid, 
    1358                     const int64_t start[], 
    1359                     const int64_t count[], 
    1360                     const int64_t stride[], 
    1361                     const int64_t imap[], 
     1356int ncmpi_get_varm_text(int ncid, int varid, 
     1357                    const MPI_Offset start[], 
     1358                    const MPI_Offset count[], 
     1359                    const MPI_Offset stride[], 
     1360                    const MPI_Offset imap[], 
    13621361                    char *ip); 
    13631362 
    13641363 
    1365 int ncmpi_get_varm_short_all(int ncid, int64_t varid, 
    1366                          const int64_t start[], 
    1367                          const int64_t count[], 
    1368                          const int64_t stride[], 
    1369                          const int64_t imap[], 
     1364int ncmpi_get_varm_short_all(int ncid, int varid, 
     1365                         const MPI_Offset start[], 
     1366                         const MPI_Offset count[], 
     1367                         const MPI_Offset stride[], 
     1368                         const MPI_Offset imap[], 
    13701369                         short *ip); 
    13711370 
    13721371 
    1373 int ncmpi_get_varm_short(int ncid, int64_t varid, 
    1374                      const int64_t start[], 
    1375                      const int64_t count[], 
    1376                      const int64_t stride[], 
    1377                      const int64_t imap[], 
     1372int ncmpi_get_varm_short(int ncid, int varid, 
     1373                     const MPI_Offset start[], 
     1374                     const MPI_Offset count[], 
     1375                     const MPI_Offset stride[], 
     1376                     const MPI_Offset imap[], 
    13781377                     short *ip); 
    13791378 
    13801379 
    1381 int ncmpi_get_varm_int_all(int ncid, int64_t varid, 
    1382                        const int64_t start[], 
    1383                        const int64_t count[], 
    1384                        const int64_t stride[], 
    1385                        const int64_t imap[], 
     1380int ncmpi_get_varm_int_all(int ncid, int varid, 
     1381                       const MPI_Offset start[], 
     1382                       const MPI_Offset count[], 
     1383                       const MPI_Offset stride[], 
     1384                       const MPI_Offset imap[], 
    13861385                       int *ip); 
    13871386 
    13881387 
    1389 int ncmpi_get_varm_int(int ncid, int64_t varid, 
    1390                    const int64_t start[], 
    1391                    const int64_t count[], 
    1392                    const int64_t stride[], 
    1393                    const int64_t imap[], 
     1388int ncmpi_get_varm_int(int ncid, int varid, 
     1389                   const MPI_Offset start[], 
     1390                   const MPI_Offset count[], 
     1391                   const MPI_Offset stride[], 
     1392                   const MPI_Offset imap[], 
    13941393                   int *ip); 
    13951394 
     
    13971396/* Begin Skip Prototypes for Fortran binding */ 
    13981397 
    1399 int ncmpi_get_varm_long_all(int ncid, int64_t varid, 
    1400                        const int64_t start[], 
    1401                        const int64_t count[], 
    1402                        const int64_t stride[], 
    1403                        const int64_t imap[], 
     1398int ncmpi_get_varm_long_all(int ncid, int varid, 
     1399                       const MPI_Offset start[], 
     1400                       const MPI_Offset count[], 
     1401                       const MPI_Offset stride[], 
     1402                       const MPI_Offset imap[], 
    14041403                       long *ip); 
    14051404 
    14061405 
    1407 int ncmpi_get_varm_long(int ncid, int64_t varid, 
    1408                    const int64_t start[], 
    1409                    const int64_t count[], 
    1410                    const int64_t stride[], 
    1411                    const int64_t imap[], 
     1406int ncmpi_get_varm_long(int ncid, int varid, 
     1407                   const MPI_Offset start[], 
     1408                   const MPI_Offset count[], 
     1409                   const MPI_Offset stride[], 
     1410                   const MPI_Offset imap[], 
    14121411                   long *ip); 
    14131412 
     
    14151414 
    14161415 
    1417 int ncmpi_get_varm_float_all(int ncid, int64_t varid, 
    1418                          const int64_t start[], 
    1419                          const int64_t count[], 
    1420                          const int64_t stride[], 
    1421                          const int64_t imap[], 
     1416int ncmpi_get_varm_float_all(int ncid, int varid, 
     1417                         const MPI_Offset start[], 
     1418                         const MPI_Offset count[], 
     1419                         const MPI_Offset stride[], 
     1420                         const MPI_Offset imap[], 
    14221421                         float *ip); 
    14231422 
    14241423 
    1425 int ncmpi_get_varm_float(int ncid, int64_t varid, 
    1426                      const int64_t start[], 
    1427                      const int64_t count[], 
    1428                      const int64_t stride[], 
    1429                      const int64_t imap[], 
     1424int ncmpi_get_varm_float(int ncid, int varid, 
     1425                     const MPI_Offset start[], 
     1426                     const MPI_Offset count[], 
     1427                     const MPI_Offset stride[], 
     1428                     const MPI_Offset imap[], 
    14301429                     float *ip); 
    14311430 
    14321431 
    1433 int ncmpi_get_varm_double_all(int ncid, int64_t varid, 
    1434                           const int64_t start[], 
    1435                           const int64_t count[], 
    1436                           const int64_t stride[], 
    1437                           const int64_t imap[], 
     1432int ncmpi_get_varm_double_all(int ncid, int varid, 
     1433                          const MPI_Offset start[], 
     1434                          const MPI_Offset count[], 
     1435                          const MPI_Offset stride[], 
     1436                          const MPI_Offset imap[], 
    14381437                          double *ip); 
    14391438 
    14401439 
    1441 int ncmpi_get_varm_double(int ncid, int64_t varid, 
    1442                       const int64_t start[], 
    1443                       const int64_t count[], 
    1444                       const int64_t stride[], 
    1445                       const int64_t imap[], 
     1440int ncmpi_get_varm_double(int ncid, int varid, 
     1441                      const MPI_Offset start[], 
     1442                      const MPI_Offset count[], 
     1443                      const MPI_Offset stride[], 
     1444                      const MPI_Offset imap[], 
    14461445                      double *ip); 
    14471446 
     
    14951494 
    14961495 
    1497 int ncmpi_iput_var1(int ncid, int64_t varid, 
    1498                const int64_t index[], 
    1499                const void *buf, int64_t bufcount, 
     1496int ncmpi_iput_var1(int ncid, int varid, 
     1497               const MPI_Offset index[], 
     1498               const void *buf, MPI_Offset bufcount, 
    15001499               MPI_Datatype datatype, NCMPI_Request *request); 
    15011500 
    15021501 
    1503 int ncmpi_iget_var1(int ncid, int64_t varid, 
    1504                const int64_t index[], 
    1505                void *buf, int64_t bufcount, 
     1502int ncmpi_iget_var1(int ncid, int varid, 
     1503               const MPI_Offset index[], 
     1504               void *buf, MPI_Offset bufcount, 
    15061505               MPI_Datatype datatype, NCMPI_Request *request); 
    15071506 
    15081507 
    15091508/* Begin Skip Prototypes for Fortran binding */ 
    1510 int ncmpi_iput_var1_uchar(int ncid, int64_t varid, 
    1511                     const int64_t index[], 
     1509int ncmpi_iput_var1_uchar(int ncid, int varid, 
     1510                    const MPI_Offset index[], 
    15121511                    const unsigned char *op, NCMPI_Request *request); 
    15131512/* End Skip Prototypes for Fortran binding */ 
    15141513 
    1515 int ncmpi_iput_var1_schar(int ncid, int64_t varid, 
    1516                     const int64_t index[], 
     1514int ncmpi_iput_var1_schar(int ncid, int varid, 
     1515                    const MPI_Offset index[], 
    15171516                    const signed char *op, NCMPI_Request *request); 
    15181517 
    15191518 
    1520 int ncmpi_iput_var1_text(int ncid, int64_t varid, 
    1521                     const int64_t index[], 
     1519int ncmpi_iput_var1_text(int ncid, int varid, 
     1520                    const MPI_Offset index[], 
    15221521                    const char *op, NCMPI_Request *request); 
    15231522 
    15241523 
    1525 int ncmpi_iput_var1_short(int ncid, int64_t varid, 
    1526                      const int64_t index[], 
     1524int ncmpi_iput_var1_short(int ncid, int varid, 
     1525                     const MPI_Offset index[], 
    15271526                     const short *op, NCMPI_Request *request); 
    15281527 
    15291528 
    1530 int ncmpi_iput_var1_int(int ncid, int64_t varid, 
    1531                    const int64_t index[], 
     1529int ncmpi_iput_var1_int(int ncid, int varid, 
     1530                   const MPI_Offset index[], 
    15321531                   const int *op, NCMPI_Request *request); 
    15331532 
     
    15351534/* Begin Skip Prototypes for Fortran binding */ 
    15361535 
    1537 int ncmpi_iput_var1_long(int ncid, int64_t varid, 
    1538                    const int64_t index[], 
     1536int ncmpi_iput_var1_long(int ncid, int varid, 
     1537                   const MPI_Offset index[], 
    15391538                   const long *ip, NCMPI_Request *request); 
    15401539 
     
    15421541 
    15431542 
    1544 int ncmpi_iput_var1_float(int ncid, int64_t varid, 
    1545                      const int64_t index[], 
     1543int ncmpi_iput_var1_float(int ncid, int varid, 
     1544                     const MPI_Offset index[], 
    15461545                     const float *op, NCMPI_Request *request); 
    15471546 
    15481547 
    1549 int ncmpi_iput_var1_double(int ncid, int64_t varid, 
    1550                       const int64_t index[], 
     1548int ncmpi_iput_var1_double(int ncid, int varid, 
     1549                      const MPI_Offset index[], 
    15511550                      const double *op, NCMPI_Request *request); 
    15521551 
    15531552 
    15541553/* Begin Skip Prototypes for Fortran binding */ 
    1555 int ncmpi_iget_var1_uchar(int ncid, int64_t varid, 
    1556                     const int64_t index[], 
     1554int ncmpi_iget_var1_uchar(int ncid, int varid, 
     1555                    const MPI_Offset index[], 
    15571556                    unsigned char *ip, NCMPI_Request *request); 
    15581557 
    15591558/* End Skip Prototypes for Fortran binding */ 
    15601559 
    1561 int ncmpi_iget_var1_schar(int ncid, int64_t varid, 
    1562                     const int64_t index[], 
     1560int ncmpi_iget_var1_schar(int ncid, int varid, 
     1561                    const MPI_Offset index[], 
    15631562                    signed char *ip, NCMPI_Request *request); 
    15641563 
    15651564 
    1566 int ncmpi_iget_var1_text(int ncid, int64_t varid, 
    1567                     const int64_t index[], 
     1565int ncmpi_iget_var1_text(int ncid, int varid, 
     1566                    const MPI_Offset index[], 
    15681567                    char *ip, NCMPI_Request *request); 
    15691568 
    15701569 
    1571 int ncmpi_iget_var1_short(int ncid, int64_t varid, 
    1572                      const int64_t index[], 
     1570int ncmpi_iget_var1_short(int ncid, int varid, 
     1571                     const MPI_Offset index[], 
    15731572                     short *ip, NCMPI_Request *request); 
    15741573 
    15751574 
    1576 int ncmpi_iget_var1_int(int ncid, int64_t varid, 
    1577                    const int64_t index[], 
     1575int ncmpi_iget_var1_int(int ncid, int varid, 
     1576                   const MPI_Offset index[], 
    15781577                   int *ip, NCMPI_Request *request); 
    15791578 
     
    15811580/* Begin Skip Prototypes for Fortran binding */ 
    15821581 
    1583 int ncmpi_iget_var1_long(int ncid, int64_t varid, 
    1584                    const int64_t index[], 
     1582int ncmpi_iget_var1_long(int ncid, int varid, 
     1583                   const MPI_Offset index[], 
    15851584                   long *ip, NCMPI_Request *request); 
    15861585 
     
    15881587 
    15891588 
    1590 int ncmpi_iget_var1_float(int ncid, int64_t varid, 
    1591                      const int64_t index[], 
     1589int ncmpi_iget_var1_float(int ncid, int varid, 
     1590                     const MPI_Offset index[], 
    15921591                     float *ip, NCMPI_Request *request); 
    15931592 
    15941593 
    1595 int ncmpi_iget_var1_double(int ncid, int64_t varid, 
    1596                       const int64_t index[], 
     1594int ncmpi_iget_var1_double(int ncid, int varid, 
     1595                      const MPI_Offset index[], 
    15971596                      double *ip, NCMPI_Request *request); 
    15981597 
     
    16021601 
    16031602 
    1604 int ncmpi_iput_var(int ncid, int64_t varid, const void *buf, int64_t bufcount, MPI_Datatype datatype, NCMPI_Request *request); 
    1605  
    1606  
    1607 int ncmpi_iget_var(int ncid, int64_t varid, void *buf, int64_t bufcount, MPI_Datatype datatype, NCMPI_Request *request); 
    1608  
    1609  
    1610 /* Begin Skip Prototypes for Fortran binding */ 
    1611 int ncmpi_iput_var_uchar(int ncid, int64_t varid, const unsigned char *op, NCMPI_Request *request); 
    1612  
    1613 /* End Skip Prototypes for Fortran binding */ 
    1614  
    1615 int ncmpi_iput_var_schar(int ncid, int64_t varid, const signed char *op, NCMPI_Request *request); 
    1616  
    1617  
    1618 int ncmpi_iput_var_text(int ncid, int64_t varid, const char *op, NCMPI_Request *request); 
    1619  
    1620  
    1621 int ncmpi_iput_var_short(int ncid, int64_t varid, const short *op, NCMPI_Request *request); 
    1622  
    1623  
    1624 int ncmpi_iput_var_int(int ncid, int64_t varid, const int *op, NCMPI_Request *request); 
    1625  
    1626  
    1627 /* Begin Skip Prototypes for Fortran binding */ 
    1628  
    1629 int ncmpi_iput_var_long(int ncid, int64_t varid, const long *op, NCMPI_Request *request); 
    1630  
    1631 /* End Skip Prototypes for Fortran binding */ 
    1632  
    1633  
    1634 int ncmpi_iput_var_float(int ncid, int64_t varid, const float *op, NCMPI_Request *request); 
    1635  
    1636  
    1637 int ncmpi_iput_var_double(int ncid, int64_t varid, const double *op, NCMPI_Request *request); 
    1638  
    1639  
    1640 /* Begin Skip Prototypes for Fortran binding */ 
    1641 int ncmpi_iget_var_uchar(int ncid, int64_t varid, unsigned char *ip, NCMPI_Request *request); 
    1642  
    1643 /* End Skip Prototypes for Fortran binding */ 
    1644  
    1645 int ncmpi_iget_var_schar(int ncid, int64_t varid, signed char *ip, NCMPI_Request *request); 
    1646  
    1647  
    1648 int ncmpi_iget_var_text(int ncid, int64_t varid, char *ip, NCMPI_Request *request); 
    1649  
    1650  
    1651 int ncmpi_iget_var_short(int ncid, int64_t varid, short *ip, NCMPI_Request *request); 
    1652  
    1653  
    1654 int ncmpi_iget_var_int(int ncid, int64_t varid, int *ip, NCMPI_Request *request); 
    1655  
    1656  
    1657 /* Begin Skip Prototypes for Fortran binding */ 
    1658  
    1659 int ncmpi_iget_var_long(int ncid, int64_t varid, long *ip, NCMPI_Request *request); 
    1660  
    1661 /* End Skip Prototypes for Fortran binding */ 
    1662  
    1663  
    1664 int ncmpi_iget_var_float(int ncid, int64_t varid, float *ip, NCMPI_Request *request); 
    1665  
    1666  
    1667 int ncmpi_iget_var_double(int ncid, int64_t varid, double *ip, NCMPI_Request *request); 
     1603int ncmpi_iput_var(int ncid, int varid, const void *buf, MPI_Offset bufcount, MPI_Datatype datatype, NCMPI_Request *request); 
     1604 
     1605 
     1606int ncmpi_iget_var(int ncid, int varid, void *buf, MPI_Offset bufcount, MPI_Datatype datatype, NCMPI_Request *request); 
     1607 
     1608 
     1609/* Begin Skip Prototypes for Fortran binding */ 
     1610int ncmpi_iput_var_uchar(int ncid, int varid, const unsigned char *op, NCMPI_Request *request); 
     1611 
     1612/* End Skip Prototypes for Fortran binding */ 
     1613 
     1614int ncmpi_iput_var_schar(int ncid, int varid, const signed char *op, NCMPI_Request *request); 
     1615 
     1616 
     1617int ncmpi_iput_var_text(int ncid, int varid, const char *op, NCMPI_Request *request); 
     1618 
     1619 
     1620int ncmpi_iput_var_short(int ncid, int varid, const short *op, NCMPI_Request *request); 
     1621 
     1622 
     1623int ncmpi_iput_var_int(int ncid, int varid, const int *op, NCMPI_Request *request); 
     1624 
     1625 
     1626/* Begin Skip Prototypes for Fortran binding */ 
     1627 
     1628int ncmpi_iput_var_long(int ncid, int varid, const long *op, NCMPI_Request *request); 
     1629 
     1630/* End Skip Prototypes for Fortran binding */ 
     1631 
     1632 
     1633int ncmpi_iput_var_float(int ncid, int varid, const float *op, NCMPI_Request *request); 
     1634 
     1635 
     1636int ncmpi_iput_var_double(int ncid, int varid, const double *op, NCMPI_Request *request); 
     1637 
     1638 
     1639/* Begin Skip Prototypes for Fortran binding */ 
     1640int ncmpi_iget_var_uchar(int ncid, int varid, unsigned char *ip, NCMPI_Request *request); 
     1641 
     1642/* End Skip Prototypes for Fortran binding */ 
     1643 
     1644int ncmpi_iget_var_schar(int ncid, int varid, signed char *ip, NCMPI_Request *request); 
     1645 
     1646 
     1647int ncmpi_iget_var_text(int ncid, int varid, char *ip, NCMPI_Request *request); 
     1648 
     1649 
     1650int ncmpi_iget_var_short(int ncid, int varid, short *ip, NCMPI_Request *request); 
     1651 
     1652 
     1653int ncmpi_iget_var_int(int ncid, int varid, int *ip, NCMPI_Request *request); 
     1654 
     1655 
     1656/* Begin Skip Prototypes for Fortran binding */ 
     1657 
     1658int ncmpi_iget_var_long(int ncid, int varid, long *ip, NCMPI_Request *request); 
     1659 
     1660/* End Skip Prototypes for Fortran binding */ 
     1661 
     1662 
     1663int ncmpi_iget_var_float(int ncid, int varid, float *ip, NCMPI_Request *request); 
     1664 
     1665 
     1666int ncmpi_iget_var_double(int ncid, int varid, double *ip, NCMPI_Request *request); 
    16681667 
    16691668 
     
    16811680 
    16821681 
    1683 int ncmpi_iput_vara(int ncid, int64_t varid, 
    1684                const int64_t start[], const int64_t count[], 
    1685                const void *buf, int64_t bufcount, 
     1682int ncmpi_iput_vara(int ncid, int varid, 
     1683               const MPI_Offset start[], const MPI_Offset count[], 
     1684               const void *buf, MPI_Offset bufcount, 
    16861685               MPI_Datatype datatype, NCMPI_Request *request); 
    16871686 
    16881687 
    1689 int ncmpi_iget_vara(int ncid, int64_t varid, 
    1690                const int64_t start[], const int64_t count[], 
    1691                void *buf, int64_t bufcount, 
     1688int ncmpi_iget_vara(int ncid, int varid, 
     1689               const MPI_Offset start[], const MPI_Offset count[], 
     1690               void *buf, MPI_Offset bufcount, 
    16921691               MPI_Datatype datatype, NCMPI_Request *request); 
    16931692 
     
    16951694/* Begin Skip Prototypes for Fortran binding */ 
    16961695 
    1697 int ncmpi_iput_vara_uchar(int ncid, int64_t varid, 
    1698                     const int64_t start[], const int64_t count[], 
     1696int ncmpi_iput_vara_uchar(int ncid, int varid, 
     1697                    const MPI_Offset start[], const MPI_Offset count[], 
    16991698                    const unsigned char *op, NCMPI_Request *request); 
    17001699 
    17011700/* End Skip Prototypes for Fortran binding */ 
    17021701 
    1703 int ncmpi_iput_vara_schar(int ncid, int64_t varid, 
    1704                     const int64_t start[], const int64_t count[], 
     1702int ncmpi_iput_vara_schar(int ncid, int varid, 
     1703                    const MPI_Offset start[], const MPI_Offset count[], 
    17051704                    const signed char *op, NCMPI_Request *request); 
    17061705 
    17071706 
    1708 int ncmpi_iput_vara_text(int ncid, int64_t varid, 
    1709                     const int64_t start[], const int64_t count[], 
     1707int ncmpi_iput_vara_text(int ncid, int varid, 
     1708                    const MPI_Offset start[], const MPI_Offset count[], 
    17101709                    const char *op, NCMPI_Request *request); 
    17111710 
    17121711 
    1713 int ncmpi_iput_vara_short(int ncid, int64_t varid, 
    1714                     const int64_t start[], const int64_t count[], 
     1712int ncmpi_iput_vara_short(int ncid, int varid, 
     1713                    const MPI_Offset start[], const MPI_Offset count[], 
    17151714                    const short *op, NCMPI_Request *request); 
    17161715 
    17171716 
    1718 int ncmpi_iput_vara_int(int ncid, int64_t varid, 
    1719                 const int64_t start[], const int64_t count[], 
     1717int ncmpi_iput_vara_int(int ncid, int varid, 
     1718                const MPI_Offset start[], const MPI_Offset count[], 
    17201719                const int *op, NCMPI_Request *request); 
    17211720 
     
    17241723 
    17251724 
    1726 int ncmpi_iput_vara_long(int ncid, int64_t varid, 
    1727                 const int64_t start[], const int64_t count[], 
     1725int ncmpi_iput_vara_long(int ncid, int varid, 
     1726                const MPI_Offset start[], const MPI_Offset count[], 
    17281727                const long *op, NCMPI_Request *request); 
    17291728 
     
    17311730 
    17321731 
    1733 int ncmpi_iput_vara_float(int ncid, int64_t varid, 
    1734                 const int64_t start[], const int64_t count[], 
     1732int ncmpi_iput_vara_float(int ncid, int varid, 
     1733                const MPI_Offset start[], const MPI_Offset count[], 
    17351734                const float *op, NCMPI_Request *request); 
    17361735 
    17371736 
    1738 int ncmpi_iput_vara_double(int ncid, int64_t varid, 
    1739                 const int64_t start[], const int64_t count[], 
     1737int ncmpi_iput_vara_double(int ncid, int varid, 
     1738                const MPI_Offset start[], const MPI_Offset count[], 
    17401739                const double *op, NCMPI_Request *request); 
    17411740 
     
    17431742/* Begin Skip Prototypes for Fortran binding */ 
    17441743 
    1745 int ncmpi_iget_vara_uchar(int ncid, int64_t varid, 
    1746                     const int64_t start[], const int64_t count[], 
     1744int ncmpi_iget_vara_uchar(int ncid, int varid, 
     1745                    const MPI_Offset start[], const MPI_Offset count[], 
    17471746                    unsigned char *ip, NCMPI_Request *request); 
    17481747/* End Skip Prototypes for Fortran binding */ 
    17491748 
    17501749 
    1751 int ncmpi_iget_vara_schar(int ncid, int64_t varid, 
    1752                     const int64_t start[], const int64_t count[], 
     1750int ncmpi_iget_vara_schar(int ncid, int varid, 
     1751                    const MPI_Offset start[], const MPI_Offset count[], 
    17531752                    signed char *ip, NCMPI_Request *request); 
    17541753 
    17551754 
    1756 int ncmpi_iget_vara_text(int ncid, int64_t varid, 
    1757                     const int64_t start[], const int64_t count[], 
     1755int ncmpi_iget_vara_text(int ncid, int varid, 
     1756                    const MPI_Offset start[], const MPI_Offset count[], 
    17581757                    char *ip, NCMPI_Request *request); 
    17591758 
    17601759 
    1761 int ncmpi_iget_vara_short(int ncid, int64_t varid, 
    1762                     const int64_t start[], const int64_t count[], 
     1760int ncmpi_iget_vara_short(int ncid, int varid, 
     1761                    const MPI_Offset start[], const MPI_Offset count[], 
    17631762                    short *ip, NCMPI_Request *request); 
    17641763 
    17651764 
    1766 int ncmpi_iget_vara_int(int ncid, int64_t varid, 
    1767                 const int64_t start[], const int64_t count[], 
     1765int ncmpi_iget_vara_int(int ncid, int varid, 
     1766                const MPI_Offset start[], const MPI_Offset count[], 
    17681767                int *ip, NCMPI_Request *request); 
    17691768 
     
    17711770/* Begin Skip Prototypes for Fortran binding */ 
    17721771 
    1773 int ncmpi_iget_vara_long(int ncid, int64_t varid, 
    1774                 const int64_t start[], const int64_t count[], 
     1772int ncmpi_iget_vara_long(int ncid, int varid, 
     1773                const MPI_Offset start[], const MPI_Offset count[], 
    17751774                long *ip, NCMPI_Request *request); 
    17761775 
     
    17781777 
    17791778 
    1780 int ncmpi_iget_vara_float(int ncid, int64_t varid, 
    1781                 const int64_t start[], const int64_t count[], 
     1779int ncmpi_iget_vara_float(int ncid, int varid, 
     1780                const MPI_Offset start[], const MPI_Offset count[], 
    17821781                float *ip, NCMPI_Request *request); 
    17831782 
    17841783 
    1785 int ncmpi_iget_vara_double(int ncid, int64_t varid, 
    1786                 const int64_t start[], const int64_t count[], 
     1784int ncmpi_iget_vara_double(int ncid, int varid, 
     1785                const MPI_Offset start[], const MPI_Offset count[], 
    17871786                double *ip, NCMPI_Request *request); 
    17881787 
     
    17921791 
    17931792 
    1794 int ncmpi_iput_vars(int ncid, int64_t varid, 
    1795                const int64_t start[], 
    1796                const int64_t count[], 
    1797                const int64_t stride[], 
    1798                const void *buf, int64_t bufcount, 
     1793int ncmpi_iput_vars(int ncid, int varid, 
     1794               const MPI_Offset start[], 
     1795               const MPI_Offset count[], 
     1796               const MPI_Offset stride[], 
     1797               const void *buf, MPI_Offset bufcount, 
    17991798               MPI_Datatype datatype, NCMPI_Request *request); 
    18001799 
    18011800 
    1802 int ncmpi_iget_vars(int ncid, int64_t varid, 
    1803                const int64_t start[], 
    1804                const int64_t count[], 
    1805                const int64_t stride[], 
    1806                void *buf, int64_t bufcount, 
     1801int ncmpi_iget_vars(int ncid, int varid, 
     1802               const MPI_Offset start[], 
     1803               const MPI_Offset count[], 
     1804               const MPI_Offset stride[], 
     1805               void *buf, MPI_Offset bufcount, 
    18071806               MPI_Datatype datatype, NCMPI_Request *request); 
    18081807 
    18091808 
    18101809/* Begin Skip Prototypes for Fortran binding */ 
    1811 int ncmpi_iput_vars_uchar(int ncid, int64_t varid, 
    1812                     const int64_t start[], 
    1813                     const int64_t count[], 
    1814                     const int64_t stride[], 
     1810int ncmpi_iput_vars_uchar(int ncid, int varid, 
     1811                    const MPI_Offset start[], 
     1812                    const MPI_Offset count[], 
     1813                    const MPI_Offset stride[], 
    18151814                    const unsigned char *op, NCMPI_Request *request); 
    18161815/* End Skip Prototypes for Fortran binding */ 
    18171816 
    18181817 
    1819 int ncmpi_iput_vars_schar(int ncid, int64_t varid, 
    1820                     const int64_t start[], 
    1821                     const int64_t count[], 
    1822                     const int64_t stride[], 
     1818int ncmpi_iput_vars_schar(int ncid, int varid, 
     1819                    const MPI_Offset start[], 
     1820                    const MPI_Offset count[], 
     1821                    const MPI_Offset stride[], 
    18231822                    const signed char *op, NCMPI_Request *request); 
    18241823 
    18251824 
    1826 int ncmpi_iput_vars_text(int ncid, int64_t varid, 
    1827                     const int64_t start[], 
    1828                     const int64_t count[], 
    1829                     const int64_t stride[], 
     1825int ncmpi_iput_vars_text(int ncid, int varid, 
     1826                    const MPI_Offset start[], 
     1827                    const MPI_Offset count[], 
     1828                    const MPI_Offset stride[], 
    18301829                    const char *op, NCMPI_Request *request); 
    18311830 
    18321831 
    1833 int ncmpi_iput_vars_short(int ncid, int64_t varid, 
    1834                      const int64_t start[], 
    1835                      const int64_t count[], 
    1836                      const int64_t stride[], 
     1832int ncmpi_iput_vars_short(int ncid, int varid, 
     1833                     const MPI_Offset start[], 
     1834                     const MPI_Offset count[], 
     1835                     const MPI_Offset stride[], 
    18371836                     const short *op, NCMPI_Request *request); 
    18381837 
    18391838 
    1840 int ncmpi_iput_vars_int(int ncid, int64_t varid, 
    1841                    const int64_t start[], 
    1842                    const int64_t count[], 
    1843                    const int64_t stride[], 
     1839int ncmpi_iput_vars_int(int ncid, int varid, 
     1840                   const MPI_Offset start[], 
     1841                   const MPI_Offset count[], 
     1842                   const MPI_Offset stride[], 
    18441843                   const int *op, NCMPI_Request *request); 
    18451844 
     
    18471846/* Begin Skip Prototypes for Fortran binding */ 
    18481847 
    1849 int ncmpi_iput_vars_long(int ncid, int64_t varid, 
    1850                    const int64_t start[], 
    1851                    const int64_t count[], 
    1852                    const int64_t stride[], 
     1848int ncmpi_iput_vars_long(int ncid, int varid, 
     1849                   const MPI_Offset start[], 
     1850                   const MPI_Offset count[], 
     1851                   const MPI_Offset stride[], 
    18531852                   const long *op, NCMPI_Request *request); 
    18541853 
     
    18561855 
    18571856 
    1858 int ncmpi_iput_vars_float(int ncid, int64_t varid, 
    1859                      const int64_t start[], 
    1860                      const int64_t count[], 
    1861                      const int64_t stride[], 
     1857int ncmpi_iput_vars_float(int ncid, int varid, 
     1858                     const MPI_Offset start[], 
     1859                     const MPI_Offset count[], 
     1860                     const MPI_Offset stride[], 
    18621861                     const float *op, NCMPI_Request *request); 
    18631862 
    18641863 
    1865 int ncmpi_iput_vars_double(int ncid, int64_t varid, 
    1866                       const int64_t start[], 
    1867                       const int64_t count[], 
    1868                       const int64_t stride[], 
     1864int ncmpi_iput_vars_double(int ncid, int varid, 
     1865                      const MPI_Offset start[], 
     1866                      const MPI_Offset count[], 
     1867                      const MPI_Offset stride[], 
    18691868                      const double *op, NCMPI_Request *request); 
    18701869 
     
    18721871/* Begin Skip Prototypes for Fortran binding */ 
    18731872 
    1874 int ncmpi_iget_vars_uchar(int ncid, int64_t varid, 
    1875                     const int64_t start[], 
    1876                     const int64_t count[], 
    1877                     const int64_t stride[], 
     1873int ncmpi_iget_vars_uchar(int ncid, int varid, 
     1874                    const MPI_Offset start[], 
     1875                    const MPI_Offset count[], 
     1876                    const MPI_Offset stride[], 
    18781877                    unsigned char *ip, NCMPI_Request *request); 
    18791878 
    18801879/* End Skip Prototypes for Fortran binding */ 
    18811880 
    1882 int ncmpi_iget_vars_schar(int ncid, int64_t varid, 
    1883                     const int64_t start[], 
    1884                     const int64_t count[], 
    1885                     const int64_t stride[], 
     1881int ncmpi_iget_vars_schar(int ncid, int varid, 
     1882                    const MPI_Offset start[], 
     1883                    const MPI_Offset count[], 
     1884                    const MPI_Offset stride[], 
    18861885                    signed char *ip, NCMPI_Request *request); 
    18871886 
    18881887 
    1889 int ncmpi_iget_vars_text(int ncid, int64_t varid, 
    1890                     const int64_t start[], 
    1891                     const int64_t count[], 
    1892                     const int64_t stride[], 
     1888int ncmpi_iget_vars_text(int ncid, int varid, 
     1889                    const MPI_Offset start[], 
     1890                    const MPI_Offset count[], 
     1891                    const MPI_Offset stride[], 
    18931892                    char *ip, NCMPI_Request *request); 
    18941893 
    18951894 
    1896 int ncmpi_iget_vars_short(int ncid, int64_t varid, 
    1897                      const int64_t start[], 
    1898                      const int64_t count[], 
    1899                      const int64_t stride[], 
     1895int ncmpi_iget_vars_short(int ncid, int varid, 
     1896                     const MPI_Offset start[], 
     1897                     const MPI_Offset count[], 
     1898                     const MPI_Offset stride[], 
    19001899                     short *ip, NCMPI_Request *request); 
    19011900 
    19021901 
    1903 int ncmpi_iget_vars_int(int ncid, int64_t varid, 
    1904                    const int64_t start[], 
    1905                    const int64_t count[], 
    1906                    const int64_t stride[], 
     1902int ncmpi_iget_vars_int(int ncid, int varid, 
     1903                   const MPI_Offset start[], 
     1904                   const MPI_Offset count[], 
     1905                   const MPI_Offset stride[], 
    19071906                   int *ip, NCMPI_Request *request); 
    19081907 
     
    19101909/* Begin Skip Prototypes for Fortran binding */ 
    19111910 
    1912 int ncmpi_iget_vars_long(int ncid, int64_t varid, 
    1913                    const int64_t start[], 
    1914                    const int64_t count[], 
    1915                    const int64_t stride[], 
     1911int ncmpi_iget_vars_long(int ncid, int varid, 
     1912                   const MPI_Offset start[], 
     1913                   const MPI_Offset count[], 
     1914                   const MPI_Offset stride[], 
    19161915                   long *ip, NCMPI_Request *request); 
    19171916 
     
    19191918 
    19201919 
    1921 int ncmpi_iget_vars_float(int ncid, int64_t varid, 
    1922                      const int64_t start[], 
    1923                      const int64_t count[], 
    1924                      const int64_t stride[], 
     1920int ncmpi_iget_vars_float(int ncid, int varid, 
     1921                     const MPI_Offset start[], 
     1922                     const MPI_Offset count[], 
     1923                     const MPI_Offset stride[], 
    19251924                     float *ip, NCMPI_Request *request); 
    19261925 
    19271926 
    1928 int ncmpi_iget_vars_double(int ncid, int64_t varid, 
    1929                       const int64_t start[], 
    1930                       const int64_t count[], 
    1931                       const int64_t stride[], 
     1927int ncmpi_iget_vars_double(int ncid, int varid, 
     1928                      const MPI_Offset start[], 
     1929                      const MPI_Offset count[], 
     1930                      const MPI_Offset stride[], 
    19321931                      double *ip, NCMPI_Request *request); 
    19331932 
     
    19371936 
    19381937 
    1939 int ncmpi_iput_varm(int ncid, int64_t varid, 
    1940                const int64_t start[], 
    1941                const int64_t count[], 
    1942                const int64_t stride[], 
    1943                const int64_t imap[], 
    1944                const void *buf, int64_t bufcount, 
     1938int ncmpi_iput_varm(int ncid, int varid, 
     1939               const MPI_Offset start[], 
     1940               const MPI_Offset count[], 
     1941               const MPI_Offset stride[], 
     1942               const MPI_Offset imap[], 
     1943               const void *buf, MPI_Offset bufcount, 
    19451944               MPI_Datatype datatype, NCMPI_Request *request); 
    19461945 
    19471946 
    1948 int ncmpi_iget_varm(int ncid, int64_t varid, 
    1949                const int64_t start[], 
    1950                const int64_t count[], 
    1951                const int64_t stride[], 
    1952                const int64_t imap[], 
    1953                void *buf, int64_t bufcount, 
     1947int ncmpi_iget_varm(int ncid, int varid, 
     1948               const MPI_Offset start[], 
     1949               const MPI_Offset count[], 
     1950               const MPI_Offset stride[], 
     1951               const MPI_Offset imap[], 
     1952               void *buf, MPI_Offset bufcount, 
    19541953               MPI_Datatype datatype, NCMPI_Request *request); 
    19551954 
    19561955 
    19571956/* Begin Skip Prototypes for Fortran binding */ 
    1958 int ncmpi_iput_varm_uchar(int ncid, int64_t varid, 
    1959                     const int64_t start[], 
    1960                     const int64_t count[], 
    1961                     const int64_t stride[], 
    1962                     const int64_t imap[], 
     1957int ncmpi_iput_varm_uchar(int ncid, int varid, 
     1958                    const MPI_Offset start[], 
     1959                    const MPI_Offset count[], 
     1960                    const MPI_Offset stride[], 
     1961                    const MPI_Offset imap[], 
    19631962                    const unsigned char *op, NCMPI_Request *request); 
    19641963/* End Skip Prototypes for Fortran binding */ 
    19651964 
    19661965 
    1967 int ncmpi_iput_varm_schar(int ncid, int64_t varid, 
    1968                     const int64_t start[], 
    1969                     const int64_t count[], 
    1970                     const int64_t stride[], 
    1971                     const int64_t imap[], 
     1966int ncmpi_iput_varm_schar(int ncid, int varid, 
     1967                    const MPI_Offset start[], 
     1968                    const MPI_Offset count[], 
     1969                    const MPI_Offset stride[], 
     1970                    const MPI_Offset imap[], 
    19721971                    const signed char *op, NCMPI_Request *request); 
    19731972 
    19741973 
    1975 int ncmpi_iput_varm_text(int ncid, int64_t varid, 
    1976                     const int64_t start[], 
    1977                     const int64_t count[], 
    1978                     const int64_t stride[], 
    1979                     const int64_t imap[], 
     1974int ncmpi_iput_varm_text(int ncid, int varid, 
     1975                    const MPI_Offset start[], 
     1976                    const MPI_Offset count[], 
     1977                    const MPI_Offset stride[], 
     1978                    const MPI_Offset imap[], 
    19801979                    const char *op, NCMPI_Request *request); 
    19811980 
    19821981 
    1983 int ncmpi_iput_varm_short(int ncid, int64_t varid, 
    1984                      const int64_t start[], 
    1985                      const int64_t count[], 
    1986                      const int64_t stride[], 
    1987                      const int64_t imap[], 
     1982int ncmpi_iput_varm_short(int ncid, int varid, 
     1983                     const MPI_Offset start[], 
     1984                     const MPI_Offset count[], 
     1985                     const MPI_Offset stride[], 
     1986                     const MPI_Offset imap[], 
    19881987                     const short *op, NCMPI_Request *request); 
    19891988 
    19901989 
    1991 int ncmpi_iput_varm_int(int ncid, int64_t varid, 
    1992                    const int64_t start[], 
    1993                    const int64_t count[], 
    1994                    const int64_t stride[], 
    1995                    const int64_t imap[], 
     1990int ncmpi_iput_varm_int(int ncid, int varid, 
     1991                   const MPI_Offset start[], 
     1992                   const MPI_Offset count[], 
     1993                   const MPI_Offset stride[], 
     1994                   const MPI_Offset imap[], 
    19961995                   const int *op, NCMPI_Request *request); 
    19971996 
     
    19991998/* Begin Skip Prototypes for Fortran binding */ 
    20001999 
    2001 int ncmpi_iput_varm_long(int ncid, int64_t varid, 
    2002                    const int64_t start[], 
    2003                    const int64_t count[], 
    2004                    const int64_t stride[], 
    2005                    const int64_t imap[], 
     2000int ncmpi_iput_varm_long(int ncid, int varid, 
     2001                   const MPI_Offset start[], 
     2002                   const MPI_Offset count[], 
     2003                   const MPI_Offset stride[], 
     2004                   const MPI_Offset imap[], 
    20062005                   const long *op, NCMPI_Request *request); 
    20072006 
     
    20092008 
    20102009 
    2011 int ncmpi_iput_varm_float(int ncid, int64_t varid, 
    2012                      const int64_t start[], 
    2013                      const int64_t count[], 
    2014                      const int64_t stride[], 
    2015                      const int64_t imap[], 
     2010int ncmpi_iput_varm_float(int ncid, int varid, 
     2011                     const MPI_Offset start[], 
     2012                     const MPI_Offset count[], 
     2013                     const MPI_Offset stride[], 
     2014                     const MPI_Offset imap[], 
    20162015                     const float *op, NCMPI_Request *request); 
    20172016 
    20182017 
    2019 int ncmpi_iput_varm_double(int ncid, int64_t varid, 
    2020                       const int64_t start[], 
    2021                       const int64_t count[], 
    2022                       const int64_t stride[], 
    2023                       const int64_t imap[], 
     2018int ncmpi_iput_varm_double(int ncid, int varid, 
     2019                      const MPI_Offset start[], 
     2020                      const MPI_Offset count[], 
     2021                      const MPI_Offset stride[], 
     2022                      const MPI_Offset imap[], 
    20242023                      const double *op, NCMPI_Request *request); 
    20252024 
     
    20272026/* Begin Skip Prototypes for Fortran binding */ 
    20282027 
    2029 int ncmpi_iget_varm_uchar(int ncid, int64_t varid, 
    2030                     const int64_t start[], 
    2031                     const int64_t count[], 
    2032                     const int64_t stride[], 
    2033                     const int64_t imap[], 
     2028int ncmpi_iget_varm_uchar(int ncid, int varid, 
     2029                    const MPI_Offset start[], 
     2030                    const MPI_Offset count[], 
     2031                    const MPI_Offset stride[], 
     2032                    const MPI_Offset imap[], 
    20342033                    unsigned char *ip, NCMPI_Request *request); 
    20352034 
    20362035/* End Skip Prototypes for Fortran binding */ 
    20372036 
    2038 int ncmpi_iget_varm_schar(int ncid, int64_t varid, 
    2039                     const int64_t start[], 
    2040                     const int64_t count[], 
    2041                     const int64_t stride[], 
    2042                     const int64_t imap[], 
     2037int ncmpi_iget_varm_schar(int ncid, int varid, 
     2038                    const MPI_Offset start[], 
     2039                    const MPI_Offset count[], 
     2040                    const MPI_Offset stride[], 
     2041                    const MPI_Offset imap[], 
    20432042                    signed char *ip, NCMPI_Request *request); 
    20442043 
    20452044 
    2046 int ncmpi_iget_varm_text(int ncid, int64_t varid, 
    2047                     const int64_t start[], 
    2048                     const int64_t count[], 
    2049                     const int64_t stride[], 
    2050                     const int64_t imap[], 
     2045int ncmpi_iget_varm_text(int ncid, int varid, 
     2046                    const MPI_Offset start[], 
     2047                    const MPI_Offset count[], 
     2048                    const MPI_Offset stride[], 
     2049                    const MPI_Offset imap[], 
    20512050                    char *ip, NCMPI_Request *request); 
    20522051 
    20532052 
    2054 int ncmpi_iget_varm_short(int ncid, int64_t varid, 
    2055                      const int64_t start[], 
    2056                      const int64_t count[], 
    2057                      const int64_t stride[], 
    2058                      const int64_t imap[], 
     2053int ncmpi_iget_varm_short(int ncid, int varid, 
     2054                     const MPI_Offset start[], 
     2055                     const MPI_Offset count[], 
     2056                     const MPI_Offset stride[], 
     2057                     const MPI_Offset imap[], 
    20592058                     short *ip, NCMPI_Request *request); 
    20602059 
    20612060 
    2062 int ncmpi_iget_varm_int(int ncid, int64_t varid, 
    2063                    const int64_t start[], 
    2064                    const int64_t count[], 
    2065                    const int64_t stride[], 
    2066                    const int64_t imap[], 
     2061int ncmpi_iget_varm_int(int ncid, int varid, 
     2062                   const MPI_Offset start[], 
     2063                   const MPI_Offset count[], 
     2064                   const MPI_Offset stride[], 
     2065                   const MPI_Offset imap[], 
    20672066                   int *ip, NCMPI_Request *request); 
    20682067 
     
    20702069/* Begin Skip Prototypes for Fortran binding */ 
    20712070 
    2072 int ncmpi_iget_varm_long(int ncid, int64_t varid, 
    2073                    const int64_t start[], 
    2074                    const int64_t count[], 
    2075                    const int64_t stride[], 
    2076                    const int64_t imap[], 
     2071int ncmpi_iget_varm_long(int ncid, int varid, 
     2072                   const MPI_Offset start[], 
     2073                   const MPI_Offset count[], 
     2074                   const MPI_Offset stride[], 
     2075                   const MPI_Offset imap[], 
    20772076                   long *ip, NCMPI_Request *request); 
    20782077 
     
    20802079 
    20812080 
    2082 int ncmpi_iget_varm_float(int ncid, int64_t varid, 
    2083                      const int64_t start[], 
    2084                      const int64_t count[], 
    2085                      const int64_t stride[], 
    2086                      const int64_t imap[], 
     2081int ncmpi_iget_varm_float(int ncid, int varid, 
     2082                     const MPI_Offset start[], 
     2083                     const MPI_Offset count[], 
     2084                     const MPI_Offset stride[], 
     2085                     const MPI_Offset imap[], 
    20872086                     float *ip, NCMPI_Request *request); 
    20882087 
    20892088 
    2090 int ncmpi_iget_varm_double(int ncid, int64_t varid, 
    2091                       const int64_t start[], 
    2092                       const int64_t count[], 
    2093                       const int64_t stride[], 
    2094                       const int64_t imap[], 
     2089int ncmpi_iget_varm_double(int ncid, int varid, 
     2090                      const MPI_Offset start[], 
     2091                      const MPI_Offset count[], 
     2092                      const MPI_Offset stride[], 
     2093                      const MPI_Offset imap[], 
    20952094                      double *ip, NCMPI_Request *request); 
    20962095 
  • trunk/CDF3/src/lib/string.c

    r613 r625  
    7272 */ 
    7373NC_string * 
    74 ncmpii_new_NC_string(int64_t slen, const char *str) 
     74ncmpii_new_NC_string(MPI_Offset slen, const char *str) 
    7575{ 
    7676        NC_string *ncstrp; 
    77         int64_t sz = M_RNDUP(sizeof(NC_string)) + slen + 1; 
     77        MPI_Offset sz = M_RNDUP(sizeof(NC_string)) + slen + 1; 
    7878 
    7979#if 0 
     
    109109ncmpii_set_NC_string(NC_string *ncstrp, const char *str) 
    110110{ 
    111         int64_t slen; 
    112         int64_t diff; 
     111        MPI_Offset slen; 
     112        MPI_Offset diff; 
    113113 
    114114        assert(str != NULL && *str != 0); 
  • trunk/CDF3/src/lib/validator.c

    r613 r625  
    3333/* Prototypes for functions used only in this file */ 
    3434static int val_get_NCtype(bufferinfo *gbp, NCtype *typep); 
    35 static int val_get_size_t(bufferinfo *gbp, int64_t *sp); 
     35static int val_get_size_t(bufferinfo *gbp, MPI_Offset *sp); 
    3636static int val_get_NC_string(bufferinfo *gbp, NC_string **ncstrpp); 
    3737static int val_get_NC_dim(bufferinfo *gbp, NC_dim **dimpp); 
     
    4545static int val_get_NC(NC *ncp); 
    4646 
    47 static int val_fetch(bufferinfo *gbp, int64_t fsize); 
    48 static int val_check_buffer(bufferinfo *gbp, int64_t nextread); 
     47static int val_fetch(bufferinfo *gbp, MPI_Offset fsize); 
     48static int val_check_buffer(bufferinfo *gbp, MPI_Offset nextread); 
    4949 
    5050/* Begin Of get NC */ 
     
    5454 */ 
    5555static int 
    56 val_fetch(bufferinfo *gbp, int64_t fsize) { 
     56val_fetch(bufferinfo *gbp, MPI_Offset fsize) { 
    5757  char *buf; 
    5858  ssize_t nn = 0, bufsize = 0; 
     
    8686 */ 
    8787static int 
    88 val_check_buffer(bufferinfo *gbp, int64_t nextread) { 
     88val_check_buffer(bufferinfo *gbp, MPI_Offset nextread) { 
    8989  if ((char *)gbp->pos + nextread <= (char *)gbp->base + gbp->size) 
    9090    return ENOERR; 
     
    110110 
    111111static int 
    112 val_get_size_t(bufferinfo *gbp, int64_t *sp) { 
    113   int sizeof_t = gbp->version == 3 ? 8 : 4;  
     112val_get_size_t(bufferinfo *gbp, MPI_Offset *sp) { 
     113  int sizeof_t = gbp->version == 5 ? 8 : 4;  
    114114  int status = val_check_buffer(gbp, sizeof_t); 
    115115  if (status != ENOERR) { 
     
    123123val_get_NC_string(bufferinfo *gbp, NC_string **ncstrpp) { 
    124124  int status; 
    125   int64_t  nchars = 0, padding, bufremain, strcount;  
     125  MPI_Offset  nchars = 0, padding, bufremain, strcount;  
    126126  NC_string *ncstrp; 
    127127  char *cpos; 
     
    305305  void *value = attrp->xvalue; 
    306306  char pad[X_ALIGN-1];  
    307   int64_t nvalues = attrp->nelems, esz, padding, bufremain, attcount; 
     307  MPI_Offset nvalues = attrp->nelems, esz, padding, bufremain, attcount; 
    308308 
    309309  esz = ncmpix_len_nctype(attrp->type); 
     
    345345  int status; 
    346346  nc_type type;  
    347   int64_t nelems; 
     347  MPI_Offset nelems; 
    348348  NC_attr *attrp; 
    349349 
     
    447447  NC_string *strp; 
    448448  int status; 
    449   int64_t ndims, dim; 
     449  MPI_Offset ndims, tmp_dim; 
     450  int dim; 
    450451  NC_var *varp; 
    451452 
     
    468469 
    469470  for (dim = 0; dim < ndims; dim++ ) { 
    470     status = val_check_buffer(gbp, (gbp->version == 3 ? 8 : 4)); 
     471    status = val_check_buffer(gbp, (gbp->version == 5 ? 8 : 4)); 
    471472    if(status != ENOERR) { 
    472473      printf("the dimid[%d] is expected for \"%s\" - ", (int)dim, strp->cp); 
     
    474475      return status; 
    475476    } 
     477    tmp_dim = (MPI_Offset) varp->dimids + dim; 
    476478    status = ncmpix_getn_long_long((const void **)(&gbp->pos),  
    477                               1, varp->dimids + dim); 
     479                              1, &tmp_dim); 
    478480    if(status != ENOERR) { 
    479481      ncmpii_free_NC_var(varp); 
     
    503505  } 
    504506 
    505   status = val_check_buffer(gbp, (gbp->version == 3 ? 8 : 4)); 
     507  status = val_check_buffer(gbp, (gbp->version == 5 ? 8 : 4)); 
    506508  if(status != ENOERR) { 
    507509    printf("offset is expected for the data of \"%s\" - ", strp->cp); 
     
    584586  bufferinfo getbuf; 
    585587  schar magic[sizeof(ncmagic)]; 
    586   int64_t nrecs = 0; 
     588  MPI_Offset nrecs = 0; 
    587589 
    588590  assert(ncp != NULL); 
     
    620622    return status; 
    621623  } 
    622   status = ncmpix_get_size_t((const void **)(&getbuf.pos), &nrecs, getbuf.version == 3 ? 8 : 4); 
     624  status = ncmpix_get_size_t((const void **)(&getbuf.pos), &nrecs, getbuf.version == 5 ? 8 : 4); 
    623625  if(status != ENOERR) { 
    624626    free(getbuf.base); 
     
    651653 
    652654  ncp->xsz = ncmpii_hdr_len_NC(ncp, (getbuf.version == 1 ? 4 : 8));  
    653   status = ncmpii_NC_computeshapes(ncp, (getbuf.version == 3 ? 8 : 4)); 
     655  status = ncmpii_NC_computeshapes(ncp); 
    654656  free(getbuf.base); 
    655657 
  • trunk/CDF3/src/lib/var.c

    r622 r625  
    1515 
    1616/* Prototypes for functions used only in this file */ 
    17 static int64_t ncx_szof(nc_type type); 
     17static MPI_Offset ncx_szof(nc_type type); 
    1818 
    1919/* 
     
    4040ncmpii_new_x_NC_var( 
    4141        NC_string *strp, 
    42         int64_t ndims) 
    43 { 
    44         NC_var *varp; 
    45         const int64_t o1 = M_RNDUP(ndims * sizeof(int64_t)); 
    46         const int64_t o2 = M_RNDUP(ndims * sizeof(int64_t)); 
    47         const int64_t sz =  M_RNDUP(sizeof(NC_var)) + 
    48                  o1 + o2 + ndims * sizeof(int64_t); 
     42        size_t ndims) 
     43{ 
     44        NC_var *varp; 
     45        const MPI_Offset o1 = M_RNDUP(ndims * sizeof(MPI_Offset)); 
     46        const MPI_Offset o2 = M_RNDUP(ndims * sizeof(MPI_Offset)); 
     47        const MPI_Offset sz =  M_RNDUP(sizeof(NC_var)) + 
     48                 o1 + o2 + ndims * sizeof(MPI_Offset); 
    4949 
    5050        varp = (NC_var *) malloc(sz); 
     
    6363                 * We use the M_RNDUP() macro to get the proper alignment. 
    6464                 */ 
    65                 varp->dimids = (int64_t *)((char *)varp + M_RNDUP(sizeof(NC_var))); 
    66                 varp->shape = (int64_t *)((char *)varp->dimids + o1); 
    67                 varp->dsizes = (int64_t *)((char *)varp->shape + o2); 
     65                varp->dimids = (int *)((char *)varp + M_RNDUP(sizeof(NC_var))); 
     66                varp->shape = (MPI_Offset *)((char *)varp->dimids + o1); 
     67                varp->dsizes = (MPI_Offset *)((char *)varp->shape + o2); 
    6868        } 
    6969 
     
    8383static NC_var * 
    8484ncmpii_new_NC_var(const char *name, nc_type type, 
    85         int64_t ndims, const int64_t *dimids) 
     85        size_t ndims, const int *dimids) 
    8686{ 
    8787        NC_string *strp; 
     
    102102 
    103103        if( ndims != 0 && dimids != NULL) 
    104                 (void) memcpy(varp->dimids, dimids, ndims * sizeof(int64_t)); 
     104                (void) memcpy(varp->dimids, dimids, ndims * sizeof(int)); 
    105105 
    106106        return(varp); 
     
    123123 
    124124        (void) memcpy(varp->shape, rvarp->shape, 
    125                          rvarp->ndims * sizeof(int64_t)); 
     125                         rvarp->ndims * sizeof(MPI_Offset)); 
    126126        (void) memcpy(varp->dsizes, rvarp->dsizes, 
    127                          rvarp->ndims * sizeof(int64_t)); 
     127                         rvarp->ndims * sizeof(MPI_Offset)); 
    128128        varp->xsz = rvarp->xsz; 
    129129        varp->len = rvarp->len; 
     
    197197        if(ref->nelems != 0) 
    198198        { 
    199                 const int64_t sz = ref->nelems * sizeof(NC_var *); 
     199                const MPI_Offset sz = ref->nelems * sizeof(NC_var *); 
    200200                ncap->value = (NC_var **) malloc(sz); 
    201201                if(ncap->value == NULL) 
     
    274274 
    275275static NC_var * 
    276 elem_NC_vararray(const NC_vararray *ncap, int64_t elem) 
     276elem_NC_vararray(const NC_vararray *ncap, MPI_Offset elem) 
    277277{ 
    278278        assert(ncap != NULL); 
    279                 /* cast needed for braindead systems with signed int64_t */ 
     279                /* cast needed for braindead systems with signed MPI_Offset */ 
    280280        if(ncap->nelems == 0 || (unsigned long)elem >= ncap->nelems) 
    281281                return NULL; 
     
    301301{ 
    302302        NC_var **loc; 
    303         int64_t slen; 
    304         int64_t varid; 
     303        MPI_Offset slen; 
     304        int varid; 
    305305 
    306306        assert(ncap != NULL); 
     
    313313        slen = strlen(name); 
    314314 
    315         for(varid = 0; (int64_t) varid < ncap->nelems; varid++, loc++) 
     315        for(varid = 0; (MPI_Offset) varid < ncap->nelems; varid++, loc++) 
    316316        { 
    317317                if(strlen((*loc)->name->cp) == slen && 
     
    334334 * See also ncx_len() 
    335335 */ 
    336 static int64_
     336static MPI_Offse
    337337ncx_szof(nc_type type) 
    338338{ 
     
    366366ncmpii_NC_var_shape64(NC_var *varp, const NC_dimarray *dims) 
    367367{ 
    368         int64_t *shp, *dsp, *op; 
    369         int64_t *ip; 
     368        MPI_Offset *shp, *dsp, *op; 
     369        int *ip; 
    370370        const NC_dim *dimp; 
    371         int64_t product = 1; 
     371        MPI_Offset product = 1; 
    372372        int i,j; 
    373373/* 
     
    397397                ; ip < &varp->dimids[varp->ndims]; ip++, op++) 
    398398        { 
    399                 if(*ip < 0 || (int64_t) (*ip) >= ((dims != NULL) ? dims->nelems : 1) ){ 
     399                if(*ip < 0 || (*ip) >= ((dims != NULL) ? dims->nelems : 1) ){ 
    400400                        printf("return NC_EBADDIM, *ip:%ld\n", *ip); 
    401401                        return NC_EBADDIM; 
    402402                } 
    403                 dimp = ncmpii_elem_NC_dimarray(dims, (int64_t)*ip); 
     403                dimp = ncmpii_elem_NC_dimarray(dims, *ip); 
    404404                *op = dimp->size; 
    405405                if(*op == NC_UNLIMITED && ip != varp->dimids) 
     
    454454} 
    455455 
    456  
    457 #include <stdio.h> 
    458 int 
    459 ncmpii_NC_var_shape(NC_var *varp, const NC_dimarray *dims) 
    460 { 
    461         int64_t *shp, *dsp, *op; 
    462         int *ip; 
    463         const NC_dim *dimp; 
    464         size_t product = 1; 
    465  
    466         varp->xsz = ncx_szof(varp->type); 
    467  
    468         if(varp->ndims == 0) 
    469         { 
    470                 goto out; 
    471         } 
    472  
    473         /* 
    474  *          * use the user supplied dimension indices 
    475  *                   * to determine the shape 
    476  *                            */ 
    477         for(ip = (int *) varp->dimids, op = varp->shape 
    478                 ; ip < (int *)&varp->dimids[varp->ndims]; ip++, op++) 
    479         { 
    480                 if(*ip < 0 || (size_t) (*ip) >= ((dims != NULL) ? dims->nelems : 1) ) 
    481                         return NC_EBADDIM; 
    482  
    483                 dimp = ncmpii_elem_NC_dimarray(dims, (size_t)*ip); 
    484                 *op = dimp->size; 
    485                 if(*op == NC_UNLIMITED && ip != (int *) varp->dimids) 
    486                         return NC_EUNLIMPOS; 
    487         } 
    488  
    489         /* 
    490         * Compute the dsizes 
    491         */ 
    492         /* ndims is > 0 here */ 
    493         for(shp = varp->shape + varp->ndims -1, 
    494                                 dsp = varp->dsizes + varp->ndims -1; 
    495                         shp >= varp->shape; 
    496                         shp--, dsp--) 
    497         { 
    498                 if(!(shp == varp->shape && IS_RECVAR(varp))) 
    499                         product *= *shp; 
    500                 *dsp = product; 
    501         } 
    502  
    503 out : 
    504         if (varp->xsz <= X_UINT_MAX / product) /* if int. mult won't overflow */ 
    505         { 
    506                 varp->len = product * varp->xsz; 
    507         } else 
    508         { /* ok for last var to be "too big", indicated by this special len */ 
    509                 varp->len = X_UINT_MAX; 
    510         } 
    511         switch(varp->type) { 
    512         case NC_BYTE : 
    513         case NC_CHAR : 
    514         case NC_SHORT : 
    515                 if( varp->len%4 != 0 ) 
    516                 { 
    517                         varp->len += 4 - varp->len%4; /* round up */ 
    518         /*              *dsp += 4 - *dsp%4; */ 
    519                 } 
    520                 break; 
    521         default: 
    522                 /* already aligned */ 
    523                 break; 
    524         } 
    525 #if 0 
    526         arrayp("\tshape", varp->ndims, varp->shape); 
    527         arrayp("\tdsizes", varp->ndims, varp->dsizes); 
    528 #endif 
    529         return NC_NOERR; 
    530 } 
    531  
    532  
    533  
    534456/* 
    535457 * Check whether variable size is less than or equal to vlen_max, 
     
    540462 */ 
    541463int 
    542 ncmpii_NC_check_vlen(NC_var *varp, int64_t vlen_max) { 
    543     int64_t prod=varp->xsz;     /* product of xsz and dimensions so far */ 
     464ncmpii_NC_check_vlen(NC_var *varp, MPI_Offset vlen_max) { 
     465    MPI_Offset prod=varp->xsz;     /* product of xsz and dimensions so far */ 
    544466 
    545467    int ii; 
     
    561483 */ 
    562484NC_var * 
    563 ncmpii_NC_lookupvar(NC *ncp,  int64_t varid) 
     485ncmpii_NC_lookupvar(NC *ncp,  int varid) 
    564486{ 
    565487        NC_var *varp; 
     
    571493        } 
    572494 
    573         varp = elem_NC_vararray(&ncp->vars, (int64_t)varid); 
     495        varp = elem_NC_vararray(&ncp->vars, varid); 
    574496        if(varp == NULL) 
    575497        { 
     
    587509int 
    588510ncmpi_def_var( int ncid, const char *name, nc_type type, 
    589          int64_t ndims, const int64_t *dimids, int64_t *varidp) 
     511         int ndims, const int *dimids, int *varidp) 
    590512{ 
    591513        int status; 
    592514        NC *ncp; 
    593         int64_t varid; 
    594         NC_var *varp; 
    595  
    596         int64_t i; 
     515        int varid; 
     516        NC_var *varp; 
     517 
     518        MPI_Offset i; 
    597519         
    598520        status = ncmpii_NC_check_id(ncid, &ncp);  
     
    614536                return status; 
    615537 
    616                 /* cast needed for braindead systems with signed int64_t */ 
     538                /* cast needed for braindead systems with signed MPI_Offset */ 
    617539        if((unsigned long long) ndims > X_INT_MAX) /* Backward compat */ 
    618540        { 
     
    660582 
    661583int 
    662 ncmpi_inq_varid(int ncid, const char *name, int64_t *varid_ptr) 
     584ncmpi_inq_varid(int ncid, const char *name, int *varid_ptr) 
    663585{ 
    664586        int status; 
    665587        NC *ncp; 
    666588        NC_var *varp; 
    667         int64_t varid; 
     589        int varid; 
    668590 
    669591        status = ncmpii_NC_check_id(ncid, &ncp);  
     
    684606int 
    685607ncmpi_inq_var(int ncid, 
    686         int64_t varid, 
     608        int varid, 
    687609        char *name, 
    688610        nc_type *typep, 
    689         int64_t *ndimsp, 
    690         int64_t *dimids, 
    691         int64_t *nattsp) 
     611        int *ndimsp, 
     612        int *dimids, 
     613        int *nattsp) 
    692614{ 
    693615        int status; 
    694616        NC *ncp; 
    695617        NC_var *varp; 
    696         int64_t ii; 
     618        MPI_Offset ii; 
    697619 
    698620        status = ncmpii_NC_check_id(ncid, &ncp);  
     
    700622                return status; 
    701623 
    702         varp = elem_NC_vararray(&ncp->vars, (int64_t)varid); 
     624        varp = elem_NC_vararray(&ncp->vars, varid); 
    703625        if(varp == NULL) 
    704626                return NC_ENOTVAR; 
     
    714636        if(ndimsp != 0) 
    715637        { 
    716                 *ndimsp = (int64_t) varp->ndims; 
     638                *ndimsp = varp->ndims; 
    717639        } 
    718640        if(dimids != 0) 
     
    733655 
    734656int  
    735 ncmpi_inq_varname(int ncid,  int64_t varid, char *name) 
     657ncmpi_inq_varname(int ncid,  int varid, char *name) 
    736658{ 
    737659        int status; 
     
    743665                return status; 
    744666 
    745         varp = elem_NC_vararray(&ncp->vars, (int64_t)varid); 
     667        varp = elem_NC_vararray(&ncp->vars, varid); 
    746668        if(varp == NULL) 
    747669                return NC_ENOTVAR; 
     
    757679 
    758680int  
    759 ncmpi_inq_vartype(int ncid,  int64_t varid, nc_type *typep) 
     681ncmpi_inq_vartype(int ncid,  int varid, nc_type *typep) 
    760682{ 
    761683        int status; 
     
    767689                return status; 
    768690 
    769         varp = elem_NC_vararray(&ncp->vars, (int64_t)varid); 
     691        varp = elem_NC_vararray(&ncp->vars, varid); 
    770692        if(varp == NULL) 
    771693                return NC_ENOTVAR; 
     
    778700 
    779701int  
    780 ncmpi_inq_varndims(int ncid,  int64_t varid, int64_t *ndimsp) 
     702ncmpi_inq_varndims(int ncid,  int varid, int *ndimsp) 
    781703{ 
    782704        int status; 
     
    788710                return status; 
    789711 
    790         varp = elem_NC_vararray(&ncp->vars, (int64_t)varid); 
     712        varp = elem_NC_vararray(&ncp->vars, varid); 
    791713        if(varp == NULL) 
    792714                return NC_ENOTVAR; /* TODO: is this the right error code? */ 
     
    802724 
    803725int  
    804 ncmpi_inq_vardimid(int ncid,  int64_t varid, int64_t *dimids) 
     726ncmpi_inq_vardimid(int ncid,  int varid, int *dimids) 
    805727{ 
    806728        int status; 
    807729        NC *ncp; 
    808730        NC_var *varp; 
    809         int64_t ii; 
     731        MPI_Offset ii; 
    810732 
    811733        status = ncmpii_NC_check_id(ncid, &ncp);  
     
    813735                return status; 
    814736 
    815         varp = elem_NC_vararray(&ncp->vars, (int64_t)varid); 
     737        varp = elem_NC_vararray(&ncp->vars, varid); 
    816738        if(varp == NULL) 
    817739                return NC_ENOTVAR; /* TODO: is this the right error code? */ 
     
    830752 
    831753int  
    832 ncmpi_inq_varnatts(int ncid,  int64_t varid, int64_t *nattsp) 
     754ncmpi_inq_varnatts(int ncid,  int varid, int *nattsp) 
    833755{ 
    834756        int status; 
     
    843765                return status; 
    844766 
    845         varp = elem_NC_vararray(&ncp->vars, (int64_t)varid); 
     767        varp = elem_NC_vararray(&ncp->vars, varid); 
    846768        if(varp == NULL) 
    847769                return NC_ENOTVAR; /* TODO: is this the right error code? */ 
     
    856778 
    857779int 
    858 ncmpi_rename_var(int ncid,  int64_t varid, const char *newname) 
     780ncmpi_rename_var(int ncid,  int varid, const char *newname) 
    859781{ 
    860782        int status; 
  • trunk/CDF3/src/libf/copy_attf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_copy_att_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t *v4, int64_t *v5 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_copy_att_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int *v5 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/def_dimf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_def_dim_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int64_t *v3, int64_t*v4 FORT_END_LEN(d2) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_def_dim_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), MPI_Offset *v3, MPI_Fint *v4 FORT_END_LEN(d2) ){ 
    2525    int ierr; 
    2626    char *p2; 
  • trunk/CDF3/src/libf/def_varf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_def_var_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int *v3, int64_t *v4, int64_t*v5, int64_t*v6 FORT_END_LEN(d2) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_def_var_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int *v3, int *v4, MPI_Fint *v5, MPI_Fint *v6 FORT_END_LEN(d2) ){ 
    2525    int ierr; 
    2626    char *p2; 
  • trunk/CDF3/src/libf/del_attf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_del_att_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_del_att_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_att_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_att_double_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), double*v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_att_double_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), double*v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_att_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_att_int1_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), signed char * v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_att_int1_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), signed char * v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_att_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_att_int2_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), short*v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_att_int2_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), short*v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_att_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_att_int_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Fint *v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_att_int_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Fint *v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_att_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_att_real_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), float*v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_att_real_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), float*v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_att_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_att_text_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d3) FORT_END_LEN(d4) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_att_text_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d3) FORT_END_LEN(d4) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var1_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var1_double_ ( int *v1, int64_t *v2, int64_t v3[], double*v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var1_double_ ( int *v1, int *v2, MPI_Offset v3[], double*v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var1_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var1_int1_ ( int *v1, int64_t *v2, int64_t v3[], signed char * v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var1_int1_ ( int *v1, int *v2, MPI_Offset v3[], signed char * v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var1_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var1_int2_ ( int *v1, int64_t *v2, int64_t v3[], short*v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var1_int2_ ( int *v1, int *v2, MPI_Offset v3[], short*v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var1_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var1_int_ ( int *v1, int64_t *v2, int64_t v3[], MPI_Fint *v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var1_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Fint *v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var1_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var1_real_ ( int *v1, int64_t *v2, int64_t v3[], float*v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var1_real_ ( int *v1, int *v2, MPI_Offset v3[], float*v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var1_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var1_text_ ( int *v1, int64_t *v2, int64_t v3[], char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var1_text_ ( int *v1, int *v2, MPI_Offset v3[], char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var1_ ( int *v1, int64_t *v2, int64_t v3[], void*v4, int64_t *v5, MPI_Fint *v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var1_ ( int *v1, int *v2, MPI_Offset v3[], void*v4, MPI_Offset *v5, MPI_Fint *v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_all_ ( int *v1, int64_t *v2, void*v3, int64_t *v4, MPI_Fint *v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_all_ ( int *v1, int *v2, void*v3, MPI_Offset *v4, MPI_Fint *v5 ){ 
    2525    int ierr; 
    2626    ierr = ncmpi_get_var_all( *v1, *v2, v3, *v4, MPI_Type_f2c(*v5) ); 
  • trunk/CDF3/src/libf/get_var_double_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_double_all_ ( int *v1, int64_t *v2, double*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_double_all_ ( int *v1, int *v2, double*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_double_ ( int *v1, int64_t *v2, double*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_double_ ( int *v1, int *v2, double*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_int1_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_int1_all_ ( int *v1, int64_t *v2, signed char * v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_int1_all_ ( int *v1, int *v2, signed char * v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_int1_ ( int *v1, int64_t *v2, signed char * v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_int1_ ( int *v1, int *v2, signed char * v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_int2_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_int2_all_ ( int *v1, int64_t *v2, short*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_int2_all_ ( int *v1, int *v2, short*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_int2_ ( int *v1, int64_t *v2, short*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_int2_ ( int *v1, int *v2, short*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_int_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_int_all_ ( int *v1, int64_t *v2, MPI_Fint *v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_int_all_ ( int *v1, int *v2, MPI_Fint *v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_int_ ( int *v1, int64_t *v2, MPI_Fint *v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_int_ ( int *v1, int *v2, MPI_Fint *v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_real_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_real_all_ ( int *v1, int64_t *v2, float*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_real_all_ ( int *v1, int *v2, float*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_real_ ( int *v1, int64_t *v2, float*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_real_ ( int *v1, int *v2, float*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_text_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_text_all_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_text_all_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_var_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_text_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_text_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], void*v5, int64_t *v6, MPI_Fint *v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], void*v5, MPI_Offset *v6, MPI_Fint *v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_double_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], double*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], double*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], double*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], double*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_int1_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], signed char * v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], signed char * v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], signed char * v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], signed char * v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_int2_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], short*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], short*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], short*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], short*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_int_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], MPI_Fint *v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Fint *v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], MPI_Fint *v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Fint *v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_real_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], float*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], float*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], float*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], float*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_text_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vara_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varaf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vara_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], void*v5, int64_t *v6, MPI_Fint *v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vara_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], void*v5, MPI_Offset *v6, MPI_Fint *v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_var_ ( int *v1, int64_t *v2, void*v3, int64_t *v4, MPI_Fint *v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_var_ ( int *v1, int *v2, void*v3, MPI_Offset *v4, MPI_Fint *v5 ){ 
    2525    int ierr; 
    2626    ierr = ncmpi_get_var( *v1, *v2, v3, *v4, MPI_Type_f2c(*v5) ); 
  • trunk/CDF3/src/libf/get_varm_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], void*v7, int64_t *v8, MPI_Fint *v9 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], void*v7, MPI_Offset *v8, MPI_Fint *v9 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_double_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], double*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], double*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], double*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], double*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_int1_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], signed char * v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], signed char * v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], signed char * v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], signed char * v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_int2_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], short*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], short*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], short*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], short*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_int_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], MPI_Fint *v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], MPI_Fint *v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], MPI_Fint *v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], MPI_Fint *v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_real_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], float*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], float*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], float*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], float*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_text_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varm_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varmf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_varm_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], void*v7, int64_t *v8, MPI_Fint *v9 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_varm_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], void*v7, MPI_Offset *v8, MPI_Fint *v9 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], void*v6, int64_t *v7, MPI_Fint *v8 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], void*v6, MPI_Offset *v7, MPI_Fint *v8 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_double_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], double*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], double*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], double*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], double*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_int1_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], signed char * v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], signed char * v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], signed char * v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], signed char * v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_int2_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], short*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], short*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], short*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], short*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_int_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], MPI_Fint *v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Fint *v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], MPI_Fint *v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Fint *v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_real_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], float*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], float*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], float*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], float*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_text_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_vars_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/get_varsf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_get_vars_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], void*v6, int64_t *v7, MPI_Fint *v8 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_get_vars_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], void*v6, MPI_Offset *v7, MPI_Fint *v8 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_attf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_att_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t*v5 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_att_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset*v5 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_attidf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_attid_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t*v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_attid_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Fint *v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_attlenf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_attlen_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t*v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_attlen_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Offset*v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_attnamef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_attname_ ( int *v1, int64_t *v2, int64_t *v3, char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_attname_ ( int *v1, int *v2, int *v3, char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_atttypef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_atttype_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_atttype_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_dimf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_dim_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t*v4 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_dim_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Offset*v4 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_dimidf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_dimid_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int64_t*v3 FORT_END_LEN(d2) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_dimid_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), MPI_Fint *v3 FORT_END_LEN(d2) ){ 
    2525    int ierr; 
    2626    char *p2; 
  • trunk/CDF3/src/libf/inq_dimlenf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_dimlen_ ( int *v1, int64_t *v2, int64_t*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_dimlen_ ( int *v1, int *v2, MPI_Offset*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_dimnamef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_dimname_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_dimname_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_nattsf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_natts_ ( int *v1, int64_t*v2 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_natts_ ( int *v1, MPI_Fint *v2 ){ 
    2525    int ierr; 
    2626    ierr = ncmpi_inq_natts( *v1, v2 ); 
  • trunk/CDF3/src/libf/inq_ndimsf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_ndims_ ( int *v1, int64_t*v2 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_ndims_ ( int *v1, MPI_Fint *v2 ){ 
    2525    int ierr; 
    2626    ierr = ncmpi_inq_ndims( *v1, v2 ); 
  • trunk/CDF3/src/libf/inq_nvarsf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_nvars_ ( int *v1, int64_t*v2 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_nvars_ ( int *v1, MPI_Fint *v2 ){ 
    2525    int ierr; 
    2626    ierr = ncmpi_inq_nvars( *v1, v2 ); 
  • trunk/CDF3/src/libf/inq_unlimdimf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_unlimdim_ ( int *v1, int64_t*v2 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_unlimdim_ ( int *v1, MPI_Fint *v2 ){ 
    2525    int ierr; 
    2626    ierr = ncmpi_inq_unlimdim( *v1, v2 ); 
  • trunk/CDF3/src/libf/inq_vardimidf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_vardimid_ ( int *v1, int64_t *v2, int64_t*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_vardimid_ ( int *v1, int *v2, MPI_Fint *v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_varf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_var_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t*v5, int64_t*v6, int64_t*v7 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_var_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Fint *v5, MPI_Fint *v6, MPI_Fint *v7 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_varidf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_varid_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int64_t*v3 FORT_END_LEN(d2) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_varid_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), MPI_Fint *v3 FORT_END_LEN(d2) ){ 
    2525    int ierr; 
    2626    char *p2; 
  • trunk/CDF3/src/libf/inq_varnamef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_varname_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_varname_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_varnattsf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_varnatts_ ( int *v1, int64_t *v2, int64_t*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_varnatts_ ( int *v1, int *v2, MPI_Fint *v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_varndimsf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_varndims_ ( int *v1, int64_t *v2, int64_t*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_varndims_ ( int *v1, int *v2, MPI_Fint *v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inq_vartypef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_vartype_ ( int *v1, int64_t *v2, int *v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_vartype_ ( int *v1, int *v2, int *v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/inqf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_inq_ ( int *v1, int64_t*v2, int64_t*v3, int64_t*v4, int64_t*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_inq_ ( int *v1, MPI_Fint *v2, MPI_Fint *v3, MPI_Fint *v4, MPI_Fint *v5 ){ 
    2525    int ierr; 
    2626    ierr = ncmpi_inq( *v1, v2, v3, v4, v5 ); 
  • trunk/CDF3/src/libf/mpifnetcdf.h

    r613 r625  
    2222extern FORTRAN_API int FORT_CALL nfmpi_close_ ( int *v1 ); 
    2323extern FORTRAN_API int FORT_CALL nfmpi_set_fill_ ( int *v1, int *v2, MPI_Fint *v3 ); 
    24 extern FORTRAN_API int FORT_CALL nfmpi_def_dim_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int64_t *v3, int64_t*v4 FORT_END_LEN(d2) ); 
    25 extern FORTRAN_API int FORT_CALL nfmpi_def_var_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int *v3, int64_t *v4, int64_t*v5, int64_t*v6 FORT_END_LEN(d2) ); 
    26 extern FORTRAN_API int FORT_CALL nfmpi_rename_dim_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
    27 extern FORTRAN_API int FORT_CALL nfmpi_rename_var_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
    28 extern FORTRAN_API int FORT_CALL nfmpi_inq_ ( int *v1, int64_t*v2, int64_t*v3, int64_t*v4, int64_t*v5 ); 
     24extern FORTRAN_API int FORT_CALL nfmpi_def_dim_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), MPI_Offset *v3, MPI_Fint *v4 FORT_END_LEN(d2) ); 
     25extern FORTRAN_API int FORT_CALL nfmpi_def_var_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int *v3, int *v4, MPI_Fint *v5, MPI_Fint *v6 FORT_END_LEN(d2) ); 
     26extern FORTRAN_API int FORT_CALL nfmpi_rename_dim_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
     27extern FORTRAN_API int FORT_CALL nfmpi_rename_var_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
     28extern FORTRAN_API int FORT_CALL nfmpi_inq_ ( int *v1, MPI_Fint *v2, MPI_Fint *v3, MPI_Fint *v4, MPI_Fint *v5 ); 
    2929extern FORTRAN_API int FORT_CALL nfmpi_inq_version_ ( int *v1, MPI_Fint *v2 ); 
    30 extern FORTRAN_API int FORT_CALL nfmpi_inq_ndims_ ( int *v1, int64_t*v2 ); 
    31 extern FORTRAN_API int FORT_CALL nfmpi_inq_nvars_ ( int *v1, int64_t*v2 ); 
    32 extern FORTRAN_API int FORT_CALL nfmpi_inq_natts_ ( int *v1, int64_t*v2 ); 
    33 extern FORTRAN_API int FORT_CALL nfmpi_inq_unlimdim_ ( int *v1, int64_t*v2 ); 
    34 extern FORTRAN_API int FORT_CALL nfmpi_inq_dimid_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int64_t*v3 FORT_END_LEN(d2) ); 
    35 extern FORTRAN_API int FORT_CALL nfmpi_inq_dim_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t*v4 FORT_END_LEN(d3) ); 
    36 extern FORTRAN_API int FORT_CALL nfmpi_inq_dimname_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
    37 extern FORTRAN_API int FORT_CALL nfmpi_inq_dimlen_ ( int *v1, int64_t *v2, int64_t*v3 ); 
    38 extern FORTRAN_API int FORT_CALL nfmpi_inq_var_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t*v5, int64_t*v6, int64_t*v7 FORT_END_LEN(d3) ); 
    39 extern FORTRAN_API int FORT_CALL nfmpi_inq_varid_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), int64_t*v3 FORT_END_LEN(d2) ); 
    40 extern FORTRAN_API int FORT_CALL nfmpi_inq_varname_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
    41 extern FORTRAN_API int FORT_CALL nfmpi_inq_vartype_ ( int *v1, int64_t *v2, int *v3 ); 
    42 extern FORTRAN_API int FORT_CALL nfmpi_inq_varndims_ ( int *v1, int64_t *v2, int64_t*v3 ); 
    43 extern FORTRAN_API int FORT_CALL nfmpi_inq_vardimid_ ( int *v1, int64_t *v2, int64_t*v3 ); 
    44 extern FORTRAN_API int FORT_CALL nfmpi_inq_varnatts_ ( int *v1, int64_t *v2, int64_t*v3 ); 
    45 extern FORTRAN_API int FORT_CALL nfmpi_inq_att_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t*v5 FORT_END_LEN(d3) ); 
    46 extern FORTRAN_API int FORT_CALL nfmpi_inq_attid_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t*v4 FORT_END_LEN(d3) ); 
    47 extern FORTRAN_API int FORT_CALL nfmpi_inq_atttype_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4 FORT_END_LEN(d3) ); 
    48 extern FORTRAN_API int FORT_CALL nfmpi_inq_attlen_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t*v4 FORT_END_LEN(d3) ); 
    49 extern FORTRAN_API int FORT_CALL nfmpi_inq_attname_ ( int *v1, int64_t *v2, int64_t *v3, char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ); 
    50 extern FORTRAN_API int FORT_CALL nfmpi_copy_att_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t *v4, int64_t *v5 FORT_END_LEN(d3) ); 
    51 extern FORTRAN_API int FORT_CALL nfmpi_rename_att_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d3) FORT_END_LEN(d4) ); 
    52 extern FORTRAN_API int FORT_CALL nfmpi_del_att_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
    53 extern FORTRAN_API int FORT_CALL nfmpi_put_att_text_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t *v4, char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d3) FORT_END_LEN(d5) ); 
    54 extern FORTRAN_API int FORT_CALL nfmpi_get_att_text_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d3) FORT_END_LEN(d4) ); 
    55 extern FORTRAN_API int FORT_CALL nfmpi_put_att_int1_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, const signed char * v6 FORT_END_LEN(d3) ); 
    56 extern FORTRAN_API int FORT_CALL nfmpi_get_att_int1_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), signed char * v4 FORT_END_LEN(d3) ); 
    57 extern FORTRAN_API int FORT_CALL nfmpi_put_att_int2_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, short*v6 FORT_END_LEN(d3) ); 
    58 extern FORTRAN_API int FORT_CALL nfmpi_get_att_int2_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), short*v4 FORT_END_LEN(d3) ); 
    59 extern FORTRAN_API int FORT_CALL nfmpi_put_att_int_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, MPI_Fint *v6 FORT_END_LEN(d3) ); 
    60 extern FORTRAN_API int FORT_CALL nfmpi_get_att_int_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Fint *v4 FORT_END_LEN(d3) ); 
    61 extern FORTRAN_API int FORT_CALL nfmpi_put_att_real_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, float*v6 FORT_END_LEN(d3) ); 
    62 extern FORTRAN_API int FORT_CALL nfmpi_get_att_real_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), float*v4 FORT_END_LEN(d3) ); 
    63 extern FORTRAN_API int FORT_CALL nfmpi_put_att_double_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, double*v6 FORT_END_LEN(d3) ); 
    64 extern FORTRAN_API int FORT_CALL nfmpi_get_att_double_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), double*v4 FORT_END_LEN(d3) ); 
    65 extern FORTRAN_API int FORT_CALL nfmpi_put_var1_ ( int *v1, int64_t *v2, int64_t v3[], void*v4, int64_t *v5, MPI_Fint *v6 ); 
    66 extern FORTRAN_API int FORT_CALL nfmpi_get_var1_ ( int *v1, int64_t *v2, int64_t v3[], void*v4, int64_t *v5, MPI_Fint *v6 ); 
    67 extern FORTRAN_API int FORT_CALL nfmpi_put_var1_int1_ ( int *v1, int64_t *v2, int64_t v3[], const signed char * v4 ); 
    68 extern FORTRAN_API int FORT_CALL nfmpi_put_var1_text_ ( int *v1, int64_t *v2, int64_t v3[], char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ); 
    69 extern FORTRAN_API int FORT_CALL nfmpi_put_var1_int2_ ( int *v1, int64_t *v2, int64_t v3[], short*v4 ); 
    70 extern FORTRAN_API int FORT_CALL nfmpi_put_var1_int_ ( int *v1, int64_t *v2, int64_t v3[], MPI_Fint *v4 ); 
    71 extern FORTRAN_API int FORT_CALL nfmpi_put_var1_real_ ( int *v1, int64_t *v2, int64_t v3[], float*v4 ); 
    72 extern FORTRAN_API int FORT_CALL nfmpi_put_var1_double_ ( int *v1, int64_t *v2, int64_t v3[], double*v4 ); 
    73 extern FORTRAN_API int FORT_CALL nfmpi_get_var1_int1_ ( int *v1, int64_t *v2, int64_t v3[], signed char * v4 ); 
    74 extern FORTRAN_API int FORT_CALL nfmpi_get_var1_text_ ( int *v1, int64_t *v2, int64_t v3[], char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ); 
    75 extern FORTRAN_API int FORT_CALL nfmpi_get_var1_int2_ ( int *v1, int64_t *v2, int64_t v3[], short*v4 ); 
    76 extern FORTRAN_API int FORT_CALL nfmpi_get_var1_int_ ( int *v1, int64_t *v2, int64_t v3[], MPI_Fint *v4 ); 
    77 extern FORTRAN_API int FORT_CALL nfmpi_get_var1_real_ ( int *v1, int64_t *v2, int64_t v3[], float*v4 ); 
    78 extern FORTRAN_API int FORT_CALL nfmpi_get_var1_double_ ( int *v1, int64_t *v2, int64_t v3[], double*v4 ); 
    79 extern FORTRAN_API int FORT_CALL nfmpi_put_var_ ( int *v1, int64_t *v2, void*v3, int64_t *v4, MPI_Fint *v5 ); 
    80 extern FORTRAN_API int FORT_CALL nfmpi_get_var_ ( int *v1, int64_t *v2, void*v3, int64_t *v4, MPI_Fint *v5 ); 
    81 extern FORTRAN_API int FORT_CALL nfmpi_get_var_all_ ( int *v1, int64_t *v2, void*v3, int64_t *v4, MPI_Fint *v5 ); 
    82 extern FORTRAN_API int FORT_CALL nfmpi_put_var_int1_ ( int *v1, int64_t *v2, const signed char * v3 ); 
    83 extern FORTRAN_API int FORT_CALL nfmpi_put_var_text_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
    84 extern FORTRAN_API int FORT_CALL nfmpi_put_var_int2_ ( int *v1, int64_t *v2, short*v3 ); 
    85 extern FORTRAN_API int FORT_CALL nfmpi_put_var_int_ ( int *v1, int64_t *v2, MPI_Fint *v3 ); 
    86 extern FORTRAN_API int FORT_CALL nfmpi_put_var_real_ ( int *v1, int64_t *v2, float*v3 ); 
    87 extern FORTRAN_API int FORT_CALL nfmpi_put_var_double_ ( int *v1, int64_t *v2, double*v3 ); 
    88 extern FORTRAN_API int FORT_CALL nfmpi_get_var_int1_ ( int *v1, int64_t *v2, signed char * v3 ); 
    89 extern FORTRAN_API int FORT_CALL nfmpi_get_var_text_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
    90 extern FORTRAN_API int FORT_CALL nfmpi_get_var_int2_ ( int *v1, int64_t *v2, short*v3 ); 
    91 extern FORTRAN_API int FORT_CALL nfmpi_get_var_int_ ( int *v1, int64_t *v2, MPI_Fint *v3 ); 
    92 extern FORTRAN_API int FORT_CALL nfmpi_get_var_real_ ( int *v1, int64_t *v2, float*v3 ); 
    93 extern FORTRAN_API int FORT_CALL nfmpi_get_var_double_ ( int *v1, int64_t *v2, double*v3 ); 
    94 extern FORTRAN_API int FORT_CALL nfmpi_get_var_int1_all_ ( int *v1, int64_t *v2, signed char * v3 ); 
    95 extern FORTRAN_API int FORT_CALL nfmpi_get_var_text_all_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
    96 extern FORTRAN_API int FORT_CALL nfmpi_get_var_int2_all_ ( int *v1, int64_t *v2, short*v3 ); 
    97 extern FORTRAN_API int FORT_CALL nfmpi_get_var_int_all_ ( int *v1, int64_t *v2, MPI_Fint *v3 ); 
    98 extern FORTRAN_API int FORT_CALL nfmpi_get_var_real_all_ ( int *v1, int64_t *v2, float*v3 ); 
    99 extern FORTRAN_API int FORT_CALL nfmpi_get_var_double_all_ ( int *v1, int64_t *v2, double*v3 ); 
    100 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], void*v5, int64_t *v6, MPI_Fint *v7 ); 
    101 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], void*v5, int64_t *v6, MPI_Fint *v7 ); 
    102 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], void*v5, int64_t *v6, MPI_Fint *v7 ); 
    103 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], void*v5, int64_t *v6, MPI_Fint *v7 ); 
    104 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], const signed char * v5 ); 
    105 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], const signed char * v5 ); 
    106 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ); 
    107 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ); 
    108 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], short*v5 ); 
    109 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], short*v5 ); 
    110 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], MPI_Fint *v5 ); 
    111 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], MPI_Fint *v5 ); 
    112 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], float*v5 ); 
    113 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], float*v5 ); 
    114 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], double*v5 ); 
    115 extern FORTRAN_API int FORT_CALL nfmpi_put_vara_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], double*v5 ); 
    116 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], signed char * v5 ); 
    117 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], signed char * v5 ); 
    118 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ); 
    119 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ); 
    120 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], short*v5 ); 
    121 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], short*v5 ); 
    122 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], MPI_Fint *v5 ); 
    123 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], MPI_Fint *v5 ); 
    124 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], float*v5 ); 
    125 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], float*v5 ); 
    126 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], double*v5 ); 
    127 extern FORTRAN_API int FORT_CALL nfmpi_get_vara_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], double*v5 ); 
    128 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], void*v6, int64_t *v7, MPI_Fint *v8 ); 
    129 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], void*v6, int64_t *v7, MPI_Fint *v8 ); 
    130 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], void*v6, int64_t *v7, MPI_Fint *v8 ); 
    131 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], void*v6, int64_t *v7, MPI_Fint *v8 ); 
    132 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], const signed char * v6 ); 
    133 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], const signed char * v6 ); 
    134 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ); 
    135 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ); 
    136 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], short*v6 ); 
    137 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], short*v6 ); 
    138 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], MPI_Fint *v6 ); 
    139 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], MPI_Fint *v6 ); 
    140 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], float*v6 ); 
    141 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], float*v6 ); 
    142 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], double*v6 ); 
    143 extern FORTRAN_API int FORT_CALL nfmpi_put_vars_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], double*v6 ); 
    144 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], signed char * v6 ); 
    145 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], signed char * v6 ); 
    146 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ); 
    147 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ); 
    148 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], short*v6 ); 
    149 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], short*v6 ); 
    150 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], MPI_Fint *v6 ); 
    151 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], MPI_Fint *v6 ); 
    152 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], float*v6 ); 
    153 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], float*v6 ); 
    154 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], double*v6 ); 
    155 extern FORTRAN_API int FORT_CALL nfmpi_get_vars_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], double*v6 ); 
    156 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], void*v7, int64_t *v8, MPI_Fint *v9 ); 
    157 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], void*v7, int64_t *v8, MPI_Fint *v9 ); 
    158 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], void*v7, int64_t *v8, MPI_Fint *v9 ); 
    159 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], void*v7, int64_t *v8, MPI_Fint *v9 ); 
    160 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], const signed char * v7 ); 
    161 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], const signed char * v7 ); 
    162 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ); 
    163 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ); 
    164 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], short*v7 ); 
    165 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], short*v7 ); 
    166 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], MPI_Fint *v7 ); 
    167 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], MPI_Fint *v7 ); 
    168 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], float*v7 ); 
    169 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], float*v7 ); 
    170 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], double*v7 ); 
    171 extern FORTRAN_API int FORT_CALL nfmpi_put_varm_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], double*v7 ); 
    172 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], signed char * v7 ); 
    173 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], signed char * v7 ); 
    174 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ); 
    175 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ); 
    176 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], short*v7 ); 
    177 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], short*v7 ); 
    178 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], MPI_Fint *v7 ); 
    179 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], MPI_Fint *v7 ); 
    180 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], float*v7 ); 
    181 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], float*v7 ); 
    182 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], double*v7 ); 
    183 extern FORTRAN_API int FORT_CALL nfmpi_get_varm_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], double*v7 ); 
     30extern FORTRAN_API int FORT_CALL nfmpi_inq_ndims_ ( int *v1, MPI_Fint *v2 ); 
     31extern FORTRAN_API int FORT_CALL nfmpi_inq_nvars_ ( int *v1, MPI_Fint *v2 ); 
     32extern FORTRAN_API int FORT_CALL nfmpi_inq_natts_ ( int *v1, MPI_Fint *v2 ); 
     33extern FORTRAN_API int FORT_CALL nfmpi_inq_unlimdim_ ( int *v1, MPI_Fint *v2 ); 
     34extern FORTRAN_API int FORT_CALL nfmpi_inq_dimid_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), MPI_Fint *v3 FORT_END_LEN(d2) ); 
     35extern FORTRAN_API int FORT_CALL nfmpi_inq_dim_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Offset*v4 FORT_END_LEN(d3) ); 
     36extern FORTRAN_API int FORT_CALL nfmpi_inq_dimname_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
     37extern FORTRAN_API int FORT_CALL nfmpi_inq_dimlen_ ( int *v1, int *v2, MPI_Offset*v3 ); 
     38extern FORTRAN_API int FORT_CALL nfmpi_inq_var_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Fint *v5, MPI_Fint *v6, MPI_Fint *v7 FORT_END_LEN(d3) ); 
     39extern FORTRAN_API int FORT_CALL nfmpi_inq_varid_ ( int *v1, char *v2 FORT_MIXED_LEN(d2), MPI_Fint *v3 FORT_END_LEN(d2) ); 
     40extern FORTRAN_API int FORT_CALL nfmpi_inq_varname_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
     41extern FORTRAN_API int FORT_CALL nfmpi_inq_vartype_ ( int *v1, int *v2, int *v3 ); 
     42extern FORTRAN_API int FORT_CALL nfmpi_inq_varndims_ ( int *v1, int *v2, MPI_Fint *v3 ); 
     43extern FORTRAN_API int FORT_CALL nfmpi_inq_vardimid_ ( int *v1, int *v2, MPI_Fint *v3 ); 
     44extern FORTRAN_API int FORT_CALL nfmpi_inq_varnatts_ ( int *v1, int *v2, MPI_Fint *v3 ); 
     45extern FORTRAN_API int FORT_CALL nfmpi_inq_att_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset*v5 FORT_END_LEN(d3) ); 
     46extern FORTRAN_API int FORT_CALL nfmpi_inq_attid_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Fint *v4 FORT_END_LEN(d3) ); 
     47extern FORTRAN_API int FORT_CALL nfmpi_inq_atttype_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4 FORT_END_LEN(d3) ); 
     48extern FORTRAN_API int FORT_CALL nfmpi_inq_attlen_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Offset*v4 FORT_END_LEN(d3) ); 
     49extern FORTRAN_API int FORT_CALL nfmpi_inq_attname_ ( int *v1, int *v2, int *v3, char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ); 
     50extern FORTRAN_API int FORT_CALL nfmpi_copy_att_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int *v5 FORT_END_LEN(d3) ); 
     51extern FORTRAN_API int FORT_CALL nfmpi_rename_att_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d3) FORT_END_LEN(d4) ); 
     52extern FORTRAN_API int FORT_CALL nfmpi_del_att_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
     53extern FORTRAN_API int FORT_CALL nfmpi_put_att_text_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Offset *v4, char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d3) FORT_END_LEN(d5) ); 
     54extern FORTRAN_API int FORT_CALL nfmpi_get_att_text_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d3) FORT_END_LEN(d4) ); 
     55extern FORTRAN_API int FORT_CALL nfmpi_put_att_int1_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, const signed char * v6 FORT_END_LEN(d3) ); 
     56extern FORTRAN_API int FORT_CALL nfmpi_get_att_int1_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), signed char * v4 FORT_END_LEN(d3) ); 
     57extern FORTRAN_API int FORT_CALL nfmpi_put_att_int2_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, short*v6 FORT_END_LEN(d3) ); 
     58extern FORTRAN_API int FORT_CALL nfmpi_get_att_int2_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), short*v4 FORT_END_LEN(d3) ); 
     59extern FORTRAN_API int FORT_CALL nfmpi_put_att_int_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, MPI_Fint *v6 FORT_END_LEN(d3) ); 
     60extern FORTRAN_API int FORT_CALL nfmpi_get_att_int_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Fint *v4 FORT_END_LEN(d3) ); 
     61extern FORTRAN_API int FORT_CALL nfmpi_put_att_real_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, float*v6 FORT_END_LEN(d3) ); 
     62extern FORTRAN_API int FORT_CALL nfmpi_get_att_real_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), float*v4 FORT_END_LEN(d3) ); 
     63extern FORTRAN_API int FORT_CALL nfmpi_put_att_double_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, double*v6 FORT_END_LEN(d3) ); 
     64extern FORTRAN_API int FORT_CALL nfmpi_get_att_double_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), double*v4 FORT_END_LEN(d3) ); 
     65extern FORTRAN_API int FORT_CALL nfmpi_put_var1_ ( int *v1, int *v2, MPI_Offset v3[], void*v4, MPI_Offset *v5, MPI_Fint *v6 ); 
     66extern FORTRAN_API int FORT_CALL nfmpi_get_var1_ ( int *v1, int *v2, MPI_Offset v3[], void*v4, MPI_Offset *v5, MPI_Fint *v6 ); 
     67extern FORTRAN_API int FORT_CALL nfmpi_put_var1_int1_ ( int *v1, int *v2, MPI_Offset v3[], const signed char * v4 ); 
     68extern FORTRAN_API int FORT_CALL nfmpi_put_var1_text_ ( int *v1, int *v2, MPI_Offset v3[], char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ); 
     69extern FORTRAN_API int FORT_CALL nfmpi_put_var1_int2_ ( int *v1, int *v2, MPI_Offset v3[], short*v4 ); 
     70extern FORTRAN_API int FORT_CALL nfmpi_put_var1_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Fint *v4 ); 
     71extern FORTRAN_API int FORT_CALL nfmpi_put_var1_real_ ( int *v1, int *v2, MPI_Offset v3[], float*v4 ); 
     72extern FORTRAN_API int FORT_CALL nfmpi_put_var1_double_ ( int *v1, int *v2, MPI_Offset v3[], double*v4 ); 
     73extern FORTRAN_API int FORT_CALL nfmpi_get_var1_int1_ ( int *v1, int *v2, MPI_Offset v3[], signed char * v4 ); 
     74extern FORTRAN_API int FORT_CALL nfmpi_get_var1_text_ ( int *v1, int *v2, MPI_Offset v3[], char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ); 
     75extern FORTRAN_API int FORT_CALL nfmpi_get_var1_int2_ ( int *v1, int *v2, MPI_Offset v3[], short*v4 ); 
     76extern FORTRAN_API int FORT_CALL nfmpi_get_var1_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Fint *v4 ); 
     77extern FORTRAN_API int FORT_CALL nfmpi_get_var1_real_ ( int *v1, int *v2, MPI_Offset v3[], float*v4 ); 
     78extern FORTRAN_API int FORT_CALL nfmpi_get_var1_double_ ( int *v1, int *v2, MPI_Offset v3[], double*v4 ); 
     79extern FORTRAN_API int FORT_CALL nfmpi_put_var_ ( int *v1, int *v2, void*v3, MPI_Offset *v4, MPI_Fint *v5 ); 
     80extern FORTRAN_API int FORT_CALL nfmpi_get_var_ ( int *v1, int *v2, void*v3, MPI_Offset *v4, MPI_Fint *v5 ); 
     81extern FORTRAN_API int FORT_CALL nfmpi_get_var_all_ ( int *v1, int *v2, void*v3, MPI_Offset *v4, MPI_Fint *v5 ); 
     82extern FORTRAN_API int FORT_CALL nfmpi_put_var_int1_ ( int *v1, int *v2, const signed char * v3 ); 
     83extern FORTRAN_API int FORT_CALL nfmpi_put_var_text_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
     84extern FORTRAN_API int FORT_CALL nfmpi_put_var_int2_ ( int *v1, int *v2, short*v3 ); 
     85extern FORTRAN_API int FORT_CALL nfmpi_put_var_int_ ( int *v1, int *v2, MPI_Fint *v3 ); 
     86extern FORTRAN_API int FORT_CALL nfmpi_put_var_real_ ( int *v1, int *v2, float*v3 ); 
     87extern FORTRAN_API int FORT_CALL nfmpi_put_var_double_ ( int *v1, int *v2, double*v3 ); 
     88extern FORTRAN_API int FORT_CALL nfmpi_get_var_int1_ ( int *v1, int *v2, signed char * v3 ); 
     89extern FORTRAN_API int FORT_CALL nfmpi_get_var_text_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
     90extern FORTRAN_API int FORT_CALL nfmpi_get_var_int2_ ( int *v1, int *v2, short*v3 ); 
     91extern FORTRAN_API int FORT_CALL nfmpi_get_var_int_ ( int *v1, int *v2, MPI_Fint *v3 ); 
     92extern FORTRAN_API int FORT_CALL nfmpi_get_var_real_ ( int *v1, int *v2, float*v3 ); 
     93extern FORTRAN_API int FORT_CALL nfmpi_get_var_double_ ( int *v1, int *v2, double*v3 ); 
     94extern FORTRAN_API int FORT_CALL nfmpi_get_var_int1_all_ ( int *v1, int *v2, signed char * v3 ); 
     95extern FORTRAN_API int FORT_CALL nfmpi_get_var_text_all_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ); 
     96extern FORTRAN_API int FORT_CALL nfmpi_get_var_int2_all_ ( int *v1, int *v2, short*v3 ); 
     97extern FORTRAN_API int FORT_CALL nfmpi_get_var_int_all_ ( int *v1, int *v2, MPI_Fint *v3 ); 
     98extern FORTRAN_API int FORT_CALL nfmpi_get_var_real_all_ ( int *v1, int *v2, float*v3 ); 
     99extern FORTRAN_API int FORT_CALL nfmpi_get_var_double_all_ ( int *v1, int *v2, double*v3 ); 
     100extern FORTRAN_API int FORT_CALL nfmpi_put_vara_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], void*v5, MPI_Offset *v6, MPI_Fint *v7 ); 
     101extern FORTRAN_API int FORT_CALL nfmpi_get_vara_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], void*v5, MPI_Offset *v6, MPI_Fint *v7 ); 
     102extern FORTRAN_API int FORT_CALL nfmpi_put_vara_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], void*v5, MPI_Offset *v6, MPI_Fint *v7 ); 
     103extern FORTRAN_API int FORT_CALL nfmpi_get_vara_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], void*v5, MPI_Offset *v6, MPI_Fint *v7 ); 
     104extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], const signed char * v5 ); 
     105extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], const signed char * v5 ); 
     106extern FORTRAN_API int FORT_CALL nfmpi_put_vara_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ); 
     107extern FORTRAN_API int FORT_CALL nfmpi_put_vara_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ); 
     108extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], short*v5 ); 
     109extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], short*v5 ); 
     110extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Fint *v5 ); 
     111extern FORTRAN_API int FORT_CALL nfmpi_put_vara_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Fint *v5 ); 
     112extern FORTRAN_API int FORT_CALL nfmpi_put_vara_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], float*v5 ); 
     113extern FORTRAN_API int FORT_CALL nfmpi_put_vara_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], float*v5 ); 
     114extern FORTRAN_API int FORT_CALL nfmpi_put_vara_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], double*v5 ); 
     115extern FORTRAN_API int FORT_CALL nfmpi_put_vara_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], double*v5 ); 
     116extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], signed char * v5 ); 
     117extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], signed char * v5 ); 
     118extern FORTRAN_API int FORT_CALL nfmpi_get_vara_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ); 
     119extern FORTRAN_API int FORT_CALL nfmpi_get_vara_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ); 
     120extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], short*v5 ); 
     121extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], short*v5 ); 
     122extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Fint *v5 ); 
     123extern FORTRAN_API int FORT_CALL nfmpi_get_vara_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Fint *v5 ); 
     124extern FORTRAN_API int FORT_CALL nfmpi_get_vara_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], float*v5 ); 
     125extern FORTRAN_API int FORT_CALL nfmpi_get_vara_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], float*v5 ); 
     126extern FORTRAN_API int FORT_CALL nfmpi_get_vara_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], double*v5 ); 
     127extern FORTRAN_API int FORT_CALL nfmpi_get_vara_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], double*v5 ); 
     128extern FORTRAN_API int FORT_CALL nfmpi_put_vars_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], void*v6, MPI_Offset *v7, MPI_Fint *v8 ); 
     129extern FORTRAN_API int FORT_CALL nfmpi_get_vars_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], void*v6, MPI_Offset *v7, MPI_Fint *v8 ); 
     130extern FORTRAN_API int FORT_CALL nfmpi_put_vars_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], void*v6, MPI_Offset *v7, MPI_Fint *v8 ); 
     131extern FORTRAN_API int FORT_CALL nfmpi_get_vars_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], void*v6, MPI_Offset *v7, MPI_Fint *v8 ); 
     132extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], const signed char * v6 ); 
     133extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], const signed char * v6 ); 
     134extern FORTRAN_API int FORT_CALL nfmpi_put_vars_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ); 
     135extern FORTRAN_API int FORT_CALL nfmpi_put_vars_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ); 
     136extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], short*v6 ); 
     137extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], short*v6 ); 
     138extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Fint *v6 ); 
     139extern FORTRAN_API int FORT_CALL nfmpi_put_vars_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Fint *v6 ); 
     140extern FORTRAN_API int FORT_CALL nfmpi_put_vars_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], float*v6 ); 
     141extern FORTRAN_API int FORT_CALL nfmpi_put_vars_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], float*v6 ); 
     142extern FORTRAN_API int FORT_CALL nfmpi_put_vars_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], double*v6 ); 
     143extern FORTRAN_API int FORT_CALL nfmpi_put_vars_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], double*v6 ); 
     144extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], signed char * v6 ); 
     145extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], signed char * v6 ); 
     146extern FORTRAN_API int FORT_CALL nfmpi_get_vars_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ); 
     147extern FORTRAN_API int FORT_CALL nfmpi_get_vars_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ); 
     148extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], short*v6 ); 
     149extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], short*v6 ); 
     150extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Fint *v6 ); 
     151extern FORTRAN_API int FORT_CALL nfmpi_get_vars_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Fint *v6 ); 
     152extern FORTRAN_API int FORT_CALL nfmpi_get_vars_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], float*v6 ); 
     153extern FORTRAN_API int FORT_CALL nfmpi_get_vars_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], float*v6 ); 
     154extern FORTRAN_API int FORT_CALL nfmpi_get_vars_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], double*v6 ); 
     155extern FORTRAN_API int FORT_CALL nfmpi_get_vars_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], double*v6 ); 
     156extern FORTRAN_API int FORT_CALL nfmpi_put_varm_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], void*v7, MPI_Offset *v8, MPI_Fint *v9 ); 
     157extern FORTRAN_API int FORT_CALL nfmpi_get_varm_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], void*v7, MPI_Offset *v8, MPI_Fint *v9 ); 
     158extern FORTRAN_API int FORT_CALL nfmpi_put_varm_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], void*v7, MPI_Offset *v8, MPI_Fint *v9 ); 
     159extern FORTRAN_API int FORT_CALL nfmpi_get_varm_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], void*v7, MPI_Offset *v8, MPI_Fint *v9 ); 
     160extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], const signed char * v7 ); 
     161extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], const signed char * v7 ); 
     162extern FORTRAN_API int FORT_CALL nfmpi_put_varm_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ); 
     163extern FORTRAN_API int FORT_CALL nfmpi_put_varm_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ); 
     164extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], short*v7 ); 
     165extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], short*v7 ); 
     166extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], MPI_Fint *v7 ); 
     167extern FORTRAN_API int FORT_CALL nfmpi_put_varm_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], MPI_Fint *v7 ); 
     168extern FORTRAN_API int FORT_CALL nfmpi_put_varm_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], float*v7 ); 
     169extern FORTRAN_API int FORT_CALL nfmpi_put_varm_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], float*v7 ); 
     170extern FORTRAN_API int FORT_CALL nfmpi_put_varm_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], double*v7 ); 
     171extern FORTRAN_API int FORT_CALL nfmpi_put_varm_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], double*v7 ); 
     172extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], signed char * v7 ); 
     173extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], signed char * v7 ); 
     174extern FORTRAN_API int FORT_CALL nfmpi_get_varm_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ); 
     175extern FORTRAN_API int FORT_CALL nfmpi_get_varm_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ); 
     176extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], short*v7 ); 
     177extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], short*v7 ); 
     178extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], MPI_Fint *v7 ); 
     179extern FORTRAN_API int FORT_CALL nfmpi_get_varm_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], MPI_Fint *v7 ); 
     180extern FORTRAN_API int FORT_CALL nfmpi_get_varm_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], float*v7 ); 
     181extern FORTRAN_API int FORT_CALL nfmpi_get_varm_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], float*v7 ); 
     182extern FORTRAN_API int FORT_CALL nfmpi_get_varm_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], double*v7 ); 
     183extern FORTRAN_API int FORT_CALL nfmpi_get_varm_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], double*v7 ); 
  • trunk/CDF3/src/libf/pnetcdf.inc.in

    r613 r625  
    6161      integer nf_share 
    6262      integer nf_64bit_offset 
     63      integer nf_64bit_data 
    6364      integer nf_sizehint_default 
    6465      integer nf_align_chunk 
    6566      integer nf_format_classic 
    6667      integer nf_format_64bit 
     68      integer nf_format_64bit_data 
    6769 
    6870      parameter (nf_nowrite = 0) 
     
    7577      parameter (nf_share = 2048) 
    7678      parameter (nf_64bit_offset = 512) 
     79      parameter (nf_64bit_data = 4096) 
    7780      parameter (nf_sizehint_default = 0) 
    7881      parameter (nf_align_chunk = -1) 
    7982      parameter (nf_format_classic = 1) 
    8083      parameter (nf_format_64bit = 2) 
     84      parameter (nf_format_64bit_data = 3) 
    8185 
    8286! 
  • trunk/CDF3/src/libf/put_att_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_att_double_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, double*v6 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_att_double_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, double*v6 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_att_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_att_int1_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, const signed char * v6 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_att_int1_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, const signed char * v6 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_att_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_att_int2_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, short*v6 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_att_int2_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, short*v6 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_att_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_att_int_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, MPI_Fint *v6 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_att_int_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, MPI_Fint *v6 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_att_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_att_real_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, int64_t *v5, float*v6 FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_att_real_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), int *v4, MPI_Offset *v5, float*v6 FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_att_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_att_text_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), int64_t *v4, char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d3) FORT_END_LEN(d5) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_att_text_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), MPI_Offset *v4, char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d3) FORT_END_LEN(d5) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var1_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var1_double_ ( int *v1, int64_t *v2, int64_t v3[], double*v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var1_double_ ( int *v1, int *v2, MPI_Offset v3[], double*v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var1_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var1_int1_ ( int *v1, int64_t *v2, int64_t v3[], const signed char * v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var1_int1_ ( int *v1, int *v2, MPI_Offset v3[], const signed char * v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var1_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var1_int2_ ( int *v1, int64_t *v2, int64_t v3[], short*v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var1_int2_ ( int *v1, int *v2, MPI_Offset v3[], short*v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var1_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var1_int_ ( int *v1, int64_t *v2, int64_t v3[], MPI_Fint *v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var1_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Fint *v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var1_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var1_real_ ( int *v1, int64_t *v2, int64_t v3[], float*v4 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var1_real_ ( int *v1, int *v2, MPI_Offset v3[], float*v4 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var1_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var1_text_ ( int *v1, int64_t *v2, int64_t v3[], char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var1_text_ ( int *v1, int *v2, MPI_Offset v3[], char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d4) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var1_ ( int *v1, int64_t *v2, int64_t v3[], void*v4, int64_t *v5, MPI_Fint *v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var1_ ( int *v1, int *v2, MPI_Offset v3[], void*v4, MPI_Offset *v5, MPI_Fint *v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var_double_ ( int *v1, int64_t *v2, double*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var_double_ ( int *v1, int *v2, double*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var_int1_ ( int *v1, int64_t *v2, const signed char * v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var_int1_ ( int *v1, int *v2, const signed char * v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var_int2_ ( int *v1, int64_t *v2, short*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var_int2_ ( int *v1, int *v2, short*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var_int_ ( int *v1, int64_t *v2, MPI_Fint *v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var_int_ ( int *v1, int *v2, MPI_Fint *v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var_real_ ( int *v1, int64_t *v2, float*v3 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var_real_ ( int *v1, int *v2, float*v3 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_var_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var_text_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var_text_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], void*v5, int64_t *v6, MPI_Fint *v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], void*v5, MPI_Offset *v6, MPI_Fint *v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_double_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], double*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], double*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], double*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], double*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_int1_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], const signed char * v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], const signed char * v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], const signed char * v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], const signed char * v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_int2_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], short*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], short*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], short*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], short*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_int_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], MPI_Fint *v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Fint *v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], MPI_Fint *v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Fint *v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_real_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], float*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], float*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], float*v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], float*v5 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_text_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vara_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], char *v5 FORT_MIXED_LEN(d5) FORT_END_LEN(d5) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varaf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vara_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], void*v5, int64_t *v6, MPI_Fint *v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vara_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], void*v5, MPI_Offset *v6, MPI_Fint *v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_var_ ( int *v1, int64_t *v2, void*v3, int64_t *v4, MPI_Fint *v5 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_var_ ( int *v1, int *v2, void*v3, MPI_Offset *v4, MPI_Fint *v5 ){ 
    2525    int ierr; 
    2626    ierr = ncmpi_put_var( *v1, *v2, v3, *v4, MPI_Type_f2c(*v5) ); 
  • trunk/CDF3/src/libf/put_varm_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], void*v7, int64_t *v8, MPI_Fint *v9 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], void*v7, MPI_Offset *v8, MPI_Fint *v9 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_double_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], double*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], double*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], double*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], double*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_int1_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], const signed char * v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], const signed char * v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], const signed char * v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], const signed char * v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_int2_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], short*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], short*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], short*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], short*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_int_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], MPI_Fint *v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], MPI_Fint *v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], MPI_Fint *v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], MPI_Fint *v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_real_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], float*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], float*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], float*v7 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], float*v7 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_text_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varm_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], char *v7 FORT_MIXED_LEN(d7) FORT_END_LEN(d7) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varmf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_varm_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], int64_t v6[], void*v7, int64_t *v8, MPI_Fint *v9 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_varm_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Offset v6[], void*v7, MPI_Offset *v8, MPI_Fint *v9 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], void*v6, int64_t *v7, MPI_Fint *v8 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], void*v6, MPI_Offset *v7, MPI_Fint *v8 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_double_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_double_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], double*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_double_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], double*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_doublef.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_double_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], double*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_double_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], double*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_int1_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_int1_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], const signed char * v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_int1_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], const signed char * v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_int1f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_int1_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], const signed char * v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_int1_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], const signed char * v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_int2_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_int2_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], short*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_int2_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], short*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_int2f.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_int2_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], short*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_int2_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], short*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_int_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_int_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], MPI_Fint *v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_int_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Fint *v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_intf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_int_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], MPI_Fint *v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_int_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], MPI_Fint *v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_real_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_real_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], float*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_real_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], float*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_realf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_real_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], float*v6 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_real_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], float*v6 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_text_allf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_text_all_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_text_all_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_vars_textf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_text_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_text_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], char *v6 FORT_MIXED_LEN(d6) FORT_END_LEN(d6) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/put_varsf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_put_vars_ ( int *v1, int64_t *v2, int64_t v3[], int64_t v4[], int64_t v5[], void*v6, int64_t *v7, MPI_Fint *v8 ){ 
     24FORTRAN_API int FORT_CALL nfmpi_put_vars_ ( int *v1, int *v2, MPI_Offset v3[], MPI_Offset v4[], MPI_Offset v5[], void*v6, MPI_Offset *v7, MPI_Fint *v8 ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/rename_attf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_rename_att_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3), char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d3) FORT_END_LEN(d4) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_rename_att_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3), char *v4 FORT_MIXED_LEN(d4) FORT_END_LEN(d3) FORT_END_LEN(d4) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/rename_dimf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_rename_dim_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_rename_dim_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/libf/rename_varf.c

    r613 r625  
    2222/* Prototypes for the Fortran interfaces */ 
    2323#include "mpifnetcdf.h" 
    24 FORTRAN_API int FORT_CALL nfmpi_rename_var_ ( int *v1, int64_t *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
     24FORTRAN_API int FORT_CALL nfmpi_rename_var_ ( int *v1, int *v2, char *v3 FORT_MIXED_LEN(d3) FORT_END_LEN(d3) ){ 
    2525    int ierr; 
    2626    int l2 = *v2 - 1; 
  • trunk/CDF3/src/utils/ncdump/ncdump.c

    r618 r625  
    2323static void tztrim(char* ss); 
    2424static void pr_att_string(size_t len, const char* string); 
    25 static void pr_att_vals(ncmpi_type  type, int64_t len, const double* vals); 
    26 static void pr_att(int ncid, int64_t varid, const char *varname, int64_t ia); 
     25static void pr_att_vals(ncmpi_type  type, size_t len, const double* vals); 
     26static void pr_att(int ncid, int varid, const char *varname, int ia); 
    2727static void do_ncdump(const char* path, struct fspec* specp); 
    2828static void make_lvars(char* optarg, struct fspec* fspecp); 
     
    216216pr_att_vals( 
    217217     ncmpi_type type, 
    218      int64_t len, 
     218     size_t len, 
    219219     const double *vals 
    220220     ) 
     
    294294pr_att( 
    295295    int ncid, 
    296     int64_t varid, 
     296    int varid, 
    297297    const char *varname, 
    298     int64_t ia 
     298    int ia 
    299299    ) 
    300300{ 
     
    342342do_ncdump(const char *path, struct fspec* specp) 
    343343{ 
    344     int64_t ndims;                    /* number of dimensions */ 
    345     int64_t nvars;                    /* number of variables */ 
    346     int64_t ngatts;                   /* number of global attributes */ 
    347     int64_t xdimid;                   /* id of unlimited dimension */ 
    348     int64_t dimid;                    /* dimension id */ 
    349     int64_t varid;                    /* variable id */ 
     344    int ndims;                        /* number of dimensions */ 
     345    int nvars;                        /* number of variables */ 
     346    int ngatts;                       /* number of global attributes */ 
     347    int xdimid;                       /* id of unlimited dimension */ 
     348    int dimid;                        /* dimension id */ 
     349    int varid;                        /* variable id */ 
    350350    struct ncdim dims[NC_MAX_DIMS]; /* dimensions */ 
    351351    size_t vdims[NC_MAX_DIMS];  /* dimension sizes for a single variable */ 
    352352    struct ncvar var;           /* variable */ 
    353353    struct ncatt att;           /* attribute */ 
    354     int64_t id;                       /* dimension number per variable */ 
    355     int64_t ia;                       /* attribute number */ 
    356     int64_t iv;                       /* variable number */ 
     354    int id;                   /* dimension number per variable */ 
     355    int ia;                   /* attribute number */ 
     356    int iv;                   /* variable number */ 
    357357    int is_coord;               /* true if variable is a coordinate variable */ 
    358358    int ncid;                   /* netCDF id */ 
  • trunk/CDF3/src/utils/ncdump/ncdump.h

    r618 r625  
    2020struct ncdim {                  /* dimension */ 
    2121    char name[NC_MAX_NAME]; 
    22     int64_t size; 
     22    MPI_Offset size; 
    2323}; 
    2424 
     
    2626    char name[NC_MAX_NAME]; 
    2727    nc_type type; 
    28     int64_t ndims; 
    29     int64_t dims[NC_MAX_VAR_DIMS]; 
    30     int64_t natts; 
     28    int ndims; 
     29    int dims[NC_MAX_VAR_DIMS]; 
     30    int natts; 
    3131    boolean has_fillval; 
    3232    double fillval; 
     
    3737    char name[NC_MAX_NAME]; 
    3838    nc_type type; 
    39     int64_t len; 
     39    MPI_Offset len; 
    4040    char *string;               /* for text attributes (type = NC_CHAR) */ 
    4141    double *vals;               /* for numeric attributes of all types */ 
  • trunk/CDF3/src/utils/ncdump/vardata.c

    r618 r625  
    3333static void lastdelim(boolean  more, boolean lastrow); 
    3434static void annotate(const struct ncvar* vp, const struct fspec* fsp, 
    35                      const int64_t* cor, long iel); 
     35                     const MPI_Offset* cor, long iel); 
    3636static void pr_tvals(const struct ncvar *vp, size_t len, const char *fmt, 
    3737                     boolean more, boolean lastrow, const char *vals, 
    38                      const struct fspec* fsp, const int64_t *cor); 
     38                     const struct fspec* fsp, const MPI_Offset *cor); 
    3939static void pr_bvals(const struct ncvar *vp, size_t len, const char *fmt, 
    4040                     boolean more, boolean lastrow, const signed char *vals, 
    41                      const struct fspec* fsp, const int64_t *cor); 
     41                     const struct fspec* fsp, const MPI_Offset *cor); 
    4242static void pr_svals(const struct ncvar *vp, size_t len, const char *fmt, 
    4343                     boolean more, boolean lastrow, const short *vals, 
    44                      const struct fspec* fsp, const int64_t *cor); 
     44                     const struct fspec* fsp, const MPI_Offset *cor); 
    4545static void pr_ivals(const struct ncvar *vp, size_t len, const char *fmt, 
    4646                     boolean more, boolean lastrow, const int *vals, 
    47                      const struct fspec* fsp, const int64_t *cor); 
     47                     const struct fspec* fsp, const MPI_Offset *cor); 
    4848static void pr_fvals(const struct ncvar *vp, size_t len, const char *fmt, 
    4949                     boolean more, boolean lastrow, const float *vals, 
    50                      const struct fspec* fsp, const int64_t *cor); 
     50                     const struct fspec* fsp, const MPI_Offset *cor); 
    5151static void pr_dvals(const struct ncvar *vp, size_t len, const char *fmt, 
    5252                     boolean more, boolean lastrow, const double *vals, 
    53                      const struct fspec* fsp, const int64_t *cor); 
    54 static int  upcorner(const size_t* dims, int ndims, int64_t* odom, 
     53                     const struct fspec* fsp, const MPI_Offset *cor); 
     54static int  upcorner(const size_t* dims, int ndims, MPI_Offset* odom, 
    5555                     const size_t* add); 
    5656static void lastdelim2 (boolean more, boolean lastrow); 
     
    299299     const struct ncvar *vp,    /* variable */ 
    300300     const struct fspec* fsp,   /* formatting specs */ 
    301      const int64_t *cor,              /* corner coordinates */ 
     301     const MPI_Offset *cor,           /* corner coordinates */ 
    302302     long iel                   /* which element in current row */ 
    303303     ) 
     
    346346     const char *vals,          /* pointer to block of values */ 
    347347     const struct fspec* fsp,   /* formatting specs */ 
    348      const int64_t *cor               /* corner coordinates */ 
     348     const MPI_Offset *cor            /* corner coordinates */ 
    349349     ) 
    350350{ 
     
    400400            Printf("\""); 
    401401            lastdelim (more, lastrow); 
    402             annotate (vp, fsp,  (int64_t*)cor, 0L); 
     402            annotate (vp, fsp,  (MPI_Offset*)cor, 0L); 
    403403        } 
    404404    } else {            /* use format from C_format attribute */ 
     
    407407                Printf(fmt, *vals++); 
    408408                Printf(", "); 
    409                 annotate (vp, fsp,  (int64_t *)cor, iel); 
     409                annotate (vp, fsp,  (MPI_Offset *)cor, iel); 
    410410            } else { 
    411411                (void) sprintf(sout, fmt, *vals++); 
     
    417417            Printf(fmt, *vals++); 
    418418            lastdelim (more, lastrow); 
    419             annotate (vp, fsp,  (int64_t *)cor, iel); 
     419            annotate (vp, fsp,  (MPI_Offset *)cor, iel); 
    420420        } else { 
    421421            (void) sprintf(sout, fmt, *vals++); 
     
    448448     const signed char *vals,   /* pointer to block of values */ 
    449449     const struct fspec* fsp,   /* formatting specs */ 
    450      const int64_t *cor               /* corner coordinates */ 
     450     const MPI_Offset *cor            /* corner coordinates */ 
    451451     ) 
    452452{ 
     
    496496     const short *vals,         /* pointer to block of values */ 
    497497     const struct fspec* fsp,   /* formatting specs */ 
    498      const int64_t *cor               /* corner coordinates */ 
     498     const MPI_Offset *cor            /* corner coordinates */ 
    499499     ) 
    500500{ 
     
    546546     const int *vals,           /* pointer to block of values */ 
    547547     const struct fspec* fsp,   /* formatting specs */ 
    548      const int64_t *cor               /* corner coordinates */ 
     548     const MPI_Offset *cor            /* corner coordinates */ 
    549549     ) 
    550550{ 
     
    594594     const float *vals,         /* pointer to block of values */ 
    595595     const struct fspec* fsp,   /* formatting specs */ 
    596      const int64_t *cor               /* corner coordinates */ 
     596     const MPI_Offset *cor            /* corner coordinates */ 
    597597     ) 
    598598{ 
     
    642642     const double *vals,        /* pointer to block of values */ 
    643643     const struct fspec* fsp,   /* formatting specs */ 
    644      const int64_t *cor               /* corner coordinates */ 
     644     const MPI_Offset *cor            /* corner coordinates */ 
    645645     ) 
    646646{ 
     
    679679     const size_t *dims,        /* The "odometer" limits for each dimension */ 
    680680     int ndims,                 /* Number of dimensions */ 
    681      int64_t* odom,           /* The "odometer" vector to be updated */ 
     681     MPI_Offset* odom,                /* The "odometer" vector to be updated */ 
    682682     const size_t* add          /* A vector to "add" to odom on each update */ 
    683683     ) 
     
    704704vardata( 
    705705     const struct ncvar *vp,    /* variable */ 
    706      int64_t vdims[],         /* variable dimension sizes */ 
     706     size_t vdims[],          /* variable dimension sizes */ 
    707707     int ncid,                  /* netcdf id */ 
    708      int64_t varid,                   /* variable id */ 
     708     int varid,                       /* variable id */ 
    709709     const struct fspec* fsp    /* formatting specs */ 
    710710     ) 
    711711{ 
    712     int64_t cor[NC_MAX_DIMS]; /* corner coordinates */ 
    713     int64_t edg[NC_MAX_DIMS]; /* edges of hypercube */ 
    714     int64_t add[NC_MAX_DIMS]; /* "odometer" increment to next "row"  */ 
     712    MPI_Offset cor[NC_MAX_DIMS];      /* corner coordinates */ 
     713    MPI_Offset edg[NC_MAX_DIMS];      /* edges of hypercube */ 
     714    size_t add[NC_MAX_DIMS];  /* "odometer" increment to next "row"  */ 
    715715#define VALBUFSIZ 1000 
    716716    double vals[VALBUFSIZ] ; /* aligned buffer */ 
    717  
     717  
    718718    int gulp = VALBUFSIZ; 
    719719 
    720720    int id; 
    721721    int ir; 
    722     int64_t nels; 
    723     int64_t ncols; 
    724     int64_t nrows; 
     722    MPI_Offset nels; 
     723    MPI_Offset ncols; 
     724    MPI_Offset nrows; 
    725725    int vrank = vp->ndims; 
    726726    static int initeps = 0; 
  • trunk/CDF3/src/utils/ncdump/vardata.h

    r618 r625  
    1717/* Output the data for a single variable, in CDL syntax. */ 
    1818extern int vardata ( const struct ncvar*, /* variable */ 
    19                      int64_t [], /* variable dimension lengths */ 
     19                     size_t [], /* variable dimension lengths */ 
    2020                     int, /* netcdf id */ 
    21                      int64_t, /* variable id */ 
     21                     int, /* variable id */ 
    2222                     const struct fspec* /* formatting specs */ 
    2323    ); 
  • trunk/CDF3/test/fandc/csnap.c

    r613 r625  
    160160  double *smf = NULL; 
    161161  double t1, t2, t3; 
    162   int64_t dim_id[3]; 
    163   int64_t lon_id, lat_id, lev_id; 
     162  int dim_id[3]; 
     163  int lon_id, lat_id, lev_id; 
    164164  int ierr; 
    165165  int file_id; 
    166   int64_t t_id, smf_id; 
     166  int t_id, smf_id; 
    167167  int ii; 
    168   int64_t start_3d[3]; 
    169   int64_t count_3d[3]; 
    170   int64_t start_2d[2]; 
    171   int64_t count_2d[2]; 
     168  MPI_Offset start_3d[3]; 
     169  MPI_Offset count_3d[3]; 
     170  MPI_Offset start_2d[2]; 
     171  MPI_Offset count_2d[2]; 
    172172 
    173173  start_3d[0] = kstart; 
     
    203203/*  ierr = nc_set_fill(file_id,fillmode,&old_fillmode); */ 
    204204 
    205     ierr = ncmpi_def_dim(file_id,"level",    (int64_t) totsiz_3d[0],&lev_id); 
    206     ierr = ncmpi_def_dim(file_id,"latitude", (int64_t) totsiz_3d[1],&lat_id); 
    207     ierr = ncmpi_def_dim(file_id,"longitude",(int64_t) totsiz_3d[2],&lon_id); 
     205    ierr = ncmpi_def_dim(file_id,"level",    (MPI_Offset) totsiz_3d[0],&lev_id); 
     206    ierr = ncmpi_def_dim(file_id,"latitude", (MPI_Offset) totsiz_3d[1],&lat_id); 
     207    ierr = ncmpi_def_dim(file_id,"longitude",(MPI_Offset) totsiz_3d[2],&lon_id); 
    208208 
    209209    dim_id[0] = lev_id; dim_id[1] = lat_id; dim_id[2] = lon_id; 
     
    251251  double dt1, dt2; 
    252252  int ncid; 
    253   int64_t vid_t, vid_smf; 
     253  int vid_t, vid_smf; 
    254254  int i, j, k, ii, ierr; 
    255255 
    256   int64_t start_3d[3]; 
    257   int64_t count_3d[3]; 
    258   int64_t start_2d[2]; 
    259   int64_t count_2d[2]; 
     256  MPI_Offset start_3d[3]; 
     257  MPI_Offset count_3d[3]; 
     258  MPI_Offset start_2d[2]; 
     259  MPI_Offset count_2d[2]; 
    260260 
    261261  start_3d[0] = kstart; 
  • trunk/CDF3/test/fandc/pnctest.c

    r613 r625  
    2020  MPI_Comm comm_cart; 
    2121  int ierr; 
    22   int64_t lat_id, lev_id, lon_id; 
     22  int lat_id, lev_id, lon_id; 
    2323  int ncid; 
    2424  int totpes; 
    25   int64_t tt_id; 
     25  int tt_id; 
    2626 
    27   int64_t dim_id[3]; 
     27  int dim_id[3]; 
    2828 
    2929  int numpes[3] = { 0, 1, 1 };  /* number of PEs along axes; 
     
    4242                       &ncid); 
    4343 
    44   ierr = ncmpi_def_dim (ncid, "level",     (int64_t) TOTSIZ_3D[0], &lev_id); 
    45   ierr = ncmpi_def_dim (ncid, "latitude",  (int64_t) TOTSIZ_3D[1], &lat_id); 
    46   ierr = ncmpi_def_dim (ncid, "longitude", (int64_t) TOTSIZ_3D[2], &lon_id); 
     44  ierr = ncmpi_def_dim (ncid, "level",     (MPI_Offset) TOTSIZ_3D[0], &lev_id); 
     45  ierr = ncmpi_def_dim (ncid, "latitude",  (MPI_Offset) TOTSIZ_3D[1], &lat_id); 
     46  ierr = ncmpi_def_dim (ncid, "longitude", (MPI_Offset) TOTSIZ_3D[2], &lon_id); 
    4747 
    4848  dim_id[0] = lev_id; 
  • trunk/CDF3/test/fandc/pnctestf.F

    r613 r625  
    4343 
    4444 
    45       ierr = Nfmpi_Create (comm_cart, "pnf_test.nc", NF_CLOBBER, 
     45      ierr = Nfmpi_Create (comm_cart, "pnf_test.nc",  
     46     &                   NF_CLOBBER, 
    4647     &                   MPI_INFO_NULL, ncid) 
    4748 
  • trunk/CDF3/test/largefile/large_files.c

    r614 r625  
    2020#include <pnetcdf.h> 
    2121 
    22 #define FILE_NAME "/pvfs2/kgao/large_files.nc" 
     22#define FILE_NAME "./large_files.nc" 
    2323 
    2424void 
     
    3939 
    4040   /* dimension ids */ 
    41    int64_t rec_dim; 
    42    int64_t i_dim; 
    43    int64_t j_dim; 
    44    int64_t k_dim; 
    45    int64_t n_dim; 
     41   int rec_dim; 
     42   int i_dim; 
     43   int j_dim; 
     44   int k_dim; 
     45   int n_dim; 
    4646  
    4747#define NUMRECS 1 
     
    5252 
    5353   /* dimension lengths */ 
    54    int64_t rec_len = NC_UNLIMITED; 
    55    int64_t i_len = I_LEN; 
    56    int64_t j_len = J_LEN; 
    57    int64_t k_len = K_LEN; 
    58    int64_t n_len = N_LEN; 
     54   MPI_Offset rec_len = NC_UNLIMITED; 
     55   MPI_Offset i_len = I_LEN; 
     56   MPI_Offset j_len = J_LEN; 
     57   MPI_Offset k_len = K_LEN; 
     58   MPI_Offset n_len = N_LEN; 
    5959 
    6060   /* variable ids */ 
    61    int64_t var1_id; 
    62    int64_t x_id; 
     61   int var1_id; 
     62   int x_id; 
    6363 
    6464   /* rank (number of dimensions) for each variable */ 
     
    6767 
    6868   /* variable shapes */ 
    69    int64_t var1_dims[RANK_var1]; 
    70    int64_t x_dims[RANK_x]; 
     69   int var1_dims[RANK_var1]; 
     70   int x_dims[RANK_x]; 
    7171 
    7272    printf("\n*** Testing large files, slowly.\n"); 
     
    117117       int n = 0; 
    118118       static signed char var1[J_LEN][K_LEN]; 
    119        static int64_t var1_start[RANK_var1] = {0, 0, 0, 0}; 
    120        static int64_t var1_count[RANK_var1] = {1, 1, J_LEN, K_LEN}; 
    121        static int64_t x_start[RANK_x] = {0, 0}; 
    122        static int64_t x_count[RANK_x] = {1, N_LEN}; 
     119       static MPI_Offset var1_start[RANK_var1] = {0, 0, 0, 0}; 
     120       static MPI_Offset var1_count[RANK_var1] = {1, 1, J_LEN, K_LEN}; 
     121       static MPI_Offset x_start[RANK_x] = {0, 0}; 
     122       static MPI_Offset x_count[RANK_x] = {1, N_LEN}; 
    123123       for(rec=0; rec<NUMRECS; rec++) { 
    124124           var1_start[0] = rec; 
     
    152152       int n = 0; 
    153153       static signed char var1[J_LEN][K_LEN]; 
    154        static int64_t var1_start[RANK_var1] = {0, 0, 0, 0}; 
    155        static int64_t var1_count[RANK_var1] = {1, 1, J_LEN, K_LEN}; 
    156        static int64_t x_start[RANK_x] = {0, 0}; 
    157        static int64_t x_count[RANK_x] = {1, N_LEN}; 
     154       static MPI_Offset var1_start[RANK_var1] = {0, 0, 0, 0}; 
     155       static MPI_Offset var1_count[RANK_var1] = {1, 1, J_LEN, K_LEN}; 
     156       static MPI_Offset x_start[RANK_x] = {0, 0}; 
     157       static MPI_Offset x_count[RANK_x] = {1, N_LEN}; 
    158158       for(rec=0; rec<NUMRECS; rec++) { 
    159159           var1_start[0] = rec; 
  • trunk/CDF3/test/nc_test/util.c

    r613 r625  
    540540    int  err;             /* status */ 
    541541    int  i; 
    542     int64_t  dimid;           /* dimension id */ 
     542    int  dimid;               /* dimension id */ 
    543543 
    544544    for (i = 0; i < NDIMS; i++) { 
     
    556556    int  err;             /* status */ 
    557557    int  i; 
    558     int64_t var_id; 
     558    int var_id; 
    559559 
    560560    for (i = 0; i < NVARS; i++) { 
  • trunk/CDF3/test/test_double/test_read.c

    r613 r625  
    6868  int status; 
    6969  int ncid1, ncid2; 
    70   int64_t ndims, nvars, ngatts, unlimdimid; 
     70  int ndims, nvars, ngatts, unlimdimid; 
    7171  char name[NC_MAX_NAME]; 
    7272  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    73   int64_t attlen, dimlen; 
    74   int64_t shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    75   int64_t stride[NC_MAX_VAR_DIMS]; 
     73  MPI_Offset attlen, dimlen; 
     74  MPI_Offset shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     75  MPI_Offset stride[NC_MAX_VAR_DIMS]; 
    7676  void *valuep; 
    77   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    78   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    79   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     77  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     78  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     79  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    8080  int isRecvar; 
    8181  params opts; 
  • trunk/CDF3/test/test_double/test_read_indep.c

    r613 r625  
    6868  int status; 
    6969  int ncid1, ncid2; 
    70   int64_t ndims, nvars, ngatts, unlimdimid; 
     70  int ndims, nvars, ngatts, unlimdimid; 
    7171  char name[NC_MAX_NAME]; 
    7272  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    73   int64_t attlen, dimlen; 
    74   int64_t shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    75   int64_t stride[NC_MAX_VAR_DIMS]; 
     73  MPI_Offset attlen, dimlen; 
     74  MPI_Offset shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     75  MPI_Offset stride[NC_MAX_VAR_DIMS]; 
    7676  void *valuep; 
    77   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    78   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    79   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     77  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     78  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     79  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    8080  int isRecvar; 
    8181  params opts; 
  • trunk/CDF3/test/test_double/test_write.c

    r613 r625  
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t square_stride[2] = {2, 2}; 
    75   int64_t xytime_start[3] = {0, 0, 0}; 
    76   int64_t xytime_count[3] = {100, 50, 50}; 
    77   int64_t time_start[1], time_count[1] = {25}; 
    78   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset square_stride[2] = {2, 2}; 
     75  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     76  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     77  MPI_Offset time_start[1], time_count[1] = {25}; 
     78  int square_id, cube_id, xytime_id, time_id; 
    7979  static char title[] = "example netCDF dataset"; 
    8080  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/test_double/test_write_indep.c

    r613 r625  
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t xytime_start[3] = {0, 0, 0}; 
    75   int64_t xytime_count[3] = {100, 50, 50}; 
    76   int64_t time_start[1], time_count[1] = {25}; 
    77   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     75  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     76  MPI_Offset time_start[1], time_count[1] = {25}; 
     77  int square_id, cube_id, xytime_id, time_id; 
    7878  static char title[] = "example netCDF dataset"; 
    7979  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/test_double_int/test_read.c

    r613 r625  
    6868  int status; 
    6969  int ncid1, ncid2; 
    70   int64_t ndims, nvars, ngatts, unlimdimid; 
     70  int ndims, nvars, ngatts, unlimdimid; 
    7171  char name[NC_MAX_NAME]; 
    7272  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    73   int64_t attlen, dimlen; 
    74   int64_t shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     73  MPI_Offset attlen, dimlen; 
     74  MPI_Offset shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    7575  void *valuep; 
    76   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    77   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    78   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     76  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     77  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     78  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    7979  int isRecvar; 
    8080  params opts; 
  • trunk/CDF3/test/test_double_int/test_read_indep.c

    r613 r625  
    6868  int status; 
    6969  int ncid1, ncid2; 
    70   int64_t ndims, nvars, ngatts, unlimdimid; 
     70  int ndims, nvars, ngatts, unlimdimid; 
    7171  char name[NC_MAX_NAME]; 
    7272  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    73   int64_t attlen, dimlen; 
    74   int64_t shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     73  MPI_Offset attlen, dimlen; 
     74  MPI_Offset shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    7575  void *valuep; 
    76   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    77   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    78   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     76  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     77  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     78  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    7979  int isRecvar; 
    8080  params opts; 
  • trunk/CDF3/test/test_double_int/test_write.c

    r613 r625  
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t xytime_start[3] = {0, 0, 0}; 
    75   int64_t xytime_count[3] = {100, 50, 50}; 
    76   int64_t time_start[1], time_count[1] = {25}; 
    77   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     75  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     76  MPI_Offset time_start[1], time_count[1] = {25}; 
     77  int square_id, cube_id, xytime_id, time_id; 
    7878  static char title[] = "example netCDF dataset"; 
    7979  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/test_double_int/test_write_indep.c

    r613 r625  
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t xytime_start[3] = {0, 0, 0}; 
    75   int64_t xytime_count[3] = {100, 50, 50}; 
    76   int64_t time_start[1], time_count[1] = {25}; 
    77   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     75  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     76  MPI_Offset time_start[1], time_count[1] = {25}; 
     77  int square_id, cube_id, xytime_id, time_id; 
    7878  static char title[] = "example netCDF dataset"; 
    7979  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/test_dtype/test_nonblocking.c

    r613 r625  
    1515#define TEST_ARRAY_ORDER MPI_ORDER_C 
    1616 
    17 int64_t ndims = TEST_DIMS; 
     17int ndims = TEST_DIMS; 
    1818char *filename = TEST_DEFAULT_FILE; 
    1919int test_n = TEST_N; 
     
    9090} 
    9191 
    92 void partition_array(int64_t ndims,  
    93                      int64_t *total_sizes,  
    94                      int64_t *local_subsizes,  
    95                      int64_t *local_starts,  
     92void partition_array(int ndims,  
     93                     int *total_sizes,  
     94                     int *local_subsizes,  
     95                     int *local_starts,  
    9696                     int nprocs,  
    9797                     int myrank) 
     
    139139  int *array_of_sizes, *array_of_subsizes, *array_of_starts; 
    140140  int ncid, *dimids, varid_1, varid_2; 
    141   int64_t *local_starts, *local_edges, *stride, *imap; 
     141  MPI_Offset *local_starts, *local_edges, *stride, *imap; 
    142142  char dimname[20]; 
    143143  ncmpi_type nc_etype; 
     
    175175 
    176176  array_of_sizes = (int *) 
    177                    malloc(sizeof(int)*ndims*4 + sizeof(int64_t)*ndims*4); 
     177                   malloc(sizeof(int)*ndims*4 + sizeof(MPI_Offset)*ndims*4); 
    178178  array_of_subsizes = array_of_sizes + ndims; 
    179179  array_of_starts = array_of_subsizes + ndims; 
    180180  dimids = array_of_starts + ndims; 
    181   local_starts = (int64_t *)(dimids + ndims); 
     181  local_starts = (MPI_Offset *)(dimids + ndims); 
    182182  local_edges = local_starts + ndims; 
    183183  stride = local_edges + ndims; 
     
    203203    sprintf(dimname, "dim_%d", i); 
    204204    status = ncmpi_def_dim(ncid, dimname, 
    205                            (int64_t)array_of_sizes[i], dimids+i); 
     205                           (MPI_Offset)array_of_sizes[i], dimids+i); 
    206206    TEST_HANDLE_ERR(status); 
    207207  } 
     
    258258  for (i=0; i<ndims; i++) { 
    259259    local_sz *= array_of_subsizes[i]; 
    260     local_edges[i] = (int64_t)array_of_subsizes[i]; 
    261     local_starts[i] = (int64_t)array_of_starts[i]; 
     260    local_edges[i] = (MPI_Offset)array_of_subsizes[i]; 
     261    local_starts[i] = (MPI_Offset)array_of_starts[i]; 
    262262  } 
    263263 
    264264  if (order == MPI_ORDER_FORTRAN) { 
    265265    /* reverse the filearray dimension, since NC always use C ORDER */ 
    266     TEST_REVERSE(local_edges, ndims, int64_t); 
    267     TEST_REVERSE(local_starts, ndims, int64_t); 
     266    TEST_REVERSE(local_edges, ndims, MPI_Offset); 
     267    TEST_REVERSE(local_starts, ndims, MPI_Offset); 
    268268  } 
    269269 
  • trunk/CDF3/test/test_float/test_read.c

    r613 r625  
    6969  int status; 
    7070  int ncid1, ncid2; 
    71   int64_t ndims, nvars, ngatts, unlimdimid; 
     71  int ndims, nvars, ngatts, unlimdimid; 
    7272  char name[NC_MAX_NAME]; 
    7373  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    74   int64_t attlen; 
    75   int64_t dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     74  MPI_Offset attlen; 
     75  MPI_Offset dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    7676  void *valuep; 
    77   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    78   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    79   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     77  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     78  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     79  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    8080  int isRecvar; 
    8181  params opts; 
  • trunk/CDF3/test/test_float/test_read_indep.c

    r613 r625  
    6868  int status; 
    6969  int ncid1, ncid2; 
    70   int64_t ndims, nvars, ngatts, unlimdimid; 
     70  int ndims, nvars, ngatts, unlimdimid; 
    7171  char name[NC_MAX_NAME]; 
    7272  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    73   int64_t attlen; 
    74   int64_t dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     73  MPI_Offset attlen; 
     74  MPI_Offset dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    7575  void *valuep; 
    76   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    77   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    78   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     76  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     77  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     78  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    7979  int isRecvar; 
    8080  params opts; 
  • trunk/CDF3/test/test_float/test_write.c

    r613 r625  
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t xytime_start[3] = {0, 0, 0}; 
    75   int64_t xytime_count[3] = {100, 50, 50}; 
    76   int64_t time_start[1], time_count[1] = {25}; 
    77   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     75  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     76  MPI_Offset time_start[1], time_count[1] = {25}; 
     77  int square_id, cube_id, xytime_id, time_id; 
    7878  static char title[] = "example netCDF dataset"; 
    7979  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/test_float/test_write_indep.c

    r613 r625  
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t xytime_start[3] = {0, 0, 0}; 
    75   int64_t xytime_count[3] = {100, 50, 50}; 
    76   int64_t time_start[1], time_count[1] = {25}; 
    77   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     75  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     76  MPI_Offset time_start[1], time_count[1] = {25}; 
     77  int square_id, cube_id, xytime_id, time_id; 
    7878  static char title[] = "example netCDF dataset"; 
    7979  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/test_int/Makefile.in

    r613 r625  
    1111 
    1212SRCS            = test_read.c test_read_indep.c test_write.c test_write_indep.c test_write64.c test_read64.c 
    13 SRCS            = test_read.c test_read_indep.c test_write.c test_write_indep.c test_write64.c 
     13SRCS            = test_read.c test_read_indep.c test_write.c test_write_indep.c test_write64.c test2.c 
    1414OBJS            = $(SRCS:.c=.o) 
    15 PROGS           = test_read test_read_indep test_write test_write_indep test_write64 test_read64 
     15PROGS           = test_read test_read_indep test_write test_write_indep test_write64 test_read64 test2.c 
    1616LDFLAGS         = -L$(LIBDIR) -L..//common @LDFLAGS@ 
    1717LIBS            = -lpnetcdf -ltestutils @LIBS@ 
     
    3434test_read64: test_read64.o 
    3535        $(CC) -o $@ $@.o $(LDFLAGS) $(LIBS) 
     36test_read2: test_read2.o 
     37        $(CC) -o $@ $@.o $(LDFLAGS) $(LIBS) 
    3638 
    3739clean: 
  • trunk/CDF3/test/test_int/test_read.c

    r613 r625  
    6868  int status; 
    6969  int ncid1, ncid2; 
    70   int64_t ndims, nvars, ngatts, unlimdimid; 
     70  int ndims, nvars, ngatts, unlimdimid; 
    7171  char name[NC_MAX_NAME]; 
    7272  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    73   int64_t attlen; 
    74   int64_t dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     73  MPI_Offset attlen; 
     74  MPI_Offset dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    7575  void *valuep; 
    76   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    77   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    78   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     76  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     77  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     78  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    7979  int isRecvar; 
    8080  params opts; 
    81  
    8281  int rank; 
    8382  int nprocs; 
  • trunk/CDF3/test/test_int/test_read64.c

    r613 r625  
    6868  int status; 
    6969  int ncid1, ncid2; 
    70   int64_t ndims, nvars, ngatts, unlimdimid; 
     70  int ndims, nvars, ngatts, unlimdimid; 
    7171  char name[NC_MAX_NAME]; 
    7272  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    73   int64_t attlen; 
    74   int64_t dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     73  MPI_Offset attlen; 
     74  MPI_Offset dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    7575  void *valuep; 
    76   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    77   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    78 //  int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS]; /* divided by 16 due to my memory limitation */ 
    79   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     76  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     77  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     78//  MPI_Offset vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS]; /* divided by 16 due to my memory limitation */ 
     79  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    8080  int isRecvar; 
    8181  params opts; 
  • trunk/CDF3/test/test_int/test_read_indep.c

    r613 r625  
    6868  int status; 
    6969  int ncid1, ncid2; 
    70   int64_t ndims, nvars, ngatts, unlimdimid; 
     70  int ndims, nvars, ngatts, unlimdimid; 
    7171  char name[NC_MAX_NAME]; 
    7272  ncmpi_type type, vartypes[NC_MAX_VARS]; 
    73   int64_t attlen; 
    74   int64_t dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
     73  MPI_Offset attlen; 
     74  MPI_Offset dimlen, shape[NC_MAX_VAR_DIMS], varsize, start[NC_MAX_VAR_DIMS]; 
    7575  void *valuep; 
    76   int64_t dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
    77   int64_t vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
    78   int64_t varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
     76  int dimids[NC_MAX_DIMS], varids[NC_MAX_VARS]; 
     77  int vardims[NC_MAX_VARS][NC_MAX_VAR_DIMS/16]; /* divided by 16 due to my memory limitation */ 
     78  int varndims[NC_MAX_VARS], varnatts[NC_MAX_VARS]; 
    7979  int isRecvar; 
    8080  params opts; 
  • trunk/CDF3/test/test_int/test_write.c

    r613 r625  
    6565int main(int argc, char **argv) { 
    6666 
    67   int64_t i, j, k; 
     67  MPI_Offset i, j, k; 
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t xytime_start[3] = {0, 0, 0}; 
    75   int64_t xytime_count[3] = {100, 50, 50}; 
    76   int64_t time_start[1], time_count[1] = {25}; 
    77   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     75  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     76  MPI_Offset time_start[1], time_count[1] = {25}; 
     77  int square_id, cube_id, xytime_id, time_id; 
    7878  static char title[] = "example netCDF dataset"; 
    7979  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/test_int/test_write64.c

    r613 r625  
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t xytime_start[3] = {0, 0, 0}; 
    75   int64_t xytime_count[3] = {100, 50, 50}; 
    76   int64_t time_start[1], time_count[1] = {25}; 
    77   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     75  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     76  MPI_Offset time_start[1], time_count[1] = {25}; 
     77  int square_id, cube_id, xytime_id, time_id; 
    7878  static char title[] = "example netCDF dataset"; 
    7979  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/test_int/test_write_indep.c

    r613 r625  
    6868  int status; 
    6969  int ncid; 
    70   int64_t dimid1, dimid2, dimid3, udimid; 
    71   int64_t square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
    72   int64_t square_start[2], cube_start[3] = {0, 0, 0}; 
    73   int64_t square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
    74   int64_t xytime_start[3] = {0, 0, 0}; 
    75   int64_t xytime_count[3] = {100, 50, 50}; 
    76   int64_t time_start[1], time_count[1] = {25}; 
    77   int64_t square_id, cube_id, xytime_id, time_id; 
     70  int dimid1, dimid2, dimid3, udimid; 
     71  int square_dim[2], cube_dim[3], xytime_dim[3], time_dim[1]; 
     72  MPI_Offset square_start[2], cube_start[3] = {0, 0, 0}; 
     73  MPI_Offset square_count[2] = {50, 50}, cube_count[3] = {100, 50, 50}; 
     74  MPI_Offset xytime_start[3] = {0, 0, 0}; 
     75  MPI_Offset xytime_count[3] = {100, 50, 50}; 
     76  MPI_Offset time_start[1], time_count[1] = {25}; 
     77  int square_id, cube_id, xytime_id, time_id; 
    7878  static char title[] = "example netCDF dataset"; 
    7979  static char description[] = "2-D integer array"; 
  • trunk/CDF3/test/testcases/ncmpi_vars_null_stride.c

    r613 r625  
    1313{ 
    1414        int ret, ncfile; 
    15         int64_t dimid, varid, ndims=NDIMS; 
     15        int dimid, varid, ndims=NDIMS; 
    1616        int i, nprocs, rank; 
    17         int64_t start[NDIMS] = {0}; 
    18         int64_t count[NDIMS] = {0}; 
     17        MPI_Offset start[NDIMS] = {0}; 
     18        MPI_Offset count[NDIMS] = {0}; 
    1919        int buf[512]; 
    2020