integer

Definition

List 119 Example of a integer type calculation result
1<Output name="wet" caption="Wet">
2  <Definition valueType="integer" position="node">
3    <Enumeration value="0" caption="Dry" />
4    <Enumeration value="1" caption="Wet" />
5  </Definition>
6</Output>

Example code to output data

FORTRAN

List 120 Code example to output a integer type calculation result defined at nodes FORTRAN
1integer, dimension(:), allocatable:: wet
2
3! Allocate memory
4allocate(wet(nodecount))
5! Write data to memory
6wet = 0
7! Output data
8call cg_iRIC_Write_Sol_Node_Integer(fid, "wet", wet, ier)

C/C++

List 121 Code example to output a integer type calculation result defined at nodes C++
1std::vector<int> wet;
2
3! Allocate memory
4wet.assign(nodecount, 0);
5! Output data
6ier = cg_iRIC_Write_Sol_Node_Integer(fid, "wet", wet.data())

Python

List 122 Code example to output a integer type calculation result defined at nodes Python
1import numpy
2
3# Allocate memory
4depth = numpy.zeros(shape=(nodecount,))
5# Output data
6cg_iRIC_Write_Sol_Node_Integer(fid, "wet", wet)