<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear WRF-chem users,</div>
<div> </div>
<div>I'm trying to compile "PREP-CHEM-SRC-1.4/bin/build" for</div>
<div>Global emission input data preparation (see http://ruc.noaa.gov/wrf/wrf-chem_tutorial_emissions_v35/exercise_1.html)</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 &hdf5-1.10.0 programs (inside Global emissions directory).</div>
<div>Here is my 'include.mk.gfortran' file for gfortran (Ubuntu) compilation:</div>
<div>-------------------------------------------</div>
<div>
<div># NETCDF libraries</div>
<div>NETCDF=/home/user_pc/WRFV3_Chem-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-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/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>--------------------------------------------------------------------------</div>
<div> </div>
<div>But while compiling I've got a pile of undefined references regarding NETCDF files for VOLC, GOCART & MEGAN emissions:</div>
<div>---------------------------------------------------------------------------</div>
<div>
<div>volc_degassing_emissions.o: In function `__volc_degassing_emissions_MOD_get_emission_per_volcano':<br/>
volc_degassing_emissions.f90:(.text+0x1ca9): undefined reference to `__netcdf_MOD_nf90_open'<br/>
volc_degassing_emissions.f90:(.text+0x1cd7): undefined reference to `__netcdf_MOD_nf90_inq_varid'<br/>
volc_degassing_emissions.f90:(.text+0x1d13): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbyteint'<br/>
volc_degassing_emissions.f90:(.text+0x1e90): undefined reference to `__netcdf_MOD_nf90_inq_varid'<br/>
volc_degassing_emissions.f90:(.text+0x1ecc): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbytereal'<br/>
volc_degassing_emissions.f90:(.text+0x1efa): undefined reference to `__netcdf_MOD_nf90_inq_varid'<br/>
volc_degassing_emissions.f90:(.text+0x1f36): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbytereal'<br/>
volc_degassing_emissions.f90:(.text+0x1f64): undefined reference to `__netcdf_MOD_nf90_inq_varid'<br/>
volc_degassing_emissions.f90:(.text+0x1fa0): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbytereal'<br/>
volc_degassing_emissions.f90:(.text+0x1fce): undefined reference to `__netcdf_MOD_nf90_inq_varid'<br/>
volc_degassing_emissions.f90:(.text+0x200a): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbytereal'<br/>
volc_degassing_emissions.f90:(.text+0x2038): undefined reference to `__netcdf_MOD_nf90_inq_varid'<br/>
volc_degassing_emissions.f90:(.text+0x2074): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbytereal'<br/>
volc_degassing_emissions.o: In function `__volc_degassing_emissions_MOD_get_dimension_per_file_volcano':</div>
<div>--------------------------------------------------------------------------</div>
</div>
<div>I didn't find any NETCDF files with" _MOD_" 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 'liblib, libsrc, libsrc4' ... 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></body></html>