Skip to main content
FluidEarth Portal Header version 3

FluidEarth Portal

Go Search
  
FluidEarth Portal > FluidEarth Discussions > 'Index was outside the bounds of the array' error > 'Index was outside the bounds of the array' error  

FluidEarth Discussions: 'Index was outside the bounds of the array' error

Body

Hi, Gordon,
 
I changed the .XML file and it can run successfully. However, it doesn't transfer data from DIVAST_Hydro to DIVAST_Write. You can check the file '\DIVAST_Write\bin\Data\Output.VEL'.
 
So, do I have to change other keys in .XML file? such as "Storage","Packing" .


From: GGlasgow
Posted: 28 May 2010 16:37
Subject: 'Index was outside the bounds of the array' error

hi again,
 
had a quick look through your code and found one thing for you to look at - there's a reference to the old sdk in your two .xml files.
 
if you change this ref to the one for the new sdk (see the attached pdf or 'buildcollapse.xml' for an example of what this should be) and try again, it will tell us something. i changed only this and your composition ran fine on my machine. if you don't get the same result using the same model and code, i have another couple of suggestions we can try but they're a bit more involved. and if that doesn't work, we can ask Adrian Harper to help us figure out what's going on.
 
let me know how you get on,
 
gordon


From: ZZhang
Posted: 28 May 2010 09:39
Subject: 'Index was outside the bounds of the array' error

Hi, Gordon,
 
I have wrapped the DIVAST using the new SDK. However, I still got the same issue 'Index was outside the bounds of the array'.DIVAST_Hydro and DIVAST_Write can run successfully separately.

Attacheds are the Log file and wrapped DIVAST model.
So can you give some advice? Thanks.
Attachments
Content Type: Message
Created at 01/06/2010 15:45  by ZZhang 
Last modified at 01/06/2010 15:45  by ZZhang