Skip to content
Snippets Groups Projects
Commit 0089e97e authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 06/12/2023: PHYEX: lima: correct condition to call BUDGET_STORE_END_PHY for budget RR:SEDI

(cherry picked from commit 461e264e)
parent 2ed28f65
No related branches found
No related tags found
No related merge requests found
......@@ -690,20 +690,20 @@ ZTHS(:,:,:) = ZT(:,:,:) / ZEXN(:,:,:) * ZINV_TSTEP
! Call budgets
!
if ( BUCONF%lbu_enable ) then
if ( BUCONF%lbudget_th ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_TH), 'SEDI', zths(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rc .and. nmom_c.ge.1 .and. lsedc ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RC), 'SEDI', zrcs(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rr .and. nmom_r.ge.2 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RR), 'SEDI', zrrs(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_ri .and. nmom_i.ge.1 .and. lsedi ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RI), 'SEDI', zris(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rs .and. nmom_s.ge.1 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RS), 'SEDI', zrss(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rg .and. nmom_g.ge.1 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RG), 'SEDI', zrgs(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rh .and. nmom_h.ge.1 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RH), 'SEDI', zrhs(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_th ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_TH), 'SEDI', zths(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rc .and. nmom_c.ge.1 .and. lsedc ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RC), 'SEDI', zrcs(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rr .and. nmom_r.ge.1 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RR), 'SEDI', zrrs(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_ri .and. nmom_i.ge.1 .and. lsedi ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RI), 'SEDI', zris(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rs .and. nmom_s.ge.1 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RS), 'SEDI', zrss(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rg .and. nmom_g.ge.1 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RG), 'SEDI', zrgs(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_rh .and. nmom_h.ge.1 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_RH), 'SEDI', zrhs(:, :, :) * prhodj(:, :, :) )
if ( BUCONF%lbudget_sv ) then
if ( lsedc .and. nmom_c.ge.2 ) &
call BUDGET_STORE_END_PHY(D, TBUDGETS(NBUDGET_SV1 - 1 + nsv_lima_nc), 'SEDI', zccs(:, :, :) * prhodj(:, :, :) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment