add new task       

Task ID:  1905  APSIM soilN error in denitrification output    
Created by henrike on 2014-06-24 11:28 AM, 1698 days ago
Project:  Module Code
Category:  Bug
Priority:  [no priority]
Assigned to:  [not assigned]  
Status:  Submitted
Apsim Version:
Your Name:
Contact Details:

show inline images      show change history

 comment 35382 posted by henrike on 2014-06-24 11:28 AM, 1698 days ago 
line 1640ff in soilN.f90:

  elseif (variable_name .eq. 'dnit') then
   !                           ----
      num_layers = count_of_real_vals (g%dlayer, max_layer)
      temp = g%dlt_NO3_dnit(1:num_layers)+g%dlt_NH4_dnit(1:num_layers)
      call respond2get_real_array (variable_name,'(kg/ha)', temp, num_layers)

dnit is denitrification taking place each day, which is calculated here as the sum of dlt_NO3dnit and dlt_NH4_dnit. The latter, however, stems from a different process, i.e. nitrification; only the naming causes confusion here. Correct would be:

      temp = g%dlt_NO3_dnit(1:num_layers)