WPS 3.7 installation problem

Installing the WRF Preprocessing System

WPS 3.7 installation problem

Postby imdnme » Mon Jul 27, 2015 3:55 am

I am trying to upgrade WPS from 3.5.1 to 3.7 on Scientiffic Linux with gfortran and gcc (serial).
First set the environment variables NETCDF, JASPERLIB, JASPERINC (as I have the libraries from the previous installation), then run configure and selected option 1.
The problem comes when trying to compile:
**** Compiling WPS and all utilities ****

make[1]: Entering directory `/home/angie/WPS/geogrid/src'
gfortran -o geogrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o module_stringutil.o geogrid.o gridinfo_module.o hash_module.o interp_module.o list_module.o llxy_module.o misc_definitions_module.o module_debug.o module_map_utils.o output_module.o parallel_module.o process_tile_module.o proc_point_module.o queue_module.o read_geogrid.o smooth_module.o source_data_module.o \
/home/angie/WPS/../WRFV3/frame/module_driver_constants.o \
/home/angie/WPS/../WRFV3/frame/pack_utils.o /home/angie/WPS/../WRFV3/frame/module_machine.o \
/home/angie/WPS/../WRFV3/frame/module_internal_header_util.o \
-I/home/angie/WPS/../WRFV3/external/io_netcdf -I/home/angie/WPS/../WRFV3/external/io_grib_share -I/home/angie/WPS/../WRFV3/external/io_grib1 -I/home/angie/WPS/../WRFV3/external/io_int -I/home/angie/WPS/../WRFV3/inc -I/home/angie/netcdf-libs//include \
-L/home/angie/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/home/angie/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/home/angie/WPS/../WRFV3/external/io_int -lwrfio_int -L/home/angie/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/home/angie/netcdf-libs//lib -lnetcdff -lnetcdf -lgomp \

parallel_module.o: In function `__parallel_module_MOD_parallel_start':
parallel_module.f90:(.text+0x232): undefined reference to `mpi_init_'
parallel_module.f90:(.text+0x249): undefined reference to `mpi_comm_rank_'
parallel_module.f90:(.text+0x260): undefined reference to `mpi_comm_size_'
parallel_module.o: In function `__parallel_module_MOD_gather_whole_field_i':
parallel_module.f90:(.text+0x555): undefined reference to `mpi_recv_'
parallel_module.f90:(.text+0x5cc): undefined reference to `mpi_recv_'
parallel_module.f90:(.text+0x78b): undefined reference to `mpi_recv_'
parallel_module.f90:(.text+0x999): undefined reference to `mpi_send_'
parallel_module.f90:(.text+0x9ec): undefined reference to `mpi_send_'
parallel_module.f90:(.text+0xb75): undefined reference to `mpi_send_'
...
imdnme
 
Posts: 11
Joined: Wed Jul 13, 2011 3:39 am
Location: Bulgaria

Re: WPS 3.7 installation problem

Postby winash12 » Mon Jul 27, 2015 4:07 am

Whenever you encounter undefined references while compiling a program think first of the linking options.
For this specific problem those mpi references are unresolved. You will need to find out within the appropriate makefile what the linking options are and add the linking options to the makefile.
winash12
 
Posts: 44
Joined: Thu May 29, 2014 2:56 am

Re: WPS 3.7 installation problem

Postby imdnme » Mon Jul 27, 2015 4:29 am

But why does it need mpi when compiling serial? I only have OpenMP.
The previous WPS 3.5.1 was compiled with no errors. The only difference in configure.wps between the two versions is -lgomp here:
Code: Select all
WRF_LIB         =       -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
                        -L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
                        -L$(WRF_DIR)/external/io_int -lwrfio_int \
                        -L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
                        -L$(NETCDF)/lib -lnetcdff -lnetcdf -lgomp

I tried adding -lgomp in the new version, but no effect.

The Makefile in geogrid (where the error occurs) is absolitely indentical to that of version 3.5.1 and it gets the linking options from configure.wps, so I still have no idea what and where to add.
imdnme
 
Posts: 11
Joined: Wed Jul 13, 2011 3:39 am
Location: Bulgaria

Re: WPS 3.7 installation problem

Postby imdnme » Mon Jul 27, 2015 5:40 am

I made a step back, looking into WRF installation. In my old version 3.5.1 configure.wrf had an additional flag (probably put by me last year) -fopenmp
Code: Select all
FCBASEOPTS_NO_G =       -w $(FORMAT_FREE) $(BYTESWAPIO) -fopenmp

With this correction compiling WRF and then WPS works out fine.
imdnme
 
Posts: 11
Joined: Wed Jul 13, 2011 3:39 am
Location: Bulgaria

Re: WPS 3.7 installation problem

Postby gauravtiwari » Fri Jan 13, 2017 1:16 am

Hello community,

I've installed WRFV3.7.1, netcdf, jasper, zlib, MPICH and pnglib and made variables
JASPERLIB=/home/username/jasper-1.900.1/lib/
JASPERINC=/home/username/jasper-1.900.1/include/
So I'm trying to compile WPS. geogrid.exe and metgrid.exe was successfully generated but there wasn't ungrib.exe in compile.log

I am the beginner in model installation, please someone reply and try to fix my problem ASAP.
gauravtiwari
 
Posts: 6
Joined: Thu Jan 05, 2017 1:28 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron