Changes
Page history
Update 3.1 Code basics
authored
Jan 08, 2021
by
Udo Ziegler
Show whitespace changes
Inline
Side-by-side
3-NIRVANA-user-guide/3.1-Code-basics.md
View page @
21db471f
...
...
@@ -2,7 +2,7 @@
CONTENTS:
[
Functionality overview
](
3.1-Code-basics#functionality-overview
)
[
Dy
a
nmic arrays
](
3.1-Code-basics#dynamic-arrays
)
[
Dyn
a
mic arrays
](
3.1-Code-basics#dynamic-arrays
)
## Functionality overview
...
...
@@ -116,7 +116,7 @@ assumed edge-centered analog to the electric field.
*
Note: The TESTFIELDS infrastructure does not implement any numerical
method to solve induction equations for testfield fluctuations.
*
##
#
Dynamic arrays
## Dynamic arrays
The NIRVANA infrastructure implements its own proprietary routines for
dynamic array allocation. The available array allocation- and
...
...
@@ -170,7 +170,7 @@ resources.*
*
Note 3: The module
`utilAF.c`
only implements array functions of such
dimensionality and type as really needed so far in NIRVANA.
*
##
#
Mesh data structure
## Mesh data structure
Knowledge of the data structure representing the numerical mesh is
important for coding intial conditions (IC) and other user interfaces
...
...
@@ -194,7 +194,7 @@ operator `->next`. The linked list ends if the next grid pointer gives
the NULL pointer. The following image illustrates the linked list
concept.


Denoting the variable for a superblock pointer as
`g`
looping over mesh
refinement level
*l*
(index
`il`
) is as simple as
...
...
...
...