Skip to content

Commit

Permalink
Tweaks to make it run with the new soft linked orog
Browse files Browse the repository at this point in the history
  • Loading branch information
sanatcumar committed Dec 7, 2023
1 parent 58da591 commit 5dcb766
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions sorc/ocean_merge.fd/merge_lake_ocnmsk.f90
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ program merge_lake_ocnmsk


call read_nml(pth1, pth2, atmres, ocnres, pth3,binary_lake)

print *, pth1
nodp_pt=0
lake_pt=0
do tile=1,6
Expand Down
4 changes: 2 additions & 2 deletions ush/fv3gfs_driver_grid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ export home_dir=${home_dir:-"$PWD/../"}
export script_dir=$home_dir/ush
export exec_dir=${exec_dir:-"$home_dir/exec"}
export topo=$home_dir/fix/orog_raw

export ocean_mask_dir=$home_dir/fix/orog
export NCDUMP=${NCDUMP:-ncdump}


rm -fr $TEMP_DIR
mkdir -p $TEMP_DIR
cd $TEMP_DIR ||exit 8
Expand Down Expand Up @@ -527,7 +528,6 @@ export SAVE_DIR=$out_dir/sfc
export BASE_DIR=$home_dir
export FIX_FV3=$out_dir
export input_sfc_climo_dir=$home_dir/fix/sfc_climo
export ocean_mask_dir=$home_dir/fix/orog


if [ $gtype = regional_gfdl ] || [ $gtype = regional_esg ]; then
Expand Down
6 changes: 4 additions & 2 deletions ush/fv3gfs_ocean_merge.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash



results_dir=$TEMP_DIR/ocean_merged/C${res}.mx${ocn}
mkdir -p ${results_dir}



cat << EOF > input.nml
&mask_nml
ocean_mask_dir="$ocean_mask_dir/C${res}/ocean_mask/${ocn}/"
ocean_mask_dir="$(dirname $(dirname $home_dir))/fix/orog/C${res}/ocean_mask/${ocn}/"
ocnres="mx${ocn}"
lake_mask_dir="${TEMP_DIR}/C${res}/orog/"
atmres="C${res}"
Expand Down

0 comments on commit 5dcb766

Please sign in to comment.