kmcos / kmcos

Kinetic Monte Carlo of Systems (KMCOS): lattice based kinetic Monte Carlo with a python front-end and Fortran back-end.
https://github.com/kmcos/kmcos
GNU General Public License v3.0
16 stars 17 forks source link

Improve fortran assert function for debubugging #243

Open AdityaSavara opened 1 year ago

AdityaSavara commented 1 year ago

Currently, kmc_model.compile_options = '-d' turns on the assert statements, but they do not work while running a model in a typical installation. They may need some kind of special fortran environment (I do not know which one is needed).

I think the assert statement should be made into a 'regular' fortran function rather than in a ppc file so that it can work in the normally used environment.