Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Issue with chemistry preprocessor

Paul F

Paul Farron
New Member
Hi all,

I am currently trying to add a new tracer to CAM-Chem in CESM2.1.5. My first step to do so is to copy the chem_mech.in file from pp_trop_mam4_vbs elsewhere and modify it to add the new aerosol.

However, when doing so I encounter the following error:

ERROR: Command: '/cluster/pfarron/cesm215/components/cam/bld/configure -s -fc_type gnu -ccsm_seq -dyn fv -hgrid 0.9x1.25 -usr_src /cluster/pfarron/cesm215/cime/scripts/new_tracer_test_215/SourceMods/src.cam -spmd -nosmp -ocn docn -phys cam6 -chem trop_strat_mam4_vbs -age_of_air_trcs -usr_mech_infile /cluster/pfarron/New_tracer/chem_mech_cesm215.in' failed with error 'b'*** Chem preprocessor FAILED.

I am confused as to what are the next steps I should take to solve this issue as the error does not tell much.

Does anyone have an idea of how to solve this ?

Thanks in advance for your help,

Best,
Paul
 
Hi Paul-
Did you reset the setup and rebuild the case? Did this error occur when you rebuild the case?
Could you upload your error file and your edited chem_mech.in? I can take a look and see if I find anything.
Danny
 

Paul F

Paul Farron
New Member
Hi Danny,

Thanks again for the help !

The error occurs when rebuilding the case. I did reset and rebuild the case with:
./case.setup --reset
./case.build --clean-all
./case.build

Even with the base "chem_mech.in" it does not work.

Please find attached my log file.

Best,
Paul
 

Attachments

  • log_file.txt
    14.3 KB · Views: 2
Hi Paul-
Hmm, if even the original chem_mech.in doesn't work, then maybe the error is not related to your implementation of new tracers. Maybe you can try creating a new case directory that works and then change the CAM_CONFIG_OPTS there before rebuilding.
But I suspect if that's the issues... because it did say there is a chem preprocessor error. I do think it's something wrong inside the modified chem_mech.in. Could you send me the original chem_mech.in and the modified chem_mech.in? I can see if I spot anything obvious from there.
It might also be helpful for you to see if there is any useful information in the following fiile...
/cluster/work/climate/pfarron/cesm215/cime/scripts/new_tracer_test_215/Buildconf/camconf/chem_proc/chem_mech.doc
Danny
 

xiaoxiaokuishu

Ru Xu
Member
嗨,保罗-
嗯,如果连原有的 chem_mech.in 文件都无法正常工作,那么错误可能与你新添加的示踪剂无关。你可以尝试创建一个新的案例目录,确保它能够正常工作,然后在重新构建之前修改该目录下的 CAM_CONFIG_OPTS 文件。
但我怀疑如果真是这个问题……因为它确实提示化学预处理器错误。我确实认为问题出在修改后的 chem_mech.in 文件内部。您能把原始的 chem_mech.in 文件和修改后的 chem_mech.in 文件都发给我吗?我看看能不能从中发现什么明显的错误。
查看以下文件或许对您有所帮助……
/cluster/work/climate/pfarron/cesm215/cime/scripts/new_tracer_test_215/Buildconf/camconf/chem_proc/chem_mech.doc
丹尼


Hi, Danny,

I also meet the same problems on archer2 (uk supercomputer), but on derecho, i work well...

...calling cam buildcpp to set build time options
ERROR: Command: '/mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/cesm2.2_mosaic/bld/configure -s -fc_type gnu -dyn fv -hgrid 0.9x1.25 -cpl mct -usr_src /work/n02/n02/ruxu/cesm/CESM/runs/FC-test.20260211-1812/SourceMods/src.cam -spmd -nosmp -ocn docn -phys cam6 -chem trop_strat_mam4_vbs -age_of_air_trcs -mosaic -usr_mech_infile /work/n02/n02/ruxu/cesm/CESM/RuXu/MZ198_TS1-simpleVBS_mosaic_20201210.in' failed with error '*** Chem preprocessor FAILED.
See: /mnt/lustre/a2fs-work2/work/n02/n02/ruxu/cesm/CESM/runs/FC-test.20260211-1812/Buildconf/camconf/chem_proc/chem_mech.doc' from dir '/work/n02/n02/ruxu/cesm/CESM/runs/FC-test.20260211-1812/Buildconf/camconf'

Do you have any idea of that?

Best
Ru
 
Top