add new task       

Task ID:  371  "NAN problem with Eo in met file"    
 
Created by admin on 2007-08-29 1:53 AM, 3833 days ago
Project:  Module Code
Category:  Bug
Priority:  low
Assigned to:  hol353  
Status:  closed
Apsim Version:
Your Name:
Contact Details:
 
 

show inline images      show change history

 comment 30969 posted by hol353 on 2009-09-18 3:54 PM, 3081 days ago 
I had a go at reproducing this one by modifying the surface sample which also reads in eo from the met file. Whether I used 4 or 4.0 didn't seem to matter. It always ran correctly.
 comment 371 posted by admin on 2007-08-29 1:53 AM, 3833 days ago 
"NAN problem with Eo in met fileFrom Kirsten:
Issue with NAN seems to be to do with type conversions between integers and floats in met file.

-------- Original Message --------
Subject:  RE: Fallow management simulations
Date:  Mon, 27 Aug 2007 12:39:18 +1000
From:  Verburg, Kirsten (CLW, Black Mountain) <Kirsten.Verburg@csiro.au>
To:  Huth, Neil (CSE, Toowoomba) <Neil.Huth@csiro.au>
CC:  Gaydon, Don (CSE, Gungahlin) <Don.Gaydon@csiro.au>
References:  <05872A8F41C74E478B332039E4150D51017DE59C@exactn1-cbr.nexus.csiro.au> <46CB7D29.10900@csiro.au>

Hi Neil and Don,

Update:

NAN problem. Managed to resolve that, but no closer to an explanation why it happened. The difference between working and crashing run was use of 4 or 4.0 (i.e. specifying the 0 decimal point) for the eo provided in the met file. If I used 4.0 instead of 4 (and 1.0 instead of 1, 2.0 instead of 2, etc), then the run went without problems.

PS Neil, do you know how one can get a value of –NAN for urea in soiln2. If I run run 31 (successful run from attached powerpoint presentation) with a different met file in which I use the SILO eo, I get this error in the run for south lysimeter. In fact this happens before the two met files differ in 2004, so not sure why this is happening. The next day it causes the same warning error in apswim and then a crash because it failed to solve the Freundlich equation.


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                     APSIM Warning Error
                     -------------------
   Value of variable is out of bounds.
   Variable: urea
   Value:            -NAN
   Bounds:        0.0000000 to    1000.0000000
   Component name: soiln2
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!