Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Add account env #11

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 10 additions & 2 deletions ci/create_run_xml_from_template.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,17 @@ done
popd

#define env
export DEV=/gpfs/f5/cefi/scratch
export SCRATCH=/gpfs/f5/cefi/scratch
if [ "$#" -eq 1 ]; then
export ACCOUNT="$1"
else
# If no ACCOUNT provided, set to default value
export ACCOUNT="cefi"
fi
export DEV=/gpfs/f5/${ACCOUNT}/scratch
export SCRATCH=/gpfs/f5/${ACCOUNT}/scratch

echo "Current date: " $CURRENT_DATE
echo "ACCOUNT: " $ACCOUNT
echo "DEV: " $DEV
echo "SCRATCH: " $SCRATCH
echo "MOM6 tag: " $hash_MOM6
Expand Down Expand Up @@ -63,6 +70,7 @@ cat ocean_ice_cobalt_experiments.template.xml | sed -e "s/<FMS_GIT_HASH>/$hash_F
-e "s|<MOM6_BRANCH_NAME>|$MOM6_BRANCH_NAME|g" \
-e "s|<OBGC_BRANCH_NAME>|$OBGC_BRANCH_NAME|g" \
-e "s/<CURRENT_DATE>/$CURRENT_DATE/g" \
-e "s/<ACCOUNT>/$ACCOUNT/g" \
> ocean_ice_cobalt_experiments.xml


Expand Down
2 changes: 1 addition & 1 deletion ci/ocean_ice_cobalt_experiments.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ frecheck -I NWA12_COBALT_V1_1x0m2d_1646x1o,ocean_ice_cobalt_experiments.xml -x
<property name="OBGC_BRANCH_NAME" value="<OBGC_BRANCH_NAME>"/> <!-- git branch for OBGC source code -->

<!-- Please make sure to change "YOURGROUPLETTER" to your group, such as b, f, g, m, o... -->
<property name="NCRC_GROUP" value="cefi"/><!-- Replace YOURGROUPLETTER with GFDL group letter -->
<property name="NCRC_GROUP" value="<ACCOUNT>"/><!-- Replace YOURGROUPLETTER with GFDL group letter -->
<!--Production run properties. Users can modify these according to their need and/or performance analysis-->
<property name="PROD_SIMTIME" value="1"/>

Expand Down
Loading