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

gravit not defined in ice_dyn_shared? #159

Closed
JFLemieux73 opened this issue Jul 4, 2018 · 5 comments
Closed

gravit not defined in ice_dyn_shared? #159

JFLemieux73 opened this issue Jul 4, 2018 · 5 comments
Assignees
Labels

Comments

@JFLemieux73
Copy link
Contributor

JFLemieux73 commented Jul 4, 2018

In ice_dyn_shared we have:

#ifndef coupled
! calculate tilt from geostrophic currents if needed
strtltx(i,j) = -fm(i,j)*vocn(i,j)
strtlty(i,j) = fm(i,j)uocn(i,j)
#else
strtltx(i,j) = -gravit
umass(i,j)ss_tltx(i,j)
strtlty(i,j) = -gravit
umass(i,j)*ss_tlty(i,j)
#endif

I run CICE6 non-coupled so my code compiles and works fine. However, I have the impression it would not work in coupled mode because gravit is not defined.

Do we need a 'call icepack_query_parameters'?

@eclare108213
Copy link
Contributor

@apcraig, would you check this in the version of RASM that includes CICE v6, please? Maybe you already fixed it.

@apcraig
Copy link
Contributor

apcraig commented Aug 15, 2018

It looks like neither RASM nor CESM set the "coupled" cpp. They both use the CESMCOUPLED cpp. The coupled cpp is used in limited places in CICE5 and CICE6. We should review that cpp and decide whether it should be removed, changed, or otherwise. The cpp appears in

cicecore/cicedynB/infrastructure/comm/serial/ice_communicate.F90
cicecore/cicedynB/dynamics/ice_dyn_shared.F90
cicecore/cicedynB/general/ice_init.F90
cicecore/drivers/cesm/*/*.F90

@dabail10
Copy link
Contributor

Actually, we do define "coupled" in the CESM build and use both CESMCOUPLED and coupled. We do the following in ice_init.F90:

#ifdef CESMCOUPLED
#define coupled
#endif

We need both for various pieces of code. I agree that we do need to add the parameter gravit for the coupled case. I will do this.

Dave

@dabail10
Copy link
Contributor

This is addressed in PR #182.

@dabail10 dabail10 reopened this Sep 11, 2018
This was referenced Sep 24, 2018
@dabail10
Copy link
Contributor

Resolved in PR #191.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants