Skip to content

Zero bottom drag values in hurricane cases #648

Open

Description

@sbrus89

In init mode, the manning's n coefficients are specified based on depth thresholds. In the code that assigns these values, the endpoints of the thresholds are not included. This allows the bottom drag values for some cells to go unassigned.

Activity

  1. self-assigned this
    on Aug 7, 2020
  2. sbrus89 commented on Aug 7, 2020

    @sbrus89
    Author

    ! Set depth-variable drag
    if (config_use_variable_drag) then
    call mpas_pool_get_array(forcingPool, 'bottomDrag', bottomDrag)
    do iCell = 1, nCellsSolve
    if (bottomDepth(iCell) < config_hurricane_land_z_limit) then
    bottomDrag(iCell) = config_hurricane_land_drag
    else if (config_hurricane_land_z_limit < bottomDepth(iCell) .and. bottomDepth(iCell) < config_hurricane_marsh_z_limit) then
    bottomDrag(iCell) = config_hurricane_marsh_drag
    else if (config_hurricane_marsh_z_limit < bottomDepth(iCell)) then
    bottomDrag(iCell) = config_hurricane_channel_drag
    else
    call mpas_log_write('Default value for drag is not selected' &
    // ' properly for bottomDepth of $r in cell $i!', &
    realArgs=(/bottomDepth(iCell)/), intArgs=(/iCell/))
    end if
    end do
    end if

  3. sbrus89 commented on Aug 7, 2020

    @sbrus89
    Author

    zero_bottomDrag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions