Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make_bcs clarification of options #517

Merged
merged 40 commits into from
Feb 10, 2022
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6657baa
buf fis for format and make_bcs better desription
biljanaorescanin Jan 10, 2022
26dca10
typo
biljanaorescanin Jan 10, 2022
e957830
Edited make_bcs interactive questions help text
gmao-rreichle Jan 10, 2022
6462774
Edited "usage" help text in mkCatchParam.F90
gmao-rreichle Jan 10, 2022
7af27ba
Removed redundant definition of DEF[ault] in rmTinyCatchParaMod.F90
gmao-rreichle Jan 10, 2022
a42ebcb
cleanup & comments (interactive questions make_bcs)
gmao-rreichle Jan 11, 2022
dff574f
edit
biljanaorescanin Jan 11, 2022
d2ec64f
diff run setup
biljanaorescanin Jan 11, 2022
4f19841
revised status messages in mkCatchParam.F90
gmao-rreichle Jan 11, 2022
0821b7c
added blank lines to log of status messages in mkCatchParam.F90
gmao-rreichle Jan 11, 2022
5fb0cb3
few edits
biljanaorescanin Jan 12, 2022
bf20ae5
minor edits to readme, making formats the same
biljanaorescanin Jan 13, 2022
8260ddb
fix for err/log file
biljanaorescanin Jan 13, 2022
28d9f1e
right commit
biljanaorescanin Jan 13, 2022
38a304c
add second step to make_bcs
biljanaorescanin Jan 13, 2022
269f526
cleanup for tag info in readme
biljanaorescanin Jan 13, 2022
cfa88ac
revised USAGE (make_bcs); fixed type (create_README.csh)
gmao-rreichle Jan 14, 2022
5c77238
updated path to NLv4 bcs (make_bcs)
gmao-rreichle Jan 14, 2022
d0fc320
revised/corrected status messages (mkCatchParam.F90)
gmao-rreichle Jan 14, 2022
9fff9eb
cleanup of code options
biljanaorescanin Jan 17, 2022
c187568
Add'l cleanup of comments and messages in make_bcs; prettier indent …
gmao-rreichle Jan 18, 2022
348f9bf
corrected and simplified logic for BCS output directory (make_bcs)
gmao-rreichle Jan 19, 2022
b799509
typo
biljanaorescanin Jan 25, 2022
ce6d7e7
adding help message
biljanaorescanin Jan 25, 2022
16c866e
expanded make_bcs -help option; cleanup
gmao-rreichle Jan 26, 2022
e6033d9
sourcing g5_modules insted of setting env
biljanaorescanin Jan 27, 2022
039f343
clarified "source g5_modules" instruction
gmao-rreichle Jan 27, 2022
46d6605
out dir re-org, remove g5_modules, fix latlon option
biljanaorescanin Jan 28, 2022
e8e7e76
right commit
biljanaorescanin Jan 28, 2022
a99f230
fix previous commit with diff dir check
biljanaorescanin Jan 31, 2022
addf907
Merge branch 'develop' into feature/borescan_fix_make_bcs
biljanaorescanin Feb 1, 2022
3541a12
fixed problems with interactive inputs, logic, and help text in make_bcs
gmao-rreichle Feb 3, 2022
d6179f9
changed order of interactive questions; added BCs version to default …
gmao-rreichle Feb 3, 2022
099d89d
Merge branch 'develop' into feature/borescan_fix_make_bcs
biljanaorescanin Feb 7, 2022
6c670ee
confirming file formats
biljanaorescanin Feb 9, 2022
f3ffc7b
last two colums are marked as dummies. Usage unknown
biljanaorescanin Feb 9, 2022
10d86c2
some cleanup of create_README.sh
gmao-rreichle Feb 9, 2022
b38f4ef
more cleanup
biljanaorescanin Feb 10, 2022
502a2db
additional cleanup
gmao-rreichle Feb 10, 2022
9524b17
more cleanup of documentation
gmao-rreichle Feb 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#
# ---- USAGE ----
# 1) STEP 1 : build the model.
# 2) STEP 2 : create a link to install/bin from the working directory.
# 3) STEP 3 : bin/make_bcs
# 2) STEP 2 : ./make_bcs
gmao-rreichle marked this conversation as resolved.
Show resolved Hide resolved
# Answer the following questions:
# a) Enter the Atmospheric Horizontal Resolution Code(s) to build:
# b) Select the Land BCs version to use:
Expand All @@ -27,8 +26,8 @@ if ( $1 == noland ) set SKIPLAND = YES
# Set GEOS5/ESMADIR Variables
#######################################################################

