GfsBox
From Gerris
(Difference between revisions)
| Revision as of 16:39, 24 July 2012 GeordieMcBain (Talk | contribs) (new page) ← Previous diff |
Revision as of 16:45, 24 July 2012 GeordieMcBain (Talk | contribs) (called the pid value 'rank') Next diff → |
||
| Line 11: | Line 11: | ||
| } | } | ||
| - | The <code>pid</code> is the unsigned integer (starting from zero) that identifies the processor to which the box is assigned in a parallel run. | + | The <code>pid</code> is the unsigned integer (starting from zero) that identifies the processor to which the box is assigned in a parallel run (the ''rank'' in MPI terms). |
| In parameter files produced by [[GfsOutputSimulation]], it may also contain: | In parameter files produced by [[GfsOutputSimulation]], it may also contain: | ||
Revision as of 16:45, 24 July 2012
GfsBoxes are the square or cubes (in two or three dimensions, respectively) of which the domain (for a GfsSimulation, etc) is built. They are also the basic element of domain decomposition for running Gerris in parallel.
The syntax in parameter input files is:
GfsBox {
pid = 0
left = [ GfsBoundary ]
right = [ GfsBoundary ]
top = [ GfsBoundary ]
bottom = [ GfsBoundary ]
}
The pid is the unsigned integer (starting from zero) that identifies the processor to which the box is assigned in a parallel run (the rank in MPI terms).
In parameter files produced by GfsOutputSimulation, it may also contain:
id- an unsigned integer identifier
size- number of cells
x,y,z- the Cartesian coordinates of the centre

