Changes
Page history
Update 3.1 Code basics
authored
Jan 11, 2021
by
Udo Ziegler
Show whitespace changes
Inline
Side-by-side
3-NIRVANA-user-guide/3.1-Code-basics.md
View page @
a336915d
...
@@ -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(n
x
,n
y
);
A2=Array2(n
y
,n
x
);
A3=Array3(n
x
,ny,n
z
);
A3=Array3(n
z
,ny,n
x
);
...
...
...
@@ -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
...
...
...
...