Integer (Choice)

List 41 Example of a integer (choise) type condition definition
1
2
3
4
5
6
<Item name="flowtype" caption="Flow type">
  <Definition valueType="integer" default="0">
    <Enumeration value="0" caption="Static Flow"/>
    <Enumeration value="1" caption="Dynamic Flow"/>
  </Definition>
</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)
1
2
3
integer:: ier, flowtype

call cg_iric_read_integer_f("flowtype", flowtype, ier)
List 43 Code example to load a integer (choise) type condition (for boundary conditions)
1
2
3
integer:: ier, flowtype

call cg_iric_read_bc_integer_f("inflow", 1, "flowtype", flowtype, ier)