bradduthie/resevol

Mine gmatrix timing in simulations

bradduthie opened this issue · 3 comments

For some reason, after mining for a gmatrix, certain mines cause the simulation take much longer to run than others. Some mines cause simulations of 100+ generations to be run in under a second, whereas others take nearly a minute for some reason. It is worth printing off the timestamps for each function in the sim_farming C function to see what the rate limiting step is, then trying to match that with the mine gmatrix details.

This might just be caused by some populations grouping to much higher values than others. Rule this out first.

The error is caused by something going wrong in the land_change function.

The error was caused by an improper initialisation of a max value. The issue is now resolved.