Rror opening wrfinput_d01 for reading ierr

Hello everyone, I encountered following error when running WRF, would like to ask you where the problem may occur? Thank you for your reply!

Also, I want to run CMAQ later. But I use ifort-compiled CMAQ and gfort-compiled WRF. May I ask whether the difference will have any impact on the subsequent operation of CMAQ?

  • export casedate=20180101
  • casedate=20180101
  • export fcsthour=24
  • fcsthour=24
    ++ date +%Y -d 20180101
  • export syyyy=2018
  • syyyy=2018
    ++ date +%m -d 20180101
  • export smm=01
  • smm=01
    ++ date +%d -d 20180101
  • export sdd=01
  • sdd=01
  • export shh=00
  • shh=00
    ++ date +%Y -d ‘20180101 00 24 hours’
  • export eyyyy=2018
  • eyyyy=2018
    ++ date +%m -d ‘20180101 00 24 hours’
  • export emm=01
  • emm=01
    ++ date +%d -d ‘20180101 00 24 hours’
  • export edd=02
  • edd=02
    ++ date +%H -d ‘20180101 00 24 hours’
  • export ehh=00
  • ehh=00
  • export if_run_wps=true
  • if_run_wps=true
  • export if_run_wrf=true
  • if_run_wrf=true
  • output_dir=/disk1/scl/Build_WRF/data/wrfout
  • wps_dir=/disk1/scl/Build_WRF/WPS
  • wrf_dir=/disk1/scl/Build_WRF/WRFV3/run
  • cd /disk1/scl/Build_WRF/WPS
  • true
  • cat
  • rm -rf ‘GRIDFILE*’ ‘FILE*’ ‘ungrib.log*’
  • ./link_grib.csh /disk1/scl/Build_WRF/data/FNL/fnl_20180101_00_00.grib2 /disk1/scl/Build_WRF/data/FNL/fnl_20180101_06_00.grib2 /disk1/scl/Build_WRF/data/FNL/fnl_20180101_12_00.grib2 /disk1/scl/Build_WRF/data/FNL/fnl_20180101_18_00.grib2 /disk1/scl/Build_WRF/data/FNL/fnl_20180102_00_00.grib2
  • ./ungrib.exe
    ./ungrib.exe: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
  • rm -rf ‘met_em*’ metgrid.log
  • mpirun -n 2 ./metgrid.exe
    Processing domain 1 of 3
    Processing domain 1 of 3

===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 15275 RUNNING AT localhost.localdomain
= EXIT CODE: 139
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES

YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions

  • true
  • cd /disk1/scl/Build_WRF/WRFV3/run
  • cat
  • ln -sf ‘/disk1/scl/Build_WRF/WPS/met_em*’ ./
  • rm -rf ‘wrfbdy*’ ‘wrfinput*’ ‘rsl.’ 'real.rsl.
  • mpirun -n 2 ./real.exe
    Ntasks in X 1 , ntasks in Y 1
    — WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
    — NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
    — NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
    — NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
    — NOTE: grid_fdda is 0 for domain 1, setting gfdda interval and ending time to 0 for that domain.
    — NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 1, setting sgfdda interval and ending time to 0 for that domain.
    — NOTE: obs_nudge_opt is 0 for domain 1, setting obs nudging interval and ending time to 0 for that domain.
    — NOTE: grid_fdda is 0 for domain 2, setting gfdda interval and ending time to 0 for that domain.
    — NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 2, setting sgfdda interval and ending time to 0 for that domain.
    — NOTE: obs_nudge_opt is 0 for domain 2, setting obs nudging interval and ending time to 0 for that domain.
    — NOTE: grid_fdda is 0 for domain 3, setting gfdda interval and ending time to 0 for that domain.
    — NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 3, setting sgfdda interval and ending time to 0 for that domain.
    — NOTE: obs_nudge_opt is 0 for domain 3, setting obs nudging interval and ending time to 0 for that domain.
    — NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
    Need MYNN PBL for icloud_bl = 1, resetting to 0
    — NOTE: RRTMG radiation is not used, setting: o3input=0 to avoid data pre-processing
    — NOTE: num_soil_layers has been set to 4
    REAL_EM V3.8.1 PREPROCESSOR

