| Message/Author |
|
|
|
|
question emailed from Teresa I have to manage the time for my vegetation fonction, I would want to know which is the variable were time is stored In case of catchment mode this is cycle, but I have checked that for reach mode is not Cycle, and I'm not able to find were it is stored I need that because each year I have to actualise the vegetation so, only I have to look up the actutal time continously Do you think I need to start a new thread in order to have a function that is always checking the time and when a year is finished it calls my function?? Or is enough if I can call my fonction from the fonction were you change the time, so when time is one year I call my fonction
|
|
|
|
|
OK, Cycle is the variable that contains the model time that has elapsed. So if you want to call a function say every year - then set up an if statement in erodedepo() that waits until a years worth of cycle has elapsed, then will call your function, then wait for another year. An example in the code is how I call creep - which is done every month or 10 days (I've forgotten, but its fairly explanatory in teh code). No need for a new thread - the model will just wait until it has done the function called then go back to the loop. Tom |
|
|
| Back to top |
|