source: XIOS/dev/dev_olga/src/extern/blitz/include/blitz/ranks.h @ 1022

Last change on this file since 1022 was 1022, checked in by mhnguyen, 7 years ago
File size: 990 bytes
Line 
1#ifndef BZ_RANKS_H
2#define BZ_RANKS_H
3
4BZ_NAMESPACE(blitz)
5
6/*
7 * Rank numbers start with zero, which may be confusing to users coming
8 * from Fortran.  To make code more readable, the following constants
9 * may help.  Example: instead of
10 *
11 * int firstRankExtent = A.extent(0);
12 *
13 * One can write:
14 *
15 * int firstRankExtent = A.extent(firstRank);
16 */
17
18const int firstRank    = 0;
19const int secondRank   = 1;
20const int thirdRank    = 2;
21const int fourthRank   = 3;
22const int fifthRank    = 4;
23const int sixthRank    = 5;
24const int seventhRank  = 6;
25const int eighthRank   = 7;
26const int ninthRank    = 8;
27const int tenthRank    = 9;
28const int eleventhRank = 10;
29
30const int firstDim    = 0;
31const int secondDim   = 1;
32const int thirdDim    = 2;
33const int fourthDim   = 3;
34const int fifthDim    = 4;
35const int sixthDim    = 5;
36const int seventhDim  = 6;
37const int eighthDim   = 7;
38const int ninthDim    = 8;
39const int tenthDim    = 9;
40const int eleventhDim = 10;
41
42BZ_NAMESPACE_END
43
44#endif
Note: See TracBrowser for help on using the repository browser.