Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

a segmentation fault when performing metgrid.exe

zkqholic

New member
i'm having a problem when i perform metgrid.exe in WPS. No errors occured performing geogrid.exe and ubgrib.exe. Here is the error:

[zkq@ustc WPS-4.3.1]$ ./metgrid.exe
Processing domain 1 of 3

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x2B81708D5697
#1 0x2B81708D5CDE
#2 0x2B81713683FF
#3 0x2B8173949E7A
#4 0x2B81719F56E5
#5 0x2B816E9AE16F
#6 0x496E43 in ext_ncd_open_for_read_begin_
#7 0x497B7B in ext_ncd_open_for_read_
#8 0x40FC0E in __input_module_MOD_input_init
#9 0x455402 in __process_domain_module_MOD_get_static_fields
#10 0x45A807 in __process_domain_module_MOD_process_domain
Segmentation fault (core dumped)

And the namelist.wps is as follows:

&geogrid
parent_id = 1, 1, 2,
parent_grid_ratio = 1, 5, 5,
i_parent_start = 1, 12, 35,
j_parent_start = 1, 15, 40,
e_we = 45, 101, 151,
e_sn = 45, 101, 211,
geog_data_res = '30s','30s','30s'
dx = 25000,
dy = 25000,
map_proj = 'lambert',
ref_lat = 30.8,
ref_lon = 117.6,
truelat1 = 30.8,
truelat2 = 30.8,
stand_lon = 117.6,
geog_data_path = '/data/backu/local/geog/'
/

&ungrib
out_format = 'WPS',
prefix = 'FILE',
/

&metgrid
fg_name = 'FILE'
io_form_metgrid = 2,
opt_output_from_metgrid_path='./met_output/',
/

It shoud be noted that a warning ourred during ./congiure WRF-4.3.3:

NETCDF4 IO features are requested, but this installation of NetCDF
/home/abdul/Build_WRF/LIBRARIES/netcdf
DOES NOT support these IO features.

Please make sure NETCDF version is 4.1.3 or later and was built with
--enable-netcdf4

OR set NETCDF_classic variable
bash/ksh : export NETCDF_classic=1
echo csh : setenv NETCDF_classic 1

Then re-run this configure script

!!! configure.wrf has been REMOVED !!!

I set NETCDF_classic variable using csh : setenv NETCDF_classic 1
An error ocuured during ./compile WPS as well: The metgrid.exe is genertaed
I solved this problem following the instrudtion in this post.
The WRF is version 4.3.3 and the WPS is version 4.3.1. i don't konw if this can cause so many errors.
 
Top