Tips when creating a new grid
When using VRM_Editor:
On mac: use 3-button scroll mouse to zoom in on map; use arrow keys to move map
On windows (via SSH terminal on Casper): scroll mouse to zoom in on map; however, arrow keys do not work for some reason.
Instead, use: Left → Insert; Right → Page Up; Up → Print Screen; Down → Page Down
Best Practices and Tips:
- Refinement regions whose boundaries are aligned with spectral element grid lines tend to behave better numerically.
- Regions that “look” good – have a uniform/symmetric appearance – tend to behave better numerically.
- Convex regions tend to behave better numerically compared to regions that have concave edges.
- In general, LOWCONN should be used instead of CUBIT.
- Always use some amount of SPRING smoothing.
- When creating a high resolution refined region (e.g., ne240) try to have each halo (successive resolutions) be several cells wide on all sides of the domain.
- When making a small refined region you might want to start with ne60 grid (instead of ne30).
- In the polygon editor of VRM Editor, the number of vertices can not be increased more than 8. When making a large refined region try using multiple polygons in VRM Editor to get edges that follow the SE grid lines.
- To smooth edges in VRM Editor, adjust lon shift and x-shift by small amounts (0.1 deg).
- If you are having trouble with a grid, e.g. it needs large sub-cycling settings, then there is likely a problem with your grid. In the long run, you are better off iterating with variations/adjustments to your grid to get better performance.
- You may want to save refinement map frequently, because the VRM editor sometimes crashes. When there is a crash, you can restart your work from the saving point.
Q1. In VRM_Editor, although I make my polygon to exactly match the guide grid lines, when I make the regional refinement map, it doesn’t follow the grid lines. What is the reason?
A1. This is because the refinement map has a resolution of 720x360 lat/lon grid in the current VRM editor. The VRM editor is using a 720x360 map to make it interactive to use. So there will be limitations on how well it can adhere to curvy lines on small scales. You don’t have to strictly force your regional refinement map to follow grid lines, instead, we recommend you try to do a 5-day test run with your best grid even if it has some distortion.
Error 1. gen_domains
../../../configure --macros-format Makefile --mpilib mpi-serial
ERROR: Invalid compiler vendor given in COMPILER environment variable: ifort
→ This error occurred when I used the default ifort version on Cheyenne as of 7-Nov-2020, I could solve the problem by changing ifort version from 19.0.5 to 18.0.5 (see “Compile CESM prerequisite programs in CESM tools” in Patrick’s PDF document (VRM_Grids_For_CAMSE.pdf))
module load intel/18.0.5
Error 2. Build Gen_ControlVolumes Program
(base) -bash-4.2$ make
→ Should set NCAR library variables again after you load gnu module “module load gnu/9.1.0”
Error 3. There is a 80 character limit in GridPath variable, although the Gen_ControlVolumes program is using 240 character for the GridPath variable. This seems to be caused by nf90_open subroutine in NetCDF library, which uses character length of 80. To solve this problem, you can simply reduce the GridPath length below 80 characters (in input_nl).
Error 4. While running gen_CLMsrfdata
gridmap_map_read) * file name : /glade/p/nsc/nacd0023/VRM_Files//ne0np4.KORUS01.ne30x8/maps_clm//map_0.25x0.25_MODIS_to_ne0np4.KORUS01.ne30x8_nomask_aave_da_c201109.nc
It might be caused by that your new grid has some defects in terms of following grid lines and distortion of the halo region. You may need to redesign your map.
Still have questions?
Visit the DiscussCESM forum (bulletin board) to search for answers related to your questions, or ask a new question:
- CAM-chem Forum (for general CAM-chem questions)
- Variable Resolution Forum (for MUSICA-specific questions - grid creation, regridding input data, etc.)