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.
 
Is this a nested case? can you upload your full namelist.wps for me to take a look? Thanks.
My situation is exactly the same as his, including the previous unsuccessful generation of meogrid, and the solution is also based on his method, but I also ran into the same problem.By the way,No errors occured when performing geogrid.exe and ubgrib.exe.
./metgrid.exe
Processing domain 1 of 3

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

Backtrace for this error:
#0 0x2B81052F6697
#1 0x2B81052F6CDE
#2 0x2B8105D892EF
#3 0x2B81092D00FA
#4 0x2B8107BBC785
#5 0x2B81001C87E5
#6 0x4A924F in ext_ncd_read_field_
Segmentation fault
here is my namelist.wps
1 &share
2 wrf_core = 'ARW',
3 max_dom = 3,
4 start_date = '2020-07-01_06:00:00','2020-07-01_06:00:00','2020-07-01_06:00:00',
5 end_date = '2020-07-03_18:00:00','2020-07-03_18:00:00','2020-07-03_18:00:00',
6 interval_seconds = 21600
7 /
8
9 &geogrid
10 parent_id = 1, 1, 2,
11 parent_grid_ratio = 1, 3, 3,
12 i_parent_start = 1, 65, 80,
13 j_parent_start = 1, 65, 80,
14 e_we = 250, 379, 652,
15 e_sn = 250, 349, 499,
16 geog_data_res = 'default','default',
17 dx = 6000,
18 dy = 6000,
19 map_proj = 'lambert',
20 ref_lat = 43.88,
21 ref_lon = 125.33,
22 truelat1 = 43.88,
23 truelat2 = 43.88,
24 stand_lon = 125.33,
25 geog_data_path = '/public1/home/cmip6c/liuyiming/WRF/Build_WRF/WPS_GEOG'
26 /
27
28 &ungrib
29 out_format = 'WPS',
30 prefix = 'SFC',
 
Top