Skip to content

Commit

Permalink
Merge pull request NOAA-EMC#83 from NOAA-GFDL/master
Browse files Browse the repository at this point in the history
rebase dev/emc with master updates
  • Loading branch information
bensonr authored Mar 24, 2021
2 parents 20b3da4 + 487104e commit b144fc2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Description**

Include a summary of the change and which issue is fixed. Please also include
relevant motivation and context. List any dependencies that are required for
this change.

Fixes # (issue)

**How Has This Been Tested?**

Please describe the tests that you ran to verify your changes. Please also note
any relevant details for your test configuration (e.g. compiler, OS). Include
enough information so someone can reproduce your tests.

**Checklist:**

Please check all whether they apply or not
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] Any dependent changes have been merged and published in downstream modules
6 changes: 6 additions & 0 deletions tools/coarse_graining.F90
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ subroutine compute_nx_coarse(npx, coarsening_factor, nx_coarse)
integer :: nx

nx = npx - 1

if (coarsening_factor < 1) then
write(error_message, *) 'Invalid coarsening_factor chosen'
call mpp_error(FATAL, error_message)
endif

if (mod(nx, coarsening_factor) > 0) then
write(error_message, *) 'coarse_graining_init: coarsening_factor does not evenly divide the native resolution.'
call mpp_error(FATAL, error_message)
Expand Down

0 comments on commit b144fc2

Please sign in to comment.