Open GoogleCodeExporter opened 9 years ago
Bob,
I found a bug with map switching on restarts. This bug is similar to one we had
before where it is messing up when the current year does not match the first
year of the simulation. So you need to look at how map switching is being
treated in years beyond the first. I can't pin it down further than that since
I am not familiar with the log files (map, maps, mapManager.txt).
Here is my setup:
2 year simulation
10 day dispersal (this could be shorter)
3 food maps:
First food map is for the first day only, 0 chance of catching any prey
Second food map is for the second day only, 100% chance of catching prey that
is not energetically favorable (i.e. disperser still loses energy)
Third food map comes in 48 hours after the start of the simulation and lasts
the rest of the season, 100% chance of catching prey that is energetically
favorable (i.e. disperser gains energy)
So look at the 2013Female000000.txt. On the first day of dispersal you can see
the 0 for ProbFoodCap. Starting at 3/16/2013, 6:00 PM, you can see the
ProbFoodCap go up to 1, but it still loses energy slowly. At 3/17/2013, 6:00
PM, you can see the animal start to gain energy as the third map kicks in. That
map lasts the rest of the season. Note that I restarted at several points and
everything worked fine.
Now look at the 2014Female000046.txt. This is the same run as before but now in
the second year. It starts off as normal, 0 for ProbFoodCap. I restarted the
run at 3/15/2014, 9:00 PM. You can see the ProbFoodCap jump up to 1 (summing
the partial timesteps), but only for two timesteps -- at 3/15, 11:00 PM it goes
back down to 0. So it loaded the wrong map for two timesteps.
I also restarted the run at 3/16/2014, 9:00 PM. That should be the second food
map where they are still losing energy. But you can see the jump in energy from
9 to 10 PM, so it loaded the third map instead of the second. But once again
only for a couple timesteps.
Then look at 3/17/2014, 8:00 PM. Here the ProbFoodCap goes down to 0 for the
duration of the run. When it should be the third food map where it has a prob
of 1 and is gaining energy.
Original comment by ran...@mwwb.net
on 6 Apr 2014 at 3:32
Original issue reported on code.google.com by
ran...@mwwb.net
on 6 Apr 2014 at 3:31