GfsBox
From Gerris
(Difference between revisions)
| Revision as of 16:39, 24 July 2012 GeordieMcBain (Talk | contribs) (new page) ← Previous diff |
Current revision Popinet (Talk | contribs) |
||
| Line 3: | Line 3: | ||
| The syntax in parameter input files is: | The syntax in parameter input files is: | ||
| - | [[GfsBox]] { | + | [[GfsBox]] { |
| - | pid = 0 | + | pid = 0 |
| - | left = [ [[GfsBoundary]] ] | + | left = [ [[GfsBoundary]] ] |
| - | right = [ [[GfsBoundary]] ] | + | right = [ [[GfsBoundary]] ] |
| - | top = [ [[GfsBoundary]] ] | + | top = [ [[GfsBoundary]] ] |
| - | bottom = [ [[GfsBoundary]] ] | + | bottom = [ [[GfsBoundary]] ] |
| - | } | + | } |
| - | 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: | ||
Current revision
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