set MAKE_BCS = `echo $cwd`/bin/make_bcs
set ESMADIR = `echo $cwd`/bin/
set MAKE_BCS = `echo $cwd`/make_bcs
gmao-rreichle marked this conversation as resolved.
Show resolved Hide resolved
set ESMADIR = `echo $cwd`

echo ' '
echo MAKE_BCS: $MAKE_BCS
Expand Down Expand Up @@ -59,15 +58,80 @@ set WHITE = "\033[37m"
set RESET = "\033[0m"
set BOLD = "\033[1m"

set C1 = $RED
set C2 = $BLUE
set CR = $RESET

#######################################################################
#######################################################################

set pwd = `pwd`

if( -e $HOME/.make_bcs) then
set make_bcsinfo = `cat $HOME/.make_bcs`
set C1 = $make_bcsinfo[1]
set C2 = $make_bcsinfo[2]
else
set C1 = $RED
set C2 = $BLUE
endif
set CR = $RESET
gmao-rreichle marked this conversation as resolved.
Show resolved Hide resolved
#######################################################################
# Build Directory Locations
#######################################################################

# Set Current Working Path to make_bcs
# -------------------------------------
setenv ARCH `uname -s`
if ($ARCH == Darwin) then
gmao-rreichle marked this conversation as resolved.
Show resolved Hide resolved
set FINDPATH = realpath
else
set FINDPATH = 'readlink -f'
endif
set MAKE_BCS = `$FINDPATH $0`
gmao-rreichle marked this conversation as resolved.
Show resolved Hide resolved

# Test if GEOSgcm.x or GEOSldas.x are here which means you are in install directory
if (! -x GEOSgcm.x && ! -x GEOSldas.x) then
echo "You are trying to run $0 from the wrong directory"
echo "Please run from the bin/ directory in your installation"
exit 1
endif
#######################################################################
# Create Paths for EXP Directorie
#######################################################################
echo
echo "Enter the ${C1}Boundary Conditions Directory Name${CR}:"
gmao-rreichle marked this conversation as resolved.
Show resolved Hide resolved
set EXPID = $<

# EXP Directory (for Output Data )
# --------------------------------------------
set check = FALSE
while( $check == FALSE )
if( -e $HOME/.EXPDIRroot ) then
set EXPDIRroot = `cat $HOME/.EXPDIRroot`
gmao-rreichle marked this conversation as resolved.
Show resolved Hide resolved
else
set EXPDIRroot = $WRKDIR
endif
setenv EXPDIR_def $EXPDIRroot/$EXPID
echo ""
echo "Enter Desired Location for the ${C1}EXPERIMENT${CR} Directory (to contain BC's output)"
echo "Hit ENTER to use Default Location:"
echo "----------------------------------"
echo "Default: ${C2}${EXPDIR_def}${CR}"
set NUEXPDIR = $<
if( .$NUEXPDIR != . ) then
setenv EXPDIR $NUEXPDIR
setenv EXPDIR_def $NUEXPDIR
else
setenv EXPDIR $EXPDIR_def
endif

if( "$EXPID" != `basename $EXPDIR` ) then
echo "\!\! The ${C1}EXPERIMENT${CR} Directory MUST point to the ${C1}EXPID${CR}: ${C2}${EXPID}${CR}"
echo " "
else
set check = TRUE
endif
end
mkdir -p $EXPDIR


#######################################################################
#
# Atmospheric Horizontal Resolution (HRCODE)
Expand Down Expand Up @@ -563,7 +627,7 @@ set IMO = `echo ${imo} | awk '{printf "%4.4i", $1}'`
set JMO = `echo ${jmo} | awk '{printf "%4.4i", $1}'`

set BCNAME = DC${IM}xPC${JM}_${DATENAME}${IMO}x${POLENAME}${JMO}
set BCDIR = $OUTDIR/$BCNAME.scratch
set BCDIR = $EXPDIR/$OUTDIR/$BCNAME.scratch
set BCJOB = $BCDIR/$BCNAME.j

if( -e $BCDIR) /bin/rm -r $BCDIR
Expand All @@ -588,7 +652,7 @@ setenv ESMADIR $ESMADIR
cd $pwd
cd $BCDIR

/bin/ln -s $pwd/bin
/bin/ln -s $pwd
mkdir -p til rst data/MOM5 data/MOM6 clsm/plots
ln -s /discover/nobackup/projects/gmao/ssd/aogcm/ocean_bcs/MOM5/360x200 data/MOM5/360x200
ln -s /discover/nobackup/projects/gmao/ssd/aogcm/ocean_bcs/MOM5/720x410 data/MOM5/720x410
Expand Down Expand Up @@ -738,7 +802,7 @@ else
set BCNAME = CF${NC}x6C_${DATENAME}${IMO}x${POLENAME}${JMO}
endif

set BCDIR = $OUTDIR/$BCNAME.scratch
set BCDIR = $EXPDIR/$OUTDIR/$BCNAME.scratch
set BCJOB = $BCDIR/$BCNAME.j

if( -e $BCDIR) /bin/rm -r $BCDIR
Expand All @@ -764,7 +828,7 @@ setenv ESMADIR $ESMADIR
cd $pwd
cd $BCDIR

/bin/ln -s $pwd/bin
/bin/ln -s $pwd
mkdir -p til rst data/MOM5 data/MOM6 clsm/plots
ln -s /discover/nobackup/projects/gmao/ssd/aogcm/ocean_bcs/MOM5/360x200 data/MOM5/360x200
ln -s /discover/nobackup/projects/gmao/ssd/aogcm/ocean_bcs/MOM5/720x410 data/MOM5/720x410
Expand Down Expand Up @@ -965,7 +1029,7 @@ setenv ESMADIR $ESMADIR
cd $pwd
cd $BCDIR

/bin/ln -s $pwd/bin
/bin/ln -s $pwd
mkdir -p til rst data/MOM5 data/MOM6 clsm/plots
ln -s /discover/nobackup/projects/gmao/ssd/aogcm/ocean_bcs/MOM5/360x200 data/MOM5/360x200
ln -s /discover/nobackup/projects/gmao/ssd/aogcm/ocean_bcs/MOM5/720x410 data/MOM5/720x410
Expand Down Expand Up @@ -1135,7 +1199,7 @@ set IM = `echo ${im} | awk '{printf "%4.4i", $1}'`
set JM = `echo ${jm} | awk '{printf "%4.4i", $1}'`

set BCNAME = SMAP_${EVERSION}_${MGRID}
set BCDIR = $OUTDIR/$BCNAME.scratch
set BCDIR = $EXPDIR/$OUTDIR/$BCNAME.scratch
set BCJOB = $BCDIR/$BCNAME.j
set THISGRID = SMAP-${EVERSION}-${MGRID}
if( -e $BCDIR) /bin/rm -r $BCDIR
Expand All @@ -1160,7 +1224,7 @@ setenv ESMADIR $ESMADIR
cd $pwd
cd $BCDIR

/bin/ln -s $pwd/bin
/bin/ln -s $pwd
mkdir -p til rst data/MOM5 data/MOM6 clsm/plots
cd data
ln -s $l_data CATCH
Expand Down