Closed emmapetersen closed 3 years ago
Thanks for writing @emmapetersen. Just to be sure, did you check out the GC_updates branch of the KPP repository? If you are on the master branch then you won't have the GEOS-Chem specific files.
Yes, I checked that I was in the GC_updates branch, when I was in the KPP directory that I downloaded from the wiki-guide.
Hi @emmapetersen. It looks like the KPP executable wasn't being picked up.
./build_mechanism.sh: line 23: kpp: command not found
Try adding the path to your kpp executable to your Unix PATH variable, e.g.
export PATH=$PATH:/path_to_kpp/KPP/kpp-2.2.3/bin/
where path_to_kpp
is the long pathname of the folder in which KPP is found.
Thanks for your answer. I have added the following to my .bashrc file: export PATH=$PATH:/home/ubuntu/KPP/kpp-2.2.3_01/bin/ export KPP_HOME=/home/ubuntu/KPP/kpp-2.2.3_01
I found the pathname to my KPP folder by typing "pwd" in the KPP folder. I don't know if this is what you mean by "long pathname"?
Hi @emmapetersen. By long pathname I mean absolute path (pwd -P).
Okay, thanks. I just tried that, and it gives the same path as above.
Is it working now @emmapetersen?
No, unfortunately not.
@emmapetersen, what is your error now?
Also in the kpp_2.2.3._01/doc folder there is a PDF file kpp_UserManual.pdf. That might have some more suggestions.
My error is the same as before. Thank you, I will have a look.
@yantosca, I found my problem. After adding the path to my .bashrc file, I had to close my terminal window and start a new one. Thank you for your help!
Thanks @emmapetersen, glad to know it worked! I'll close out this issue now.
Report a GEOS-Chem bug or technical issue
Describe the bug:
Hi I am quite new to the GEOS-Chem model, and I have been trying to implement a new mechanism following the guide on the wiki: http://wiki.seas.harvard.edu/geos-chem/index.php/FlexChem#Adding_chemical_mechanisms_in_FlexChem I can't seem to rebuild the mechanism with KPP.
Steps to reproduce: the bug:
I used GEOS-Chem on a server by AWS using the AMI with ID ami-04751feef8546fdfe. I set up the run directory. (I installed flex and bison.) And then I downloaded the KPP directory into my home directory, and build the system. I added the mechanism to the Custom.eqn and the FJX_j2j.dat file (it's a photolysis reaction), went to the KPP directory (inside the run directory) and executed the ./build_mechanism.sh file. I then got an error (see below).
Error messages
Required information:
Your GEOS-Chem version and runtime environment:
All suggestions for what I could try are welcome! Thanks. Best, Emma