Skip to content

Doxygenize hor_visc_CS + refactor of horizontal_viscosity()#795

Merged
Hallberg-NOAA merged 2 commits into
mom-ocean:dev/gfdlfrom
adcroft:hor-visc-refactor
Jun 21, 2018
Merged

Doxygenize hor_visc_CS + refactor of horizontal_viscosity()#795
Hallberg-NOAA merged 2 commits into
mom-ocean:dev/gfdlfrom
adcroft:hor-visc-refactor

Conversation

@adcroft
Copy link
Copy Markdown
Collaborator

@adcroft adcroft commented Jun 17, 2018

Two commits:

  • Doxygenized the hor_visc_CS type
  • Re-factored in order to reduce computations (7f6285e)
    • No answer changes

adcroft added 2 commits June 16, 2018 18:14
- Moved setting of (constant) mod_Leith to outside of loops
- Moved calculation of div_xx to after calculation of h_u,h_v
- Used h_u,h_v in div_xx (avoids repeated computations)
- Put calculation of div_xx, vort_xy into a conditional block
- Aligned comments with code
@Hallberg-NOAA
Copy link
Copy Markdown
Collaborator

This PR looks reasonable upon visual inspection.

It is being evaluated with https://gitlab.gfdl.noaa.gov/ogrp/MOM6/pipelines/4677.

@Hallberg-NOAA Hallberg-NOAA merged commit 4049434 into mom-ocean:dev/gfdl Jun 21, 2018
@adcroft adcroft deleted the hor-visc-refactor branch June 25, 2018 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants