next up previous contents
Next: 3 Examples Up: 2.3 The FileStructure Section Previous: 2.3.9 Operation Element: SetDims   Contents


2.3.10 Operation Element: SetSize

The SetSize element indicates that one of an array's dimensions should be set. This is used when a dimension may change, depending on the values of other parameters in the file. SetSize sets the dimensions one at a time, whereas SetDims sets the dimensions all at once (see Section 2.3.9). The SetSize element has the following attributes:
Attribute Name Description Required
target The name of the array for which to set the size yes
dimIndex The index of the dimension for which the size is being set. This can be an integer or a parameter name provided that the value of that parameter has been set, in which case the value of that parameter will be used yes
size The size of the dimension (max index +1). This can be an integer or a parameter name provided that the value of that parameter has been set, in which case the value of that parameter will be used yes

The SetSize element contains no other elements.

$\textstyle \parbox{6.3in}{\textcolor{blue}
{\textbf{Example \hrulefill}}\\
\pa...
...e parameter array named
\lq\lq FREQW'' should be 6
\\ \textcolor{blue}{\hrulefill}}$


next up previous contents
Next: 3 Examples Up: 2.3 The FileStructure Section Previous: 2.3.9 Operation Element: SetDims   Contents

SAIC Ship Technology Division, Annapolis, Maryland, USA
2004-10-26