To whom it may concern,
I get in touch in order to get some assistance for my WRF-CHEM compilation. I found this email address in a topic inside the forum WRF model coupled to Chemistry (WRF-Chem):
Running Prep-chem-src problems
and I would really appreciate your help. My final intention is to simulate methane emissions, so I would be interested in knowing the best configuration of prep_chem for that purpose.
The state I'm at is the following:
I thank you in advance for taking time in reading my questions and I hope you find time also to reply.
Best wishes,
Diego
I get in touch in order to get some assistance for my WRF-CHEM compilation. I found this email address in a topic inside the forum WRF model coupled to Chemistry (WRF-Chem):
Running Prep-chem-src problems
and I would really appreciate your help. My final intention is to simulate methane emissions, so I would be interested in knowing the best configuration of prep_chem for that purpose.
The state I'm at is the following:
- I have a Linux Machine:
- Linux 20.04.1-Ubuntu
- x86_64
- CPU: AMD Ryzen 5 2600X Six-Core Processor
- 32GB RAM
- I have downloaded the WRF, WPS source code from its latest version:
- I have compiled the code following the tutorial:
with no errors. (see attached files)
- And for the particular case of WRF-CHEM,
- I chose the option 34 in the configure step (dmpar)
- and option 1 for nesting (basic).
- then, ./compile em_real >& compile.log &
- and ./compile emi_conv >& emcompile.log
- after reading tutorials (https://ruc.noaa.gov/wrf/wrf-chem/Emission_guide.pdf) and forums, I understand that I need to install the prep_chem_sources module. So I follow the steps:
- first, install hdf5 libraries:
- tar xf hdf5-1.10.4.tar.gz
cd hdf5-1.10.4/
./configure —prefix=${DIR}/hdf5-1.10.4 —enable-fortran —with-zlib=${DIR}/grib2 —disable-netcdf
make
make install
- tar xf hdf5-1.10.4.tar.gz
- then, download prep_chem_sources from: ftp://aftp.fsl.noaa.gov/divisions/taq/global_emissions
Use of version 1.5 - modify the proper file: include.mk.gfortran.wrf (attached, with extension .txt)
- and: make OPT=gfortran.wrf CHEM=RADM_WRF_FIM AER=SIMPLE
- I get the following error (complete output in file attached prepchem.log):
"""
841 | 'AGRICULTURE',&| 1Error: Different CHARACTER lengths (11/6) in array constructor at (1)edgar_emissions.f90:894:61:894 | filename=trim(edgar_data_dir)//"/"//trim(PREFIX)//trim(setor(isetor))//trim(suffix)| 1Error: Function ‘setor’ at (1) has no IMPLICIT typeedgar_emissions.f90:916:16:916 | if(trim(setor(isetor)) .eq. 'AGRICULTURE' .and. trim(spc_name(ispc)) .ne. 'NH3') cycle| 1Error: Function ‘setor’ at (1) has no IMPLICIT typeedgar_emissions.f90:923:30:923 | print*,trim(setor(isetor))," ",trim(dsetname),i, " MAX ",maxval(src_dummy,:,i))| 1Error: Function ‘setor’ at (1) has no IMPLICIT typeedgar_emissions.f90:924:30:924 | print*,trim(setor(isetor))," ",trim(dsetname),i, " MIN ",minval(src_dummy,:,i))| 1Error: Function ‘setor’ at (1) has no IMPLICIT typemake: *** [depend_prepsrc.mk:480: edgar_emissions.o] Error 1
"""
I thank you in advance for taking time in reading my questions and I hope you find time also to reply.
Best wishes,
Diego