... | @@ -138,8 +138,8 @@ apply these functionality the code fragment |
... | @@ -138,8 +138,8 @@ apply these functionality the code fragment |
|
|
|
|
|
/* ARRAY ALLOCATION */
|
|
/* ARRAY ALLOCATION */
|
|
v=Arrayi(nx);
|
|
v=Arrayi(nx);
|
|
A2=Array2(nx,ny);
|
|
A2=Array2(ny,nx);
|
|
A3=Array3(nx,ny,nz);
|
|
A3=Array3(nz,ny,nx);
|
|
|
|
|
|
...
|
|
...
|
|
|
|
|
... | @@ -163,8 +163,7 @@ for instance, creates |
... | @@ -163,8 +163,7 @@ for instance, creates |
|
|
|
|
|
and subsequently deallocates them.
|
|
and subsequently deallocates them.
|
|
|
|
|
|
*Note 1: The array index ordering is inverse to the argument list in the
|
|
*Note 1: In multi-d arrays the index ordering is inverse.*
|
|
array allocation functions.*
|
|
|
|
|
|
|
|
*Note 2: Allocation of an array must always be followed by its
|
|
*Note 2: Allocation of an array must always be followed by its
|
|
deallocation when it is no longer used in order to free memory
|
|
deallocation when it is no longer used in order to free memory
|
... | | ... | |