stencilToChild Function

private elemental function stencilToChild(stencilCoord) result(childCoord)

Convert a non-zero stencil direction {-1,1} to child coordinate {0,1}

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: stencilCoord

Return Value integer


Called by

proc~~stenciltochild~~CalledByGraph proc~stenciltochild stencilToChild proc~tem_find_bcs_fromfiner tem_find_BCs_fromFiner proc~tem_find_bcs_fromfiner->proc~stenciltochild proc~add_ghostfromfiner add_ghostFromFiner proc~add_ghostfromfiner->proc~tem_find_bcs_fromfiner proc~add_ghostfromfiner->proc~add_ghostfromfiner proc~identify_local_element identify_local_element proc~identify_local_element->proc~add_ghostfromfiner proc~single_process_element single_process_element proc~single_process_element->proc~identify_local_element proc~identify_halo identify_halo proc~identify_halo->proc~identify_local_element

Contents

Source Code


Source Code

  elemental function stencilToChild( stencilCoord ) result( childCoord)
    ! ---------------------------------------------------------------------------
    integer, intent(in) :: stencilCoord
    integer :: childCoord
    ! ---------------------------------------------------------------------------

    childCoord = (stencilCoord + 1)/2

  end function stencilToChild