Parent domain
ids,ide,jds,jde 1 106 1 94
ims,ime,jms,jme -4 111 -4 99
ips,ipe,jps,jpe 1 106 1 94


DYNAMICS OPTION: Eulerian Mass Coordinate
Ntasks in X 1 , ntasks in Y 1
— WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: grid_fdda is 0 for domain 1, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 1, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 1, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: grid_fdda is 0 for domain 2, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 2, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 2, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: grid_fdda is 0 for domain 3, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 3, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 3, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
Need MYNN PBL for icloud_bl = 1, resetting to 0
— NOTE: RRTMG radiation is not used, setting: o3input=0 to avoid data pre-processing
— NOTE: num_soil_layers has been set to 4
REAL_EM V3.8.1 PREPROCESSOR


Parent domain
ids,ide,jds,jde 1 106 1 94
ims,ime,jms,jme -4 111 -4 99
ips,ipe,jps,jpe 1 106 1 94


DYNAMICS OPTION: Eulerian Mass Coordinate
alloc_space_field: domain 1 , 361841000 bytes allocated
Time period # 1 to process = 2018-01-01_00:00:00.
Time period # 2 to process = 2018-01-01_06:00:00.
Time period # 3 to process = 2018-01-01_12:00:00.
Time period # 4 to process = 2018-01-01_18:00:00.
Time period # 5 to process = 2018-01-02_00:00:00.
Total analysis times to input = 5.


Domain 1: Current date being processed: 2018-01-01_00:00:00.0000, which is loop # 1 out of 5
configflags%julyr, %julday, %gmt: 2018 1 0.0000000
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 411
error opening met_em.d01.2018-01-01_00:00:00.nc for input; bad date in namelist or file not in directory

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 411
error opening met_em.d01.2018-01-01_00:00:00.nc for input; bad date in namelist or file not in directory

alloc_space_field: domain 1 , 361841000 bytes allocated
Time period # 1 to process = 2018-01-01_00:00:00.
Time period # 2 to process = 2018-01-01_06:00:00.
Time period # 3 to process = 2018-01-01_12:00:00.
Time period # 4 to process = 2018-01-01_18:00:00.
Time period # 5 to process = 2018-01-02_00:00:00.
Total analysis times to input = 5.


Domain 1: Current date being processed: 2018-01-01_00:00:00.0000, which is loop # 1 out of 5
configflags%julyr, %julday, %gmt: 2018 1 0.0000000
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 411
error opening met_em.d01.2018-01-01_00:00:00.nc for input; bad date in namelist or file not in directory

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 411
error opening met_em.d01.2018-01-01_00:00:00.nc for input; bad date in namelist or file not in directory

  • rm -rf ‘wrfout_d*’ ‘wrfrst_d*’ ‘rsl.*’
  • mpirun -n 4 ./wrf.exe
    Ntasks in X 1 , ntasks in Y 1
    — WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
    — NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
    — NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
    — NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
    — NOTE: grid_fdda is 0 for domain 1, setting gfdda interval and ending time to 0 for that domain.
    — NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 1, setting sgfdda interval and ending time to 0 for that domain.
    — NOTE: obs_nudge_opt is 0 for domain 1, setting obs nudging interval and ending time to 0 for that domain.
    — NOTE: grid_fdda is 0 for domain 2, setting gfdda interval and ending time to 0 for that domain.
    — NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 2, setting sgfdda interval and ending time to 0 for that domain.
    — NOTE: obs_nudge_opt is 0 for domain 2, setting obs nudging interval and ending time to 0 for that domain.
    — NOTE: grid_fdda is 0 for domain 3, setting gfdda interval and ending time to 0 for that domain.
    — NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 3, setting sgfdda interval and ending time to 0 for that domain.
    — NOTE: obs_nudge_opt is 0 for domain 3, setting obs nudging interval and ending time to 0 for that domain.
    — NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
    Need MYNN PBL for icloud_bl = 1, resetting to 0
    — NOTE: RRTMG radiation is not used, setting: o3input=0 to avoid data pre-processing
    — NOTE: num_soil_layers has been set to 4
    WRF V3.8.1 MODEL

