mhoffman / kmos

kMC on steroids: A vigorous attempt to make lattice kinetic Monte Carlo modelling easier

Home Page:http://mhoffman.github.com/kmos/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Viewer: plotting stops after a while

MaximeVdB opened this issue · comments

Hey,

When running the model from the tutorial in the documentation (CO adsorption/desorption), the plotting always stops (the lines on the graph disappear) after around 1.3e+07 steps (the simulation keeps running though). The time axis also suddenly changes to the interval <-0.0724...-0.0704> (yes, negative).

This might have something to do with the following warnings which are generated when starting kmos view:

/usr/lib/pymodules/python2.6/matplotlib/backends/backend_gtk.py:621: DeprecationWarning: Use the new widget gtk.Tooltip
self.tooltips = gtk.Tooltips()

/usr/lib/pymodules/python2.6/matplotlib/axes.py:4014: UserWarning: No labeled objects found. Use label='...' kwarg on individual plots. warnings.warn("No labeled objects found. "

Ok, the tooltips warning again is hard to remove for me. The second warning sounds slightly more worrying though.
Just wondering whether it has to do with the frequency in which updates a generated. This is mainly controlled
through the number of steps between each image. This can be changed in
kmos.run.KMC_Model.run() and in there it is currently line 209, where it says ::

for _ in xrange(50000):

Does changing this, i.e. increasing/decreasing by a factor of 10 change anything?

Best,
Max.

Hej,

Decreasing or increasing that by a factor 10: same thing (stops plotting after ~1.32e+07 steps).
I also noticed the following: the 'real time' next to the number of steps changes to "inf s". So maybe it's something with the timer itself?

These and some other issues should now be fixed due to the fact, that the kind_values.f90 is now evaluated dynamically at the compile stage. Let me know if there are issues about compiling. Now in principle the kind values are just as platform indepedent as your compiler is.

Best,
Max.