Open hkershaw-brown opened 1 year ago
From @johnsonbk
Hi team,
I fixed the POP SourceMods for CESM2.2.0. They are here:
https://www.image.ucar.edu/pub/DART/CESM/DART_SourceMods_cesm2_2_0_2023-05-23.tar
It appears that there's a metadata change in the datm.streams files between CESM2.1 and CESM2.2. In the earlier version, the datm.streams files were XML like files.
In the later version they have an explicit XML version tag and open and close file tags.
To see the difference, I built cases from CESM2.1.1 and CESM2.2.0:
# Build the CESM2.1.1 case
cd /glade/work/johnsonb/cesm2_2_0/cime/scripts/
./create_newcase --case /glade/work/johnsonb/cases/GNYF.cesm2_2_0.f09_g17_e1 --mach cheyenne --res f09_g17 --compset G --run-unsupported --project $DARES_PROJECT
cd /glade/work/johnsonb/cases/GNYF.cesm2_2_0.f09_g17_e1
./case.setup
./preview_namelists
# Build the CESM2.2.0 case
cd /glade/work/johnsonb/cesm2_1_1/cime/scripts
./create_newcase --case /glade/work/johnsonb/cases/GNYF.cesm2_1_1.f09_g17_e1 --mach cheyenne --res f09_g17 --compset G --run-unsupported --project $DARES_PROJECT
cd /glade/work/johnsonb/cases/GNYF.cesm2_1_1.f09_g17_e1
./case.setup
./preview_namelists
# Check the differences between the datm.streams files
cd /glade/work/johnsonb/cases/GNYF.cesm2_1_1.f09_g17_e1/CaseDocs
diff /glade/work/johnsonb/cases/GNYF.cesm2_2_0.f09_g17_e1/CaseDocs/datm.streams.txt.CORE2_NYF.GISS ./datm.streams.txt.CORE2_NYF.GISS
1,2c1
< <?xml version="1.0"?>
< <file id="stream" version="1.0">
---
>
37d35
< </file>
This <?xml version="1.0"?>...<file id="stream" version="1.0">...</file> pattern is the same for all of the datm.streams files.
To fix it, I copied my /glade/work/johnsonb/git/DART/models/POP/shell_scripts/cesm2_1 to /glade/work/johnsonb/git/DART/models/POP/shell_scripts/cesm2_2 and then augmented the four datm streams files.
You can just copy this cesm2_2 directory to your DART install and it should work.
To test it, I compiled a 3 member POP ensemble, compiled it and ran two CESM jobs: one without DA and one with DA.
Hope this helps,
Ben
WOD converter units #509
GDEX for initial ensemble files - copy_POP_JRA_restarts.py
Reported by user:
Describe the bug
script erros out when a SourceMods directory is not found in the Users home directory https://github.com/NCAR/DART/blob/72e5740b71ef6c7cde4c6f946e2c1df2019365fb/models/POP/shell_scripts/cesm2_1/setup_CESM_perfect_model.csh#L346-L361
There is a CESM2.2.0 directory on https://www.image.ucar.edu/pub/DART/CESM/ but the src.pop2 directory is empty.
Dan has a src.pop in ~/cesm2_1_1/SourceMods/src.pop/
Edit: there is no discussion of SourceMods in https://docs.dart.ucar.edu/en/latest/models/POP/readme.html#cesm-pop2
Error Message
Please provide any error messages. Reported by user
Which model(s) are you working with?
POP
Version of DART
Which version of DART are you using? v10.7.2
Have you modified the DART code?
No
Build information
Please describe: