ESCOMP / ESCOMP/CMEPS

Calling shr_wv_sat_init() from mediator rather than driver?

Aberta
#653 5 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Fortran
Estrelas
35
Forks
106
Merge médio
6d 12h
PRs com merge (30d)
5

Descrição

The [`shr_wv_sat_init()`](https://github.com/ESCOMP/CMEPS/blob/a0343bcb7c6016960facd6d7bb124223013446bd/cesm/driver/esm.F90#L526) call is required to to use [`shr_wv_sat_qsat_liquid()`](https://github.com/ESCOMP/CMEPS/blob/a0343bcb7c6016960facd6d7bb124223013446bd/cesm/flux_atmocn/flux_atmocn_Large.F90#L219) routine and similar ones to calculate the saturation mixing ratio from the tables but the current implementation assumes that the CMEPS flux calculation will be only used by CESM and its driver. Since we are coupling MPAS and MOM6 outside of the CESM framework (at this point) through ESMX driver, the [`shr_wv_sat_qsat_liquid()`](https://github.com/ESCOMP/CMEPS/blob/a0343bcb7c6016960facd6d7bb124223013446bd/cesm/flux_atmocn/flux_atmocn_Large.F90#L219) call returns all zero and flux calculation is messed up. As I see those codes are under driver and it makes sense but I think moving those outside of the driver code and init through the `med.F90` rather then `esm.F90` would make it more generic and it could be also used by UFS WM (I did not check their driver has this init call or not yet) and other projects like ours.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Comece comparando a chamada de shr_wv_sat_init() em cesm/driver/esm.F90 com o uso de shr_wv_sat_qsat_liquid() em cesm/flux_atmocn/flux_atmocn_Large.F90 e, em seguida, inspecione a inicialização de med.F90. Confirme que a inicialização está disponível por meio do mediador para o acoplamento ESMX e que os valores da razão de mistura de saturação não são mais zero durante o cálculo do fluxo.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
fortran
Domínio
backend
Tipo de issue
Refatoração
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
48/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.