Skip to content

Commit

Permalink
Tweaks recomended by George to read long filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
sanatcumar committed Dec 8, 2023
1 parent 30e2834 commit a2082c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sorc/ocean_merge.fd/merge_lake_ocnmsk.f90
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ program merge_lake_ocnmsk
! all instances of int_lake was changed to binary_lake
integer :: binary_lake

character(len=120) :: flnm
character(len=250) :: flnm
integer :: ncid,ndims,nvars,natts,lat,lon,v1id,v2id,v3id,v4id,start(2),count(2),i,j,latid,lonid,ncid4, dims(2),tile,nodp_pt
integer :: lake_pt,vlat
real, allocatable :: lake_frac(:,:),lake_depth(:,:),land_frac(:,:),ocn_frac(:,:),slmsk(:,:),lat2d(:,:)
Expand Down
18 changes: 15 additions & 3 deletions ush/fv3gfs_ocean_merge.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
#!/bin/bash


#
# To generate the ocean mask
#
# Check-out ufs-utils (and be sure to check out the ccpp submodule)
# cd fix
# ./link_fixdirs.sh emc hera
# cd ../reg_tests/cpld_gridgen
# Edit the rt.conf and add the non-standard case(s) you want to generate
# Note you need to keep/run the C384_025 case because the lower resolution cases depend on it to generate the remapping weights used to create the CICE ICs and/or do the Post jobs.
# Edit rt.sh for proper accounts/partitions
# Build and run the test using ./rt.sh -b >output 2>&1 &
# Your results should be in /scratch1/NCEPDEV/stmp4/First.Last/CPLD_GRIDGEN/rt_#
#
#

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


cat << EOF > input.nml
&mask_nml
ocean_mask_dir="$(dirname $(dirname $home_dir))/fix/orog/C${res}/ocean_mask/${ocn}/"
ocean_mask_dir="${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 a2082c0

Please sign in to comment.