Changes
Page history
Update 3.1 Code basics
authored
Feb 04, 2021
by
Udo Ziegler
Show whitespace changes
Inline
Side-by-side
3-NIRVANA-user-guide/3.1-Code-basics.md
View page @
a5cd1b4c
...
...
@@ -183,10 +183,10 @@ organized in a system of linked lists. The system of linked lists,
representing the mesh, is led by a master mesh pointer,
`gm`
, which is
function argument to many user interfaces like
`configUser()`
(defining
IC). Technically,
`gm`
is a doubly pointer of struct type
`GRD`
, i.e.
`*GRD`
. The
`GRD`
struct type is declared in the header file
`*
*
GRD`
. The
`GRD`
struct type is declared in the header file
`nirvana.h`
. Dereferencing
`gm`
to
`gm[l]`
gives the first superblock in
a linked list which collects all superblocks belonging to mesh
refinement level
*l*
.
`gm[l]`
, like any grid block, is of
`GRD`
type,
refinement level
*l*
.
`gm[l]`
, like any grid block, is of
`
*
GRD`
type,
i.e., a pointer to struct
`GRD`
. The base level
*l*
=0 starting with
pointer
`gm[0]`
is special because it spans the computational domain.
The superblocks making up a refinement level
*l*
can be reached
...
...
...
...