A12_2: Output of arrays |
Top Previous Next |
Solution: Task 12.2:
Add the following output variable to the output section with id=diurnalout:
<out id="GlobalRadiationSum" datatype="DOUBLE" rule="var sum=0;for (var radiationpart : ${diurnal.Radiation}){sum = sum + radiationpart}; return sum;" description="sum of array" />