Skip to content

Fixes for 'umaskCD and more'#39

Closed
eclare108213 wants to merge 8 commits into
apcraig:cgridDEVfrom
eclare108213:umaskCD
Closed

Fixes for 'umaskCD and more'#39
eclare108213 wants to merge 8 commits into
apcraig:cgridDEVfrom
eclare108213:umaskCD

Conversation

@eclare108213
Copy link
Copy Markdown
Collaborator

  • Short (1 sentence) summary of your PR:
    Draft fixes for @TillRasmussen 's PR
  • Developer(s):
    @TillRasmussen
  • Suggest PR reviewers from list in the column to the right.
  • Please copy the PR test results link or provide a summary of testing completed below.
    ENTER INFORMATION HERE
  • How much do the PR code changes differ from the unmodified code?
    • bit for bit
    • different at roundoff level
    • more substantial
  • Does this PR create or have dependencies on Icepack or any other models?
    • Yes
    • No
  • Does this PR add any new test cases?
    • Yes
    • No
  • Is the documentation being updated? ("Documentation" includes information on the wiki or in the .rst files from doc/source/, which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/. A test build of the technical docs will be performed as part of the PR testing.)
    • Yes
    • No, does the documentation need to be updated at a later time?
      • Yes
      • No
  • Please provide any additional information or relevant details below:

TillRasmussen and others added 8 commits November 19, 2021 20:38
…ransport files are changed in a way so that velocities are interpolated to b grid for depature point function and kept at E or N grid possible.
…ransport files are changed in a way so that velocities are interpolated to b grid for depature point function and kept at E or N grid possible.
Added function to fint zeta, eta and replacement pressure at U
Copy link
Copy Markdown
Collaborator Author

@eclare108213 eclare108213 left a comment

Choose a reason for hiding this comment

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

just adding a few comments on things I noticed

nmassdti (:,:,iblk), fcorN_blk (:,:,iblk), &
nmask (:,:,iblk), &
nmassdti (:,:,iblk), fcorN_blk (:,:,iblk),&
nmask (:,:,iblk), nmask (:,:,iblk), &
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

maybe the second mask in this line could be made into an optional variable

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think that I can eliminate the second mask and differentiate the two mask in the call as it is done for dyn_prep2 on E and N grid

tmpcalcse = strength/(Deltase + tinyarea)
endif
tmpcalcne = capping*(strength/max(Deltane, tinyarea))+ &
(1-capping)*strength/(Deltane + tinyarea)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

need to use c1 instead of 1



real (kind=dbl_kind), intent(in):: &
zetax2T_00,zetax2T_10,zetax2T_11,zetax2T_01, &
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

At some point, add comments at the end of each line to identify the variables (with units).

call viscous_coeffs_and_rep_pressure_T2U (zetax2T(i ,j ), zetax2T(i ,j+1), &
zetax2T(i+1,j+1), zetax2T(i+1,j ), &
etax2T (i ,j ), etax2T (i ,j+1), &
etax2T (i+1,j+1), etax2T (i+1,j ), &
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is an example how I prefer to align code by each element (parentheses, i's, j's, commas, &'s). The last line of this argument list still needs to be aligned.

@eclare108213 eclare108213 mentioned this pull request Nov 20, 2021
16 tasks
@apcraig apcraig closed this Nov 22, 2021
@apcraig
Copy link
Copy Markdown
Owner

apcraig commented Nov 22, 2021

Closed. This PR was merged into #33.

@eclare108213 eclare108213 deleted the umaskCD branch December 4, 2025 13:16
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.

3 participants