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

Add face_sw_direct_flux_dn only for AllSkyRadiationWithClearSkyDiagnostics #3339

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 25, 2024

  1. Add face_sw_direct_flux_dn only for AllSkyRadiationWithClearSkyDiagno…

    …stics
    
    `face_sw_direct_flux_dn` is used only in
    `AllSkyRadiationWithClearSkyDiagnostics` in this block:
    ```
    NVTX.@Annotate function update_sw_fluxes!(
        ::AllSkyRadiationWithClearSkyDiagnostics,
        model,
    )
        RRTMGP.RTESolver.solve_sw!(
            model.sw_solver,
            model.as,
            model.lookups.lookup_sw,
            nothing,
            model.lookups.lookup_sw_aero,
        )
        parent(model.face_clear_sw_flux_up) .= parent(model.face_sw_flux_up)
        parent(model.face_clear_sw_flux_dn) .= parent(model.face_sw_flux_dn)
        parent(model.face_clear_sw_direct_flux_dn) .=
            parent(model.face_sw_direct_flux_dn)
        parent(model.face_clear_sw_flux) .= parent(model.face_sw_flux)
        RRTMGP.RTESolver.solve_sw!(
            model.sw_solver,
            model.as,
            model.lookups.lookup_sw,
            model.lookups.lookup_sw_cld,
            model.lookups.lookup_sw_aero,
        )
    end
    ```
    
    It is not used by other modes, so I don't add it
    Sbozzolo committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    366b2c0 View commit details
    Browse the repository at this point in the history