<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><div class="gmail_default" style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.8px"><font face="garamond, serif" size="4">Dear Mikhail,</font><br></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.8px"><font face="garamond, serif" size="4">As far as I know it is a bug in WRF-chem 3.7, use older version.</font></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.8px"><font face="garamond, serif" size="4">At least, it is what I did and it worked.</font></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.8px"><font face="garamond, serif" size="4">Best.</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 10, 2017 at 5:52 PM, Seyed Omid Nabavi <span dir="ltr">&lt;<a href="mailto:omid.nabavy@gmail.com" target="_blank">omid.nabavy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><font face="garamond, serif" size="4">Dear Mikhail,</font><br></div><div class="gmail_default"><font face="garamond, serif" size="4">As far as I know it is a bug in WRF-chem 3.7, use older version.</font></div><div class="gmail_default"><font face="garamond, serif" size="4">At least, it is what I need and it worked.</font></div><div class="gmail_default"><font face="garamond, serif" size="4">Best.</font></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Jan 10, 2017 at 5:48 PM, Mikhail Titov <span dir="ltr">&lt;<a href="mailto:titovm@mail.com" target="_blank">titovm@mail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div><div style="font-family:Verdana;font-size:12.0px"><div>Dear WRF-chem users,</div>

<div> </div>

<div>I&#39;m trying to compile &quot;PREP-CHEM-SRC-1.4/bin/build&quot; for</div>

