Integer (Choice)

List 41 Example of a integer (choise) type condition definition
1<Item name="flowtype" caption="Flow type">
2  <Definition valueType="integer" default="0">
3    <Enumeration value="0" caption="Static Flow"/>
4    <Enumeration value="1" caption="Dynamic Flow"/>
5  </Definition>
6</Item>
../_images/widget_example_combobox.png

Figure 54 Widget example of a integer (choice) type condition

List 42 Code example to load a integer (choise) type condition (for calculation conditions and grid generating conditions)
1integer:: ier, flowtype
2
3call cg_iric_read_integer(fid, "flowtype", flowtype, ier)
List 43 Code example to load a integer (choise) type condition (for boundary conditions)
1integer:: ier, flowtype
2
3call cg_iric_read_bc_integer(fid, "inflow", 1, "flowtype", flowtype, ier)