[Wrf-users] problem in compilation of global emission data preparation program

Seyed Omid Nabavi omid.nabavy at gmail.com
Tue Jan 10 09:53:33 MST 2017


Dear Mikhail,
As far as I know it is a bug in WRF-chem 3.7, use older version.
At least, it is what I did and it worked.
Best.

On Tue, Jan 10, 2017 at 5:52 PM, Seyed Omid Nabavi <omid.nabavy at gmail.com>
wrote:

> Dear Mikhail,
> As far as I know it is a bug in WRF-chem 3.7, use older version.
> At least, it is what I need and it worked.
> Best.
>
> On Tue, Jan 10, 2017 at 5:48 PM, Mikhail Titov <titovm at mail.com> wrote:
>
>> Dear WRF-chem users,
>>
>> I'm trying to compile "PREP-CHEM-SRC-1.4/bin/build" for
>> Global emission input data preparation (see
>> http://ruc.noaa.gov/wrf/wrf-chem_tutorial_emissions_v35/exercise_1.html)
>> I followed all steps described in Global emissions exercise 1 and in
>> README from /PREP-CHEM-SRC-1.4/ directory.
>> I specially installed separately from WRF netcdf-4.4.1.1, zlib-1.2.10
>> &hdf5-1.10.0 programs (inside Global emissions directory).
>> Here is my 'include.mk.gfortran' file for gfortran (Ubuntu) compilation:
>> -------------------------------------------
>> # NETCDF libraries
>> NETCDF=/home/user_pc/WRFV3_Chem-3.7/netcdf-4.4.1.1
>> NETCDF_INC=-I$(NETCDF)/include
>> NETCDF_LIBS=-L$(NETCDF)/lib -lnetcdf
>> # HDF libraries
>> HDF5=/home/user_pc/WRFV3_Chem-3.7/hdf5-1.10.0
>> HDF5_INC=-I$(HDF5)/include
>> 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
>>
>> # Machine-dependent options.
>> #-----------------  LINUX Portland Group pgf77/gcc ---------------
>> CMACH=PC_LINUX1
>> F_COMP=/usr/bin/gfortran
>> C_COMP=/usr/bin/gcc
>> LOADER=/usr/bin/gfortran
>> C_LOADER=/usr/bin/gcc
>> LIBS=
>> MOD_EXT=mod
>> F_OPTS=  -Xpreprocessor -D$(CHEM) -O2 -frecord-marker=4
>> C_OPTS= -O2 #-DUNDERSCORE -DLITTLE
>> LOADER_OPTS= -O2
>> ------------------------------------------------------------
>> --------------
>>
>> But while compiling I've got a pile of undefined references regarding
>> NETCDF files for VOLC, GOCART & MEGAN emissions:
>> ------------------------------------------------------------
>> ---------------
>> volc_degassing_emissions.o: In function `__volc_degassing_emissions_MO
>> D_get_emission_per_volcano':
>> volc_degassing_emissions.f90:(.text+0x1ca9): undefined reference to
>> `__netcdf_MOD_nf90_open'
>> volc_degassing_emissions.f90:(.text+0x1cd7): undefined reference to
>> `__netcdf_MOD_nf90_inq_varid'
>> volc_degassing_emissions.f90:(.text+0x1d13): undefined reference to
>> `__netcdf_MOD_nf90_get_var_1d_fourbyteint'
>> volc_degassing_emissions.f90:(.text+0x1e90): undefined reference to
>> `__netcdf_MOD_nf90_inq_varid'
>> volc_degassing_emissions.f90:(.text+0x1ecc): undefined reference to
>> `__netcdf_MOD_nf90_get_var_1d_fourbytereal'
>> volc_degassing_emissions.f90:(.text+0x1efa): undefined reference to
>> `__netcdf_MOD_nf90_inq_varid'
>> volc_degassing_emissions.f90:(.text+0x1f36): undefined reference to
>> `__netcdf_MOD_nf90_get_var_1d_fourbytereal'
>> volc_degassing_emissions.f90:(.text+0x1f64): undefined reference to
>> `__netcdf_MOD_nf90_inq_varid'
>> volc_degassing_emissions.f90:(.text+0x1fa0): undefined reference to
>> `__netcdf_MOD_nf90_get_var_1d_fourbytereal'
>> volc_degassing_emissions.f90:(.text+0x1fce): undefined reference to
>> `__netcdf_MOD_nf90_inq_varid'
>> volc_degassing_emissions.f90:(.text+0x200a): undefined reference to
>> `__netcdf_MOD_nf90_get_var_1d_fourbytereal'
>> volc_degassing_emissions.f90:(.text+0x2038): undefined reference to
>> `__netcdf_MOD_nf90_inq_varid'
>> volc_degassing_emissions.f90:(.text+0x2074): undefined reference to
>> `__netcdf_MOD_nf90_get_var_1d_fourbytereal'
>> volc_degassing_emissions.o: In function `__volc_degassing_emissions_MO
>> D_get_dimension_per_file_volcano':
>> ------------------------------------------------------------
>> --------------
>> I didn't find any NETCDF files with" _MOD_" part in the name. (neither in
>> include no in lib).
>> Maybe I need another version of NETCDF but the one I installed is the
>> latest release?
>> Also there is no netcdf/lib in my netcdf directory but 'liblib, libsrc,
>> libsrc4' ... sub-directories.
>>
>> Any help is highly appreciable.
>>
>> Best regards,
>> Dr Michael Titov
>>
>>
>>
>> _______________________________________________
>> Wrf-users mailing list
>> Wrf-users at ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>>
>>
>
>
> --
>
> ===========================================
>
> Seyed Omid Nabavi;
>
> PhD student, University of Vienna,
>
> Faculty of Earth Sciences, Geography and Astronomy
>
> UZA II Althanstrasse 14 A-1010 Vienna
>
> Uni. Email: seyed.omid.nabavi at unet.univie.ac.at
>
> ===========================================
>



-- 

===========================================

Seyed Omid Nabavi;

PhD student, University of Vienna,

Faculty of Earth Sciences, Geography and Astronomy

UZA II Althanstrasse 14 A-1010 Vienna

Uni. Email: seyed.omid.nabavi at unet.univie.ac.at

===========================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20170110/38911e3b/attachment.html 


More information about the Wrf-users mailing list