Difference between revisions of "Setting Developer Flags"

From OSUPDOCS
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Developer flags are sometimes used to test new features or to create a special-case calculation needed in one simulation. They can only be entered using <tt>XML</tt> commands and they must be in the <tt>&lt;Header&gt;</tt> block:
Developer flags are sometimes used to test new features or to create a special-case calculation needed in one simulation. They can only be entered using <tt>XML</tt> commands and they must be in the <tt>&lt;Header&gt;</tt> block:


  &lt;DevelFlag Number='0'/&gt;2&lt;/DevelFlag/&gt;
  &lt;DevelFlag Number='0'&gt;2&lt;/DevelFlag&gt;


This command sets a development flag by number, which must be from 0 to 4. The value must be an integer. The default for all flags is zero. Any non-zero flags will be listed in the output file after the description. During development or in specific calculations, the code might be modified to alter the calculations depending on these flags. These flags should not, however, be relied upon to mean anything permanent.
This command sets a development flag by number, which must be from 0 to 4. The value must be an integer. The default for all flags is zero. Any non-zero flags will be listed in the output file after the description. During development or in specific calculations, the code might be modified to alter the calculations depending on these flags. These flags should not, however, be relied upon to mean anything permanent.


To insert a developer flag when using scripted input commands, you can use the [[XMLData Command]].
To insert a developer flag when using scripted input commands, you can use an [[XMLData Command]] targeted to the "Header" section:
 
XMLData "Header"
    &lt;DevelFlag Number='0'&gt;2&lt;/DevelFlag&gt;
EndXMLData

Latest revision as of 15:46, 14 May 2020

Developer flags are sometimes used to test new features or to create a special-case calculation needed in one simulation. They can only be entered using XML commands and they must be in the <Header> block:

<DevelFlag Number='0'>2</DevelFlag>

This command sets a development flag by number, which must be from 0 to 4. The value must be an integer. The default for all flags is zero. Any non-zero flags will be listed in the output file after the description. During development or in specific calculations, the code might be modified to alter the calculations depending on these flags. These flags should not, however, be relied upon to mean anything permanent.

To insert a developer flag when using scripted input commands, you can use an XMLData Command targeted to the "Header" section:

XMLData "Header"
    <DevelFlag Number='0'>2</DevelFlag>
EndXMLData