I have been trying to install WRFDA with rttov113 on ubuntu 18.10 for over one week with no success. WRFPLUS compiles without any problem. I have downloaded 7 coefficient files and placed them in the folder "rtcoef_rttov11" in the rttov113 source directory.
When I replace LIB_EXTERNAL with the entry below I get 43 executables, without da_wrfvar.exe
The errors in compile.out are a lot of "undefined reference to ..."
ranlib libwrfvar.a
0.24user 0.63system 0:01.72elapsed 50%CPU (0avgtext+0avgdata 31180maxresident)k
0inputs+16outputs (0major+5769minor)pagefaults 0swaps
rm -f da_wrfvar.exe
module_quilt_outbuf_ops.o: In function `__module_quilt_outbuf_ops_MOD_write_outbuf':
module_quilt_outbuf_ops.f90.text+0x328e): undefined reference to `ext_gr2_write_field_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_get_var_info':
module_io.f90.text+0x4f5): undefined reference to `ext_gr2_get_var_info_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_get_next_var':
module_io.f90.text+0x6e7): undefined reference to `ext_gr2_get_next_var_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_set_time':
module_io.f90.text+0x91a): undefined reference to `ext_gr2_set_time_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_get_previous_time':
module_io.f90.text+0xba7): undefined reference to `ext_gr2_get_previous_time_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_get_next_time':
module_io.f90.text+0xe33): undefined reference to `ext_gr2_get_next_time_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_ioclose':
module_io.f90.text+0x10d4): undefined reference to `ext_gr2_ioclose_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_iosync':
module_io.f90.text+0x12f8): undefined reference to `ext_gr2_iosync_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_inquire_filename':
module_io.f90.text+0x155a): undefined reference to `ext_gr2_inquire_filename_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_inquire_opened':
module_io.f90.text+0x17d7): undefined reference to `ext_gr2_inquire_opened_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_open_for_read':
module_io.f90.text+0x1d1b): undefined reference to `ext_gr2_open_for_read_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_open_for_read_commit':
module_io.f90.text+0x2008): undefined reference to `ext_gr2_open_for_read_commit_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_open_for_read_begin':
module_io.f90.text+0x249c): undefined reference to `ext_gr2_open_for_read_begin_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_open_for_write_commit':
just too many
LIB_EXTERNAL = \
-L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/usr/local/lib -lnetcdff -lnetcdf -L/usr/local/lib -lhdf5_fortran -lhdf5 -lhdf5hl_fortran -lhdf5_hl -L$HOME/rttov113/lib -lm -lz
When I replace LIB_EXTERNAL with the entry below I get 10 executables, without da_wrfvar.exe
The errors are
ranlib libwrfvar.a
0.05user 0.20system 0:00.99elapsed 25%CPU (0avgtext+0avgdata 31052maxresident)k
0inputs+16outputs (0major+5768minor)pagefaults 0swaps
rm -f da_wrfvar.exe
/usr/bin/ld: cannot find -lrttov11_test
/usr/bin/ld: cannot find -lrttov11_other
/usr/bin/ld: cannot find -lrttov11_mw_scatt
/usr/bin/ld: cannot find -lrttov11_parallel
collect2: error: ld returned 1 exit status
LIB_EXTERNAL = \
-L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/usr/local/lib -lnetcdff -lnetcdf -L/usr/local/lib -lhdf5_fortran -lhdf5 -lhdf5hl_fortran -lhdf5_hl -lm -lz -L$HOME/rttov113/lib -lrttov11_test -lrttov11_other -lrttov11_mw_scatt -lrttov11_coef_io -lrttov11_hdf -lrttov11_parallel -lrttov11_main
I wonder if am missing an library or the order in the libraries is not ok.
I will appreciate an assistance.
When I replace LIB_EXTERNAL with the entry below I get 43 executables, without da_wrfvar.exe
The errors in compile.out are a lot of "undefined reference to ..."
ranlib libwrfvar.a
0.24user 0.63system 0:01.72elapsed 50%CPU (0avgtext+0avgdata 31180maxresident)k
0inputs+16outputs (0major+5769minor)pagefaults 0swaps
rm -f da_wrfvar.exe
module_quilt_outbuf_ops.o: In function `__module_quilt_outbuf_ops_MOD_write_outbuf':
module_quilt_outbuf_ops.f90.text+0x328e): undefined reference to `ext_gr2_write_field_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_get_var_info':
module_io.f90.text+0x4f5): undefined reference to `ext_gr2_get_var_info_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_get_next_var':
module_io.f90.text+0x6e7): undefined reference to `ext_gr2_get_next_var_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_set_time':
module_io.f90.text+0x91a): undefined reference to `ext_gr2_set_time_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_get_previous_time':
module_io.f90.text+0xba7): undefined reference to `ext_gr2_get_previous_time_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_get_next_time':
module_io.f90.text+0xe33): undefined reference to `ext_gr2_get_next_time_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_ioclose':
module_io.f90.text+0x10d4): undefined reference to `ext_gr2_ioclose_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_iosync':
module_io.f90.text+0x12f8): undefined reference to `ext_gr2_iosync_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_inquire_filename':
module_io.f90.text+0x155a): undefined reference to `ext_gr2_inquire_filename_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_inquire_opened':
module_io.f90.text+0x17d7): undefined reference to `ext_gr2_inquire_opened_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_open_for_read':
module_io.f90.text+0x1d1b): undefined reference to `ext_gr2_open_for_read_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_open_for_read_commit':
module_io.f90.text+0x2008): undefined reference to `ext_gr2_open_for_read_commit_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_open_for_read_begin':
module_io.f90.text+0x249c): undefined reference to `ext_gr2_open_for_read_begin_'
./libwrfvar.a(module_io.o): In function `__module_io_MOD_wrf_open_for_write_commit':
just too many
LIB_EXTERNAL = \
-L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/usr/local/lib -lnetcdff -lnetcdf -L/usr/local/lib -lhdf5_fortran -lhdf5 -lhdf5hl_fortran -lhdf5_hl -L$HOME/rttov113/lib -lm -lz
When I replace LIB_EXTERNAL with the entry below I get 10 executables, without da_wrfvar.exe
The errors are
ranlib libwrfvar.a
0.05user 0.20system 0:00.99elapsed 25%CPU (0avgtext+0avgdata 31052maxresident)k
0inputs+16outputs (0major+5768minor)pagefaults 0swaps
rm -f da_wrfvar.exe
/usr/bin/ld: cannot find -lrttov11_test
/usr/bin/ld: cannot find -lrttov11_other
/usr/bin/ld: cannot find -lrttov11_mw_scatt
/usr/bin/ld: cannot find -lrttov11_parallel
collect2: error: ld returned 1 exit status
LIB_EXTERNAL = \
-L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/usr/local/lib -lnetcdff -lnetcdf -L/usr/local/lib -lhdf5_fortran -lhdf5 -lhdf5hl_fortran -lhdf5_hl -lm -lz -L$HOME/rttov113/lib -lrttov11_test -lrttov11_other -lrttov11_mw_scatt -lrttov11_coef_io -lrttov11_hdf -lrttov11_parallel -lrttov11_main
I wonder if am missing an library or the order in the libraries is not ok.
I will appreciate an assistance.