Integer (Choice)¶
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>
Example of widget¶

Figure 54 Widget example of a integer (choice) type condition¶
Example code to read data¶
Calculation condition, Grid generating condition¶
FORTRAN¶
List 62 Code example to load a integer (choise) type condition (for calculation conditions and grid generating conditions) FORTRAN¶
1integer:: ier, flowtype
2
3call cg_iRIC_Read_Integer(fid, "flowtype", flowtype, ier)
C/C++¶
List 63 Code example to load a integer (choise) type condition (for calculation conditions and grid generating conditions) C/C++¶
1int ier, flowtype;
2
3ier = cg_iRIC_Read_Integer(fid, "flowtype", &flowtype)
Python¶
List 64 Code example to load a integer (choise) type condition (for calculation conditions and grid generating conditions) Python¶
1flowtype = cg_iRIC_Read_Integer(fid, "flowtype")
Boundary condition¶
FORTRAN¶
1integer:: ier, flowtype
2
3call cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype", flowtype, ier)
C/C++¶
1int ier, flowtype;
2
3ier = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype", &flowtype)
Python¶
1flowtype = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype")