Ahmathlete
New member
I'm trying to run a WRF simulation using WPS 4.3.1 and WRF 4.3.1. The complete WPS and real.exe work fine, except wrf.exe is always crashing. After further investigation (e.g., by configuring with "-D" and compiling), I found failures in certain MPI tasks from module_sf_noahlsm.f90 due to some negative soil moisture in the wrfinput files. I traced the negative values back to ERA5 surface data.
To solve it, I replaced these values with 0.0001 and rerun ungrib and metgrid using:
However, these negative moisture values reappear in the met_em files. The original negative values are not near any water bodies. Additionally, I used the NCL manuscript from Vaishnavi_198's question; the negative values do not appear in the intermediate files. It seems the issue arises from metgrid.
I attached both namelists, surface Vtable, and METGRID.TBL. Also, the negative_values.txt shows the propagation of negative values in each stage.
Any help to circumvent this issue is welcome and appreciated.
To solve it, I replaced these values with 0.0001 and rerun ungrib and metgrid using:
Bash:
cdo setrtoc,-1,0,0.0001 -selvar,var39,var40,var41,var42 $file fixed.grb
cdo delvar,var39,var40,var41,var42 $file rest.grb
cdo merge rest.grb fixed.grb tmp.grb && mv tmp.grb $file
rm fixed.grb rest.grb
However, these negative moisture values reappear in the met_em files. The original negative values are not near any water bodies. Additionally, I used the NCL manuscript from Vaishnavi_198's question; the negative values do not appear in the intermediate files. It seems the issue arises from metgrid.
I attached both namelists, surface Vtable, and METGRID.TBL. Also, the negative_values.txt shows the propagation of negative values in each stage.
Any help to circumvent this issue is welcome and appreciated.