[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #RTD-555738]: 64-bit dimensions in the Fortran 90 interface



Hello,

Let me preface this with the fact that I am not a fortran developer; with Russ' 
recent retirement, the bulk of our fortran expertise has departed, until we're 
able to hire a new Fortran expert.  From my reading of the code, it would seem 
to me that you are correct, and that the size of dimension values is limited to 
the 32-bit integer.  A little bit of Google research suggests to me that 
dimensions should use the named constant `C_SIZE_T`.

I'll take a stab at making this change for the next release.  We also actively 
solicit pull requests/patches from our community, should anybody be so 
inclined! Such patches are always greatly appreciated :).

Thanks,

-Ward

> Dimension values in the C interface are of size_t type, which is typically
> a 64-bit integer on 64-bit systems.  However it appear that in the Fortran
> 90 interface such dimension values are limited to default integer type,
> which is typically 32-bits.  Do I have that right, or am I mistaken about
> it?
> 
> 


Ticket Details
===================
Ticket ID: RTD-555738
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.