Skip to content

Conversation

@pwolfram
Copy link
Contributor

This one line fix ensures that Rayleigh bottom drag is applied even if entire-water column Rayleigh drag isn't applied, e.g.,

-      if ( .not. rayleighFrictionOn ) return
+      if ( .not. (rayleighFrictionOn .or. rayleighBottomFrictionOn)) return

cc @sbrus89- thanks for the fruitful discussion yesterday!

Fixes a bug that prevents Rayleigh bottom drag from
being applied if Rayleigh drag isn't being applied.
@pwolfram
Copy link
Contributor Author

@mark-petersen, given we don't need this for E3SM, I'm thinking a quick merge into ocean/coastal is ok instead of ocean/develop for now. But, it should be tagged as ocean and coastal for record-keeping.

Copy link
Contributor

@mark-petersen mark-petersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, an obvious mistake. Merge into ocean/coastal now, and I'll merge accumulations from ocean/coastal onto ocean/develop when I get a chance. Thanks.

@pwolfram pwolfram merged commit 085bf89 into MPAS-Dev:ocean/coastal Jun 19, 2019
pwolfram added a commit that referenced this pull request Jun 19, 2019
This merge allows bottom Rayleigh drag to be computed.

 * Fixes a bug that prevents Rayleigh bottom drag from
   being applied if Rayleigh drag isn't being applied.
@pwolfram
Copy link
Contributor Author

Thanks @mark-petersen!

@pwolfram pwolfram deleted the ocean/fixes_rayleigh_bottom_drag branch June 19, 2019 17:27
mark-petersen added a commit that referenced this pull request Oct 19, 2019
This PR is an accumulation of PRs into the ocean/coastal branch. We are
bringing them in at once for efficiency:
 #285, #289, #284, #295, #310, #311, #312, #335, #354, #356, #358, #359,
 #365, #371
mark-petersen added a commit that referenced this pull request Oct 19, 2019
This PR is an accumulation of PRs into the ocean/coastal branch. We are
bringing them in at once for efficiency.
 #285, #289, #284, #295, #310, #311, #312, #335, #354, #356, #358, #359,
 #365, #371
ashwathsv pushed a commit to ashwathsv/MPAS-Model that referenced this pull request Jul 21, 2020
This merge allows bottom Rayleigh drag to be computed.

 * Fixes a bug that prevents Rayleigh bottom drag from
   being applied if Rayleigh drag isn't being applied.
ashwathsv pushed a commit to ashwathsv/MPAS-Model that referenced this pull request Jul 21, 2020
mark-petersen added a commit to mark-petersen/MPAS-Model that referenced this pull request Jan 11, 2021
caozd999 pushed a commit to caozd999/MPAS-Model that referenced this pull request Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants