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

Add support for half-degree CAM runs in CESM #2467

Closed
billsacks opened this issue Apr 12, 2018 · 20 comments
Closed

Add support for half-degree CAM runs in CESM #2467

billsacks opened this issue Apr 12, 2018 · 20 comments
Assignees
Labels
Responsibility: CESM Responsibility to manage and accomplish this issue is through CESM tp: config ty: enhancement
Milestone

Comments

@billsacks
Copy link
Member

@tilmes says that the atmospheric chemistry group would really like to have out-of-the-box support for half-degree CAM runs for CESM2. I'm not sure if they need support for fully-coupled or just F compsets. They have the mapping files they need, but these are currently being set in some way other than the standard config_grids.xml mechanism. I'm opening this issue on her behalf, to get these moved into config_grids.

@billsacks billsacks added ty: enhancement Responsibility: CESM Responsibility to manage and accomplish this issue is through CESM tp: config labels Apr 12, 2018
@billsacks billsacks added this to the CESM2 milestone Apr 12, 2018
@gold2718
Copy link

I would love to know what is really expected here. This issue is appropriate for the grid alias and mapping files but without initial datasets and possibly land surface data sets, it is not going to do much. Also, the mapping files need to be added to the appropriate places in the inputdata repo.
@tilmes, can you communicate what cases need to run with the CAM group via email?

@tilmes
Copy link

tilmes commented Apr 12, 2018

We only need F-cases to work. We do have initial datasets and land surface datasets available. The mapping files are in /glade/p/cesmdata/cseg/inputdata/cpl/gridmaps/fv0.47x0.63. This is a request for the CAMchem group. We want in particular this compset to work FCSD --res f05_g16. Thanks.

@mvertens
Copy link
Contributor

@fvitt - can you please take this issue on and have it done before the code freeze?

@fvitt
Copy link
Contributor

fvitt commented May 2, 2018

I will work with Simone on this when I find some time. I will need to figure out how to specify the correct mapping files out of the box for the 1/2 degree resolution. If someone (Bill?) can give me some pointers on how to do this that would be helpful.

@billsacks
Copy link
Member Author

@fvitt the mapping files need to be specified in cime/config/cesm/config_grids.xml

@mvertens
Copy link
Contributor

mvertens commented May 3, 2018 via email

@fvitt
Copy link
Contributor

fvitt commented May 4, 2018

In the case I tried I only had an issue with the clm surface file.
By removing the crop option the case was able to run using:
surfdata_0.47x0.63_16pfts_Irrig_CMIP6_simyr1850_c170919.nc

@jedwards4b
Copy link
Contributor

Is it an acceptable solution then to define a new compset for this without CROP enabled?

@fvitt
Copy link
Contributor

fvitt commented May 4, 2018 via email

@ekluzek
Copy link
Contributor

ekluzek commented May 4, 2018

That part of this requires a CTSM update. Which corresponds to this issue...

ESCOMP/CTSM#364

@fvitt
Copy link
Contributor

fvitt commented May 17, 2018

For the f05_f05_mg17 grid the *_DOMAIN_FILE vars are set to "UNSET" which seems to be a problem. Where are these set?

@mvertens
Copy link
Contributor

mvertens commented May 17, 2018 via email

@fvitt
Copy link
Contributor

fvitt commented May 17, 2018

I am learning how to.
$ gen_domain -m
-o
-l

What do I use for ?
Is g17 ?
Is 0.47x0.63 ?

@ekluzek
Copy link
Contributor

ekluzek commented May 17, 2018

@fvitt Yes, exactly.

@fvitt
Copy link
Contributor

fvitt commented May 17, 2018 via email

@mvertens
Copy link
Contributor

@ekluzek - can you please help Francis with this - I am in meetings all afternoon.

@ekluzek
Copy link
Contributor

ekluzek commented May 17, 2018

@fvitt we need to make the mapping file first. I've looked for it in the usual possible places, and can't find it.

@mnlevy1981 you've made mapping files in the past. Could you make this one? Or if not I know there's been issues with mapping in cime, what version of cime should I use to create the mapping file?

@mnlevy1981
Copy link
Contributor

Catching up on the ticket, it seems like made f05_g16 maps but you still need f05_g17 maps as well as the domain files? Starting from that point, in a cheyenne checkout of the latest CIME master:

  1. Create all the maps
cd tools/mapping/gen_mapping_files/
./gen_cesm_maps.sh -fatm [location of fv0.47x0.63 SCRIP grid file] -natm 0.47x0.63 -focn /glade/p/cesmdata/cseg/mapping/grids/gx1v7_151008.nc -nocn gx1v7 --serial

One the login node of cheyenne, this should load all the modules you need and run the ESMF tools. I tested the script by making f09_g37 maps, and CISL did not kill the process... if mapping between the finer grids uses too much CPU, you can run qinteractive and then drop --serial from the argument list and build the maps (in parallel) on a compute node.

  1. Copy these files into the proper subdirectories of /glade/p/cesmdata/cseg/inputdata/cpl/gridmaps/ (atm -> ocn maps in fv0.47x0.63/ and ocn -> atm maps in gx1v7/)

  2. Create the domain files

$ cd $CIMEROOT/tools/mapping/gen_domain_files
[follow instructions in INSTALL to build executable]
$ ./gen_domain -m [conservative map from gx1v7 -> fv0.5 that you just made] -l fv0.47x0.63 -o gx1v7 [-fv pole option?]

Regarding [-fv pole option?] -- I think you want to run with -p 2 to apply the north-pole fix on the finite volume grid, but look at the README and make sure that's really the case.

Let me know if anything goes awry, or if you need more help with anything.

@ekluzek
Copy link
Contributor

ekluzek commented May 17, 2018

@fvitt you should use the pole fix "-p 2" option to "gen_domain. the latest fv05 file was made by @mnlevy1981 and is here...

/glade/p/cesmdata/cseg/mapping/grids/fv0.47x0.63_141008.nc

I think that gives you everything you need to do this now. Try it and let us know what breaks...

@ekluzek
Copy link
Contributor

ekluzek commented Oct 17, 2018

This was already put in place and is working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Responsibility: CESM Responsibility to manage and accomplish this issue is through CESM tp: config ty: enhancement
Projects
None yet
Development

No branches or pull requests

9 participants