<div>Global emission input data preparation (see <a href="http://ruc.noaa.gov/wrf/wrf-chem_tutorial_emissions_v35/exercise_1.html" target="_blank">http://ruc.noaa.gov/wrf/wrf-ch<wbr>em_tutorial_emissions_v35/exer<wbr>cise_1.html</a>)</div>

<div>I followed all steps described in Global emissions exercise 1 and in README from /PREP-CHEM-SRC-1.4/ directory.</div>

<div>I specially installed separately from WRF netcdf-4.4.1.1, zlib-1.2.10 &amp;hdf5-1.10.0 programs (inside Global emissions directory).</div>

<div>Here is my &#39;include.mk.gfortran&#39; file for gfortran (Ubuntu) compilation:</div>

<div>------------------------------<wbr>-------------</div>

<div>
<div># NETCDF libraries</div>

<div>NETCDF=/home/user_pc/WRFV3_Che<wbr>m-3.7/netcdf-4.4.1.1<br>
NETCDF_INC=-I$(NETCDF)/include<br>
NETCDF_LIBS=-L$(NETCDF)/lib -lnetcdf</div>

<div># HDF libraries</div>

<div>HDF5=/home/user_pc/WRFV3_Chem-<wbr>3.7/hdf5-1.10.0<br>
HDF5_INC=-I$(HDF5)/include<br>
HDF5_LIB=-L$(HDF5)/lib -lhdf5hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -L/home/user_pc/WRFV3_Chem-3.7<wbr>/zlib-1.2.10/lib -lz<br>
    </div>

<div># Machine-dependent options.</div>

<div>#-----------------  LINUX Portland Group pgf77/gcc ---------------<br>
CMACH=PC_LINUX1<br>
F_COMP=/usr/bin/gfortran<br>
C_COMP=/usr/bin/gcc<br>
LOADER=/usr/bin/gfortran<br>
C_LOADER=/usr/bin/gcc<br>
LIBS=<br>
MOD_EXT=mod</div>

<div>F_OPTS=  -Xpreprocessor -D$(CHEM) -O2 -frecord-marker=4<br>
C_OPTS= -O2 #-DUNDERSCORE -DLITTLE<br>
LOADER_OPTS= -O2</div>

<div>------------------------------<wbr>------------------------------<wbr>--------------</div>

<div> </div>

<div>But while compiling I&#39;ve got a pile of undefined references regarding NETCDF files for VOLC, GOCART &amp; MEGAN emissions:</div>

<div>------------------------------<wbr>------------------------------<wbr>---------------</div>

<div>
<div>volc_degassing_emissions.o: In function `__volc_degassing_emissions_MO<wbr>D_get_emission_per_volcano&#39;:<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1ca9): undefined reference to `__netcdf_MOD_nf90_open&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1cd7): undefined reference to `__netcdf_MOD_nf90_inq_varid&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1d13): undefined reference to `__netcdf_MOD_nf90_get_var_1d_<wbr>fourbyteint&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1e90): undefined reference to `__netcdf_MOD_nf90_inq_varid&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1ecc): undefined reference to `__netcdf_MOD_nf90_get_var_1d_<wbr>fourbytereal&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1efa): undefined reference to `__netcdf_MOD_nf90_inq_varid&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1f36): undefined reference to `__netcdf_MOD_nf90_get_var_1d_<wbr>fourbytereal&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1f64): undefined reference to `__netcdf_MOD_nf90_inq_varid&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1fa0): undefined reference to `__netcdf_MOD_nf90_get_var_1d_<wbr>fourbytereal&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x1fce): undefined reference to `__netcdf_MOD_nf90_inq_varid&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x200a): undefined reference to `__netcdf_MOD_nf90_get_var_1d_<wbr>fourbytereal&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x2038): undefined reference to `__netcdf_MOD_nf90_inq_varid&#39;<br>
volc_degassing_emissions.f90:(<wbr>.text+0x2074): undefined reference to `__netcdf_MOD_nf90_get_var_1d_<wbr>fourbytereal&#39;<br>
volc_degassing_emissions.o: In function `__volc_degassing_emissions_MO<wbr>D_get_dimension_per_file_volca<wbr>no&#39;:</div>

<div>------------------------------<wbr>------------------------------<wbr>--------------</div>
</div>

<div>I didn&#39;t find any NETCDF files with&quot; _MOD_&quot; part in the name. (neither in include no in lib).</div>

<div>Maybe I need another version of NETCDF but the one I installed is the latest release?</div>

<div>Also there is no netcdf/lib in my netcdf directory but &#39;liblib, libsrc, libsrc4&#39; ... sub-directories.</div>

<div> </div>

<div>Any help is highly appreciable.</div>

<div> </div>

<div>Best regards,</div>

<div>Dr Michael Titov</div>

<div> </div>

<div> </div>
</div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu" target="_blank">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/wrf-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-7772988972269865981gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#7f7f7f">==============================<wbr>=============</span></p>

<p><font color="#7f7f7f" face="garamond, serif">Seyed Omid Nabavi;</font></p><p><font face="garamond, serif"><span style="color:rgb(127,127,127);font-size:12.8px">PhD student, University of Vienna,</span><br></font></p><p><span style="color:rgb(127,127,127);font-size:12.8px"><font face="garamond, serif">Faculty of Earth Sciences, Geography and Astronomy</font></span></p><p><font face="garamond, serif"><span style="color:rgb(127,127,127);font-size:12.8px">UZA II Althanstrasse 14 A-1010 Vienna</span><br></font></p><p><span style="color:rgb(127,127,127);font-size:12.8px"><font face="garamond, serif">Uni. Email: <a href="mailto:seyed.omid.nabavi@unet.univie.ac.at" target="_blank">seyed.omid.nabavi@unet.univie.<wbr>ac.at</a></font></span><br></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#7f7f7f">==============================<wbr>=============</span></p></div></div></div></div></div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#7f7f7f">===========================================</span></p>

<p><font color="#7f7f7f" face="garamond, serif">Seyed Omid Nabavi;</font></p><p><font face="garamond, serif"><span style="color:rgb(127,127,127);font-size:12.8px">PhD student, University of Vienna,</span><br></font></p><p><span style="color:rgb(127,127,127);font-size:12.8px"><font face="garamond, serif">Faculty of Earth Sciences, Geography and Astronomy</font></span></p><p><font face="garamond, serif"><span style="color:rgb(127,127,127);font-size:12.8px">UZA II Althanstrasse 14 A-1010 Vienna</span><br></font></p><p><span style="color:rgb(127,127,127);font-size:12.8px"><font face="garamond, serif">Uni. Email: <a href="mailto:seyed.omid.nabavi@unet.univie.ac.at" target="_blank">seyed.omid.nabavi@unet.univie.ac.at</a></font></span><br></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:#7f7f7f">===========================================</span></p></div></div></div></div></div></div></div>
</div>