Parent domain
ids,ide,jds,jde 1 106 1 94
ims,ime,jms,jme -4 111 -4 99
ips,ipe,jps,jpe 1 106 1 94


DYNAMICS OPTION: Eulerian Mass Coordinate
Ntasks in X 1 , ntasks in Y 1
— WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: grid_fdda is 0 for domain 1, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 1, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 1, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: grid_fdda is 0 for domain 2, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 2, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 2, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: grid_fdda is 0 for domain 3, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 3, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 3, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
Need MYNN PBL for icloud_bl = 1, resetting to 0
— NOTE: RRTMG radiation is not used, setting: o3input=0 to avoid data pre-processing
— NOTE: num_soil_layers has been set to 4
WRF V3.8.1 MODEL


Parent domain
Ntasks in X 1 , ntasks in Y 1
ids,ide,jds,jde 1 106 1 94
ims,ime,jms,jme -4 111 -4 99
ips,ipe,jps,jpe 1 106 1 94


DYNAMICS OPTION: Eulerian Mass Coordinate
— WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: grid_fdda is 0 for domain 1, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 1, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 1, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: grid_fdda is 0 for domain 2, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 2, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 2, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: grid_fdda is 0 for domain 3, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 3, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 3, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
Need MYNN PBL for icloud_bl = 1, resetting to 0
— NOTE: RRTMG radiation is not used, setting: o3input=0 to avoid data pre-processing
— NOTE: num_soil_layers has been set to 4
WRF V3.8.1 MODEL


Parent domain
ids,ide,jds,jde 1 106 1 94
ims,ime,jms,jme -4 111 -4 99
ips,ipe,jps,jpe 1 106 1 94


DYNAMICS OPTION: Eulerian Mass Coordinate
Ntasks in X 1 , ntasks in Y 1
— WARNING: traj_opt is zero, but num_traj is not zero; setting num_traj to zero.
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: sst_update is 0, setting io_form_auxinput4 = 0 and auxinput4_interval = 0 for all domains
— NOTE: grid_fdda is 0 for domain 1, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 1, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 1, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: grid_fdda is 0 for domain 2, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 2, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 2, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: grid_fdda is 0 for domain 3, setting gfdda interval and ending time to 0 for that domain.
— NOTE: both grid_sfdda and pxlsm_soil_nudge are 0 for domain 3, setting sgfdda interval and ending time to 0 for that domain.
— NOTE: obs_nudge_opt is 0 for domain 3, setting obs nudging interval and ending time to 0 for that domain.
— NOTE: bl_pbl_physics /= 4, implies mfshconv must be 0, resetting
Need MYNN PBL for icloud_bl = 1, resetting to 0
— NOTE: RRTMG radiation is not used, setting: o3input=0 to avoid data pre-processing
— NOTE: num_soil_layers has been set to 4
WRF V3.8.1 MODEL


Parent domain
ids,ide,jds,jde 1 106 1 94
ims,ime,jms,jme -4 111 -4 99
ips,ipe,jps,jpe 1 106 1 94


DYNAMICS OPTION: Eulerian Mass Coordinate
alloc_space_field: domain 1 , 267790056 bytes allocated
alloc_space_field: domain 1 , 267790056 bytes allocated
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

alloc_space_field: domain 1 , 267790056 bytes allocated
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

alloc_space_field: domain 1 , 267790056 bytes allocated
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE: LINE: 70
program wrf: error opening wrfinput_d01 for reading ierr= -1021

  • mkdir -p /disk1/scl/Build_WRF/data/wrfout/20180101
  • mv ‘wrfout_d*’ /disk1/scl/Build_WRF/data/wrfout/20180101
    mv: cannot stat `wrfout_d*': No such file or directory

The files are compiler and machine independent: that was the whole point of how I/O is being done, so that a desktop x86 and a supercomputer (probably SGI RISC or IBM POWER (whicn can’t possibly be running the same compiler) when this was designed) can access the same data transparently

This question would be more appropriate for the WRF and MPAS user forum:

./ungrib.exe
./ungrib.exe: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory

This error suggests to me that the compute environment (e.g., path and other environment variables) that was used to compile the model is not the same you are using when executing the model.