⇐ ⇒

[CF-metadata] Array Subscript Convention

From: Jonathan Gregory <j.m.gregory>
Date: Wed, 14 Jan 2004 10:47:02 +0000

Dear Tom

> Is there a variable attribute for arrays of indices which indicate
> whether the
> numbering convention goes 1:n or 0:n-1 ?
> I am building finite element meshes which require arrays of indices
> to indicate the nodes contained in each triangular element.
> If the same array is used by fortran as by C the indexing will be off by
> one unit.

I think we should have a convention that numbering is always from zero. That
is what we assume in section 8.2, for instance.

Best wishes

Jonathan
Received on Wed Jan 14 2004 - 03:47:02 GMT

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:40 BST

⇐ ⇒