Compilation and running WPSV3

Installing the WRF Preprocessing System

Compilation and running WPSV3

Postby cvr » Tue Apr 29, 2008 7:23 am

Hello,

I have been able to compile WPSV3 in a Linux x86_64 machine with Intel(R) Xeon(TM) processors. The relevant information in configure.wps is:
****************************************************************
FC = ifort
SFC = ifort
FFLAGS = -FR -convert big_endian
F77FLAGS = -FI -convert big_endian
FNGFLAGS = $(FFLAGS)
LDFLAGS =
CC = gcc
SCC = gcc
CFLAGS = -w
CPP = /lib/cpp -C -P -traditional
CPPFLAGS = D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32
****************************************************************

This setup was achieved after some trial & error, because when putting some optimization flags (like -O3 -xW) the program metgrid.exe would compile, but fail while executing, normally with an output similar to this one:
****************************************************************
Parsed 10 entries in GEOGRID.TBL
Processing domain 1 of 1
Processing XLAT and XLONG
Processing MAPFAC
Processing F and E
Processing ROTANG
Processing LANDUSEF
Calculating landmask from LANDUSEF ( WATER = 16 )
Processing HGT_M
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
geogrid.exe 0000000000471DD2 Unknown Unknown Unknown
etc etc etc ...
****************************************************************
(with different compilation options, the execution would fail in while 'Processing LANDUSEF', or 'Processing SOILTEMP' or 'Processing ALBEDO12M')

Well, since with the configuration without optimizations, this would not happen, then I forgot these execution errors and was satisfied. Until now I've been running some cases with 10m to 1m resolution data without problems. While trying to run a case with 30s data, the metgrid.exe failed again, with the error I just presented above. I've recompiled with the debugging symbols information (flag '-g') and passed it by the Intel debugger, which yielded:
****************************************************************
idb-e ./geogrid.exe
Linux Application Debugger for Intel(R) EM64T-based applications, Version 9.0-10, Build 20050413
------------------
object file name: ./WPSV3-dir/geogrid.exe
Reading symbolic information from /cluster/ibm/dem05003/bin/WRF/WPSV3/geogrid/src/geogrid.exe...done
(idb) run ./WPSV3-dir/geogrid.exe
Process has exited
Parsed 10 entries in GEOGRID.TBL
Processing domain 1 of 1
Processing XLAT and XLONG
Processing MAPFAC
Processing F and E
Processing ROTANG
Processing LANDUSEF
Calculating landmask from LANDUSEF ( WATER = 16 )
Processing HGT_M
Thread received signal SEGV
stopped at [subroutine `PROC_POINT_MODULE`process_continuous_block(real*4 (:,:,:), integer*4, integer*4 (:,:,:), integer*4, integer*4, integer*4, integer*4, integer*4, integer*4, real*4 (:,:,:), real*4 (:,:,:), integer*4, integer*4, integer*4, integer*4, integer*4, integer*4, type bitarray, type bitarray, integer*4, real*4, real*4, real*4 (:,:)):691 0x0000000000471dd2]
'/cluster/ibm/dem05003/bin/WRF/WPSV3/geogrid/src/geogrid.exe'.
691 (mask_array(i,j) /= maskval)) then
(idb) exit
*****************************************************

(I should warn that in the process I had to copy the WPSV3/geogrid/src/proc_point_module.F to proc_point_module.f90, since the debugger was looking for this source file, and I presumed somewhere in the makefile instructions there would appear some similar step.)
Well, for now I will use resolutions superior to 30s (with the same exact case and files, using geog_data_res = '10m' or '5m' or '1m' it works). Nevertheless I hope this information is useful.

P.S.: By the way, my geogrid configuration in namelist.wps is:
*****************************************************
parent_id = 1,
parent_grid_ratio = 1,
i_parent_start = 1,
j_parent_start = 1,
e_we = 98,
e_sn = 70,
geog_data_res = '10m',
dx = 30000,
dy = 30000,
map_proj = 'mercator',
ref_lat = 25.00,
ref_lon = -89.00,
truelat1 = 0.0,
truelat2 = 0.0,
stand_lon = -89.0,
*****************************************************
cvr
 
Posts: 1
Joined: Thu Apr 24, 2008 10:17 am

Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests