integer¶
Definition¶
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¶
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++¶
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¶
1import numpy
2
3# Allocate memory
4depth = numpy.zeros(shape=(nodecount,))
5# Output data
6cg_iRIC_Write_Sol_Node_Integer(fid, "wet", wet)