Integer¶
Definition¶
1<Item name="numsteps" caption="The Number of steps to calculate">
2 <Definition valueType="integer" default="20" min="1" max="200" />
3</Item>
Example of widget¶
Figure 53 Widget example of a integer type condition¶
Example code to read data¶
Calculation condition, Grid generating condition¶
FORTRAN¶
List 55 Code example to load a integer type condition (for calculation conditions and grid generating conditions) FORTRAN¶
1integer:: ier, numsteps
2
3call cg_iRIC_Read_Integer(fid, "numsteps", numsteps, ier)
C/C++¶
List 56 Code example to load a integer type condition (for calculation conditions and grid generating conditions) C/C++¶
1int ier, numsteps;
2
3ier = cg_iRIC_Read_Integer(fid, "numsteps", &numsteps)
Python¶
List 57 Code example to load a integer type condition (for calculation conditions and grid generating conditions) Python¶
1numsteps = cg_iRIC_Read_Integer(fid, "numsteps")
Boundary condition¶
FORTRAN¶
1integer:: ier, numsteps
2
3call cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "numsteps", numsteps, ier)
C/C++¶
1int ier, numstep;
2
3ier = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "numsteps", &numsteps)
Python¶
1numsteps = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "numsteps")