Hi Siddhant,
In my own experience, when KROME doesn't converge because it hits the maximum number of iterations, increasing the number of iterations doesn't fix the problem, it only postpones the error until later. :P
I would suggest that you take a look at your network and the combinations of density/temperature where KROME is failing to converge.
In particular, if there's a discontinuity in the rate of an important reaction at a particular temperature (e.g. because you are switching between two reaction rate expressions at a given temperature and the two expressions don't match up), this is one of things that can prevent KROME from converging (at least in my experience).
That said, more pragmatically, you can include the `-useIERR` flag when you run ./krome, and then the calling signature for pyKROME becomes:
```ierr = ctypes.c_int(0)
dtl = ctypes.c_double(dt)
pyk.lib.krome(x, ctypes.byref(Tgas), dtl, ctypes.byref(ierr))
```
Testing on `ierr.value != 0` will then allow you to catch if KROME had some problem (a value other than zero means there was a problem) and handle it how you like.
Invoking `-useIERR` also prevents KROME/pyKROME from crashing in the event of non-convergence.
Hope that helps.
Cheers,