add new task       

Task ID:  4139  Climate change component script faulty    
 
Created by her123 on 2016-03-23 3:58 PM, 700 days ago
Project:  Module Code
Category:  Bug
Priority:  [no priority]
Assigned to:  hol353  
Status:  closed
Apsim Version:7.8
Your Name:Neville
Contact Details:
 
 

show inline images      show change history

 comment 42571 posted by hol353 on 2017-04-21 8:46 AM, 306 days ago 

Fixed in R4034

 comment 40323 posted by her123 on 2016-03-23 3:58 PM, 700 days ago 
The Climate change Yearly increase component in the Toolbox has a faulty script.

if (year > [startyear]) then
  changemultiplier = year - [startyear]
  maxt = maxt + ([MaxtChange] * changemultiplier)
  mint = mint + ([MintChange]  * changemultiplier)
  tav = tavoriginal + ([MaxtChange] + [MintChange]) / 2 * changemultiplier
  rain = rain + rain * (([RainChange] / 100)  * changemultiplier)
  radn = radn + radn * (([RadnChange] / 100)  * changemultiplier)
  co2 = ([CO2]  * changemultiplier)
endif

The CO2 levels sky rocket because it is calculated wrongly.