-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to correctly add tags to custom.equ in KPP and run GEOS-Chem with custom mechanism? #2550
Comments
Thanks for writing @LittleFeify. Would you be able to post the log file that shows the specific error that you are getting? We do have a guide on adding prod/loss families to a mechanism on ReadTheDocs: |
Also the |
Hi, The tags like the below in custom.eqn HNO3 + hv = PNO2_1538 + LHNO3_1538 + OH + NO2 : PHOTOL(16);
HNO2 + hv = PNO_1539 + LHNO2_1539 + OH + NO : PHOTOL(15);
HNO4 + hv = OH + NO3 : PHOTOL(17);
HNO4 + hv = PNO2_1541 + HO2 + NO2 : PHOTOL(18);
NO3 + hv = PNO2_1542 + NO2 + O : PHOTOL(12); {2014/02/03; Eastham2014; SDE}
NO3 + hv = PNO_1543 + NO + O2 : ...... PNO2_521 : NO2;
LNO_522 : NO;
LNO_523 : NO;
PNO2_523 : NO2; ..... The error occurred while running ./build_mechanism.sh.
KPP is parsing the equation file.Warning :gckpp.kpp:227: Unnecessary ';'
Error : Too many families. Looking forward to your reply. Thanks! |
Thanks for writing @LittleFeify. KPP 3.1.1 allows for 300 family species. To increase the limit, go to Then recompile KPP: $ cd KPP/src
$ make distclean
$ make -j Then rebuild the GEOS-Chem fullchem mechanism as usual. That should fix it. |
Thanks, Bob. I fixed the last issue by modifying the gdata.h file but encountered a new error while running GEOS-Chem. The restart file needs all variables that I added in custom.equ and the families in custom.kpp. So I need to add hundreds of variables in my case, is that right? I created those dummy variables in the restart file, and an error occurred.I uploaded my GC.log. GEOS-Chem ERROR: KPP failed to converge after 2 iterations! GEOS-Chem ERROR: Error encountered in "Do_FullChem"! GEOS-CHEM ERROR: Error encountered in "Do_Chemistry"! I am not sure whether other people have met a similar problem. Looking forward to your reply. Many thanks! |
Your name
feify
Your affiliation
SUST
Please provide a clear and concise description of your question or discussion topic.
Hello, I am using GEOS-Chem-14.4.3 to track the budget for species such as NO, NO2, etc. I made changes to the custom.equ file and add the PNO, LNO2.. in custom.kpp as shown in the image below. But there are some errors when reading new files. So I'm wondering what the custom.equ file format looks like? Can I add a family including all species I want to track in custom.kpp, then I need to add the PNO to custom.equ again? Is there some more detailed manual or case on how to add tags, please. Thanks a lot.
The text was updated successfully, but these errors were encountered: