From 872ddd020ce38ea8d765422e9abe2ca943fb222b Mon Sep 17 00:00:00 2001
From: Peter Kalverla
Date: Fri, 24 May 2024 11:46:41 +0200
Subject: [PATCH] Explicitly link ARW geogrid table
---
wrf-runner/wrf_runner.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/wrf-runner/wrf_runner.sh b/wrf-runner/wrf_runner.sh
index aeb8aec..2c37a82 100644
--- a/wrf-runner/wrf_runner.sh
+++ b/wrf-runner/wrf_runner.sh
@@ -35,7 +35,8 @@ f90nml $WRF_RUNNER/namelist.wps namelist.wps
# Run WPS
f90nml -g geogrid -v opt_geogrid_tbl_path="'$WPS_HOME/geogrid/'" namelist.wps patched_nml && mv patched_nml namelist.wps
f90nml -g metgrid -v opt_metgrid_tbl_path="'$WPS_HOME/metgrid'" namelist.wps patched_nml && mv patched_nml namelist.wps
-ln -s $WPS_HOME/ungrib/Variable_Tables/Vtable.GFS Vtable
+ln -sf $WPS_HOME/ungrib/Variable_Tables/Vtable.GFS Vtable
+ln -sf $WPS_HOME/geogrid/GEOGRID.TBL.ARW $WPS_HOME/geogrid/GEOGRID.TBL # make sure the right geogrid table is linked.
$WPS_HOME/link_grib.csh "${DATA_HOME}/real-time/gfs-data/*"
$WPS_HOME/geogrid.exe
$WPS_HOME/ungrib.exe