-
Notifications
You must be signed in to change notification settings - Fork 15
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
Update FV3-JEDI ctest case to match MPAS-JEDI case #238
Open
SamuelDegelia-NOAA
wants to merge
17
commits into
NOAA-EMC:develop
Choose a base branch
from
SamuelDegelia-NOAA:feature/update_fv3_case
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11,434
−1,153
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2ba7713
Link in new case and set up expr, fix directories
SamuelDegelia-NOAA ac4f238
First update to yamls for new fv3 case
SamuelDegelia-NOAA 03a7598
Fix linking script for new yaml files
SamuelDegelia-NOAA 85cd906
Update yamls for new fix files and layout
SamuelDegelia-NOAA efbfbc7
Remove exit statement from build.sh
SamuelDegelia-NOAA 1a51f46
Update yamls for bumploc changes, some renaming
SamuelDegelia-NOAA 47d4bc4
Remove hyb yaml (no static B yet) and update letkf yaml
SamuelDegelia-NOAA 9b41a20
Remove hyb ctest and change to 3denvar
SamuelDegelia-NOAA e00988c
Update test reference
SamuelDegelia-NOAA f5577f3
Change output from hybens to ens for 3denvar
SamuelDegelia-NOAA 857b4b7
Copy in testoutput for fv3jedi expr dir
SamuelDegelia-NOAA 1cad481
Merge branch 'NOAA-EMC:develop' into feature/update_fv3_case
SamuelDegelia-NOAA 8dfe389
Add back old test data
SamuelDegelia-NOAA 40592c2
Add tools for running GSI validation for new case
SamuelDegelia-NOAA 385466a
Update to use more obs and GETKF for ctest
SamuelDegelia-NOAA 35a03b6
Remove old files
SamuelDegelia-NOAA 5774f91
Update cmake logic for hercules too
SamuelDegelia-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../expr/fv3_2024052700 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.agent/expr_data/fv3_2024052700/Data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.agent/expr_data/fv3_2024052700/DataFix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.agent/expr_data/fv3_2024052700/Data_static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.agent/expr_data/fv3_2024052700/INPUT |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
RDASApp=$( git rev-parse --show-toplevel 2>/dev/null ) | ||
if [[ -z ${RDASApp} ]]; then | ||
echo "Not under a clone of RDASApp!" | ||
echo "Please delete line 2-7 and set RDASApp variable mannually" | ||
exit | ||
fi | ||
|
||
#RDASApp="/path/to/RDASApp" # set this variable if line2-7 was removed | ||
BUMPLOC="conus12km-401km11levels" | ||
exprname="fv3_2024052700" | ||
expdir=${RDASApp}/expr/${exprname} # can be set to any directory | ||
mkdir -p ${expdir} | ||
cd ${expdir} | ||
echo "expdir is at: ${expdir}" | ||
|
||
${RDASApp}/ush/init.sh | ||
cp -r ${RDASApp}/rrfs-test/testoutput ./testoutput | ||
cp ${RDASApp}/rrfs-test/testinput/rrfs_fv3jedi_2024052700_Ens3Dvar.yaml . | ||
cp ${RDASApp}/rrfs-test/testinput/rrfs_fv3jedi_2024052700_getkf_observer.yaml . | ||
cp ${RDASApp}/rrfs-test/testinput/rrfs_fv3jedi_2024052700_getkf_solver.yaml . | ||
cp ${RDASApp}/rrfs-test/testinput/rrfs_fv3jedi_2024052700_bumploc.yaml ./bumploc.yaml | ||
sed -e "s#@RDASApp@#${RDASApp}#" ${RDASApp}/rrfs-test/scripts/templates/fv3jedi_expr/run_bump.sh > run_bump.sh | ||
sed -e "s#@RDASApp@#${RDASApp}#" ${RDASApp}/rrfs-test/scripts/templates/fv3jedi_expr/run_jedi.sh > run_jedi.sh | ||
cp ${RDASApp}/rrfs-test/ush/colormap.py . | ||
cp ${RDASApp}/rrfs-test/ush/fv3jedi_increment_singleob.py . | ||
cp ${RDASApp}/rrfs-test/ush/fv3jedi_increment_fulldom.py . | ||
ln -snf ${RDASApp}/fix/expr_data/${exprname}/Data Data | ||
ln -snf ${RDASApp}/fix/expr_data/${exprname}/DataFix DataFix | ||
ln -snf ${RDASApp}/fix/expr_data/${exprname}/Data_static Data_static | ||
ln -snf ${RDASApp}/fix/expr_data/${exprname}/INPUT INPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/bin/bash | ||
|
||
# This script is used to set up a GSI experiment using the FV3-LAM test data in RDASApp | ||
# This is useful for running parallel GSI experiments against FV3-JEDI | ||
# GSI fix files and namelists follow the configurations from RRFSv1 | ||
# There are two options for YOUR_GSI_CASE right now: | ||
# 2024052700 (matches MPAS-JEDI case) | ||
# 2022052619 | ||
|
||
###### USER INPUT ##### | ||
SLURM_ACCOUNT="fv3-cam" | ||
#YOUR_EXPERIMENT_DIR="/path/to/your/desired/experiment/directory/jedi-assim_test" | ||
YOUR_EXPERIMENT_DIR="/scratch1/BMC/zrtrr/Samuel.Degelia/GSI_parallel" | ||
#YOUR_PATH_TO_GSI="/path/to/your/installation/of/GSI" | ||
YOUR_PATH_TO_GSI="/scratch1/BMC/zrtrr/Samuel.Degelia/GSI" | ||
YOUR_GSI_CASE="2024052700" | ||
####################### | ||
|
||
START=$(date +%s) | ||
RDASApp=$( git rev-parse --show-toplevel 2>/dev/null ) | ||
source $RDASApp/ush/detect_machine.sh | ||
|
||
# At the moment these are the only test data that exists. | ||
if [[ $YOUR_GSI_CASE == "2022052619" ]]; then | ||
TEST_DATA="rrfs-data_fv3jedi_2022052619" | ||
elif [[ $YOUR_GSI_CASE == "2024052700" ]]; then | ||
TEST_DATA="rrfs-data_fv3jedi_2024052700" | ||
else | ||
echo "Not a valid GSI case: ${YOUR_GSI_CASE}." | ||
echo "exiting!!!" | ||
exit 2 | ||
fi | ||
|
||
# Print current settings to the screen. | ||
echo "Your current settings are:" | ||
echo -e "\tYOUR_EXPERIMENT_DIR=$YOUR_EXPERIMENT_DIR" | ||
echo -e "\tSLURM_ACCOUNT=$SLURM_ACCOUNT" | ||
echo -e "\tYOUR_PATH_TO_GSI=$YOUR_PATH_TO_GSI" | ||
|
||
# Get current machine so we can find GSI fix data | ||
case ${MACHINE_ID} in | ||
hera) | ||
RDAS_DATA=/scratch1/NCEPDEV/fv3-cam/RDAS_DATA | ||
;; | ||
jet) | ||
RDAS_DATA=/lfs4/BMC/nrtrr/RDAS_DATA | ||
;; | ||
orion|hercules) | ||
RDAS_DATA=/work/noaa/rtrr/RDAS_DATA | ||
;; | ||
*) | ||
echo "platform not supported: ${MACHINE_ID}" | ||
exit 3 | ||
;; | ||
esac | ||
|
||
# Ensure experiment directory exists, then move into that space. | ||
mkdir -p $YOUR_EXPERIMENT_DIR | ||
cd $YOUR_EXPERIMENT_DIR | ||
|
||
# Copy GSI data | ||
rsync -a ${RDAS_DATA}/gsi_${YOUR_GSI_CASE}/* . | ||
|
||
# Copy run scripts and plotting scripts | ||
cp -p $RDASApp/rrfs-test/scripts/templates/run_gsi_template.sh run_gsi.sh | ||
sed -i "s#@YOUR_PATH_TO_GSI@#${YOUR_PATH_TO_GSI}#g" ./run_gsi.sh | ||
sed -i "s#@SLURM_ACCOUNT@#${SLURM_ACCOUNT}#g" ./run_gsi.sh | ||
sed -i "s#@MACHINE_ID@#${MACHINE_ID}#g" ./run_gsi.sh | ||
sed -i "s#@ANAL_TIME@#${YOUR_GSI_CASE}#g" ./run_gsi.sh | ||
cp -p $RDASApp/rrfs-test/ush/fv3gsi_increment_fulldom.py . | ||
|
||
echo "done." | ||
END=$(date +%s) | ||
DIFF=$((END - START)) | ||
echo "Time taken to run the code: $DIFF seconds" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
#SBATCH --account=rtrr | ||
#SBATCH --qos=batch # use the normal queue on Gaea | ||
###SBATCH -M c6 # for Gaea | ||
###SBATCH --partition=bigmem | ||
###SBATCH --partition=kjet | ||
###SBATCH --reservation=rrfsens | ||
#SBATCH --ntasks=160 | ||
#SBATCH -t 00:58:00 | ||
#SBATCH --job-name=fv3jedi_bump | ||
#SBATCH -o log.bump | ||
#SBATCH --open-mode=truncate | ||
#SBATCH --cpus-per-task 4 --exclusive | ||
|
||
RDASApp=@RDASApp@ | ||
|
||
if [[ -s /apps/lmod/lmod/init/sh ]]; then | ||
. /apps/lmod/lmod/init/sh | ||
fi | ||
|
||
module purge | ||
source ${RDASApp}/ush/detect_machine.sh | ||
module use ${RDASApp}/modulefiles | ||
module load RDAS/${MACHINE_ID}.intel | ||
module list | ||
|
||
export OOPS_TRACE=1 | ||
export OMP_NUM_THREADS=1 | ||
|
||
ulimit -s unlimited | ||
ulimit -v unlimited | ||
ulimit -a | ||
|
||
srun -l -n 160 ${RDASApp}/build/bin/fv3jedi_error_covariance_toolbox.x ./bumploc.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh | ||
#SBATCH --account=rtrr | ||
#SBATCH --qos=batch # use the normal queue on Gaea | ||
###SBATCH -M c6 # for Gaea | ||
###SBATCH --partition=kjet | ||
###SBATCH --reservation=rrfsens | ||
#SBATCH --ntasks=160 | ||
#SBATCH -t 00:58:00 | ||
#SBATCH --job-name=fv3jedi_test | ||
#SBATCH -o log.jedi | ||
#SBATCH --open-mode=truncate | ||
#SBATCH --cpus-per-task 4 --exclusive | ||
|
||
RDASApp=@RDASApp@ | ||
|
||
inputfile=./rrfs_fv3jedi_2024052700_Ens3Dvar.yaml # FOR EnVar | ||
#inputfile=./rrfs_fv3jedi_2024052700_getkf_observer.yaml # FOR GETKF | ||
#inputfile=./rrfs_fv3jedi_2024052700_getkf_solver.yaml # FOR GETKF | ||
|
||
if [[ -s /apps/lmod/lmod/init/sh ]]; then | ||
. /apps/lmod/lmod/init/sh | ||
fi | ||
|
||
module purge | ||
source ${RDASApp}/ush/detect_machine.sh | ||
module use ${RDASApp}/modulefiles | ||
module load RDAS/${MACHINE_ID}.intel | ||
module list | ||
|
||
export OOPS_TRACE=1 | ||
export OMP_NUM_THREADS=1 | ||
|
||
ulimit -s unlimited | ||
ulimit -v unlimited | ||
ulimit -a | ||
|
||
srun -l -n 160 ${RDASApp}/build/bin/fv3jedi_var.x ./$inputfile log.out # FOR HYB/ENVAR | ||
#srun -l -n 160 ${RDASApp}/build/bin/fv3jedi_letkf.x ./$inputfile log.out # FOR GETKF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the picky comment, Lines 154-157 may be merged into one sed command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mean we have to modify this, but if we would like to modify it, here is a reference for running multiple sed commands in one line:
https://github.com/NOAA-EMC/rrfs-workflow/blob/62b7336628738c5d9f94a87a80aa864e15e0adc5/scripts/exrrfs_fcst.sh#L69