Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check whether ice strength is calculated at the correct location. Move to after last subcycle? #739

Closed
Tracked by #660
eclare108213 opened this issue Jul 29, 2022 · 2 comments

Comments

@eclare108213
Copy link
Contributor

No description provided.

@TillRasmussen
Copy link
Contributor

I assume that this refers to the call to subroutine deformation when ksub == ndte?

If yes then the deformation call is used to calculate shear, divu, rdg_conv and rdg_shear. Two of these are used in icepack. The other two are only diagnostic.

The change when moving the call to after the subcycling is that these four parameters are caluclated based on the velocities calulated at ksub=ndte instead of ksub=ndte-1. I am not sure that there is a "correct" time of calculation, however if convergence is assumed this should not differ much.

The benefit is that this is only called once and the if statement from the loop is removed. This should in principle optimize the code, however I think that the mpi communication is the bottleneck.

I can do a qc test and test the difference. If this is acceptable I would move the call to after the subcycling.

@apcraig
Copy link
Contributor

apcraig commented Sep 22, 2022

I believe this is addressed in #755? I am closing now, feel free to reopen if needed.

@apcraig apcraig closed this as completed Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants