Hi Enrico,
Thanks for the answer and the nice tip at the end, I think I found the source of the error (due to technical problems, I cannot check at this time, I will confirm in this thread once I can); I was using an [i]#ifdef StandardCategoryModels[/i] at the beginning of my class definition, while I'm only calculating state variables for an own custom version of ASM2d, and not for other models. I've changed this to the relevant [i]#ifdef ASM2dChemTemp[/I]. If this wasn't the source of the error, it would have probably popped up sooner or later.
Thanks for the help!