row_columns Subroutine

subroutine row_columns(iseg, full2red, row)

The variables a row of segment iseg depends on: the epoch and state of its start node.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: iseg
integer, intent(in), dimension(:) :: full2red
type(eclipse_row), intent(inout) :: row

Called by

proc~~row_columns~~CalledByGraph proc~row_columns row_columns proc~find_rows find_rows proc~find_rows->proc~row_columns proc~eclipse_optimize eclipse_optimize proc~eclipse_optimize->proc~find_rows interface~eclipse_optimize my_solver_type%eclipse_optimize interface~eclipse_optimize->proc~eclipse_optimize proc~halo_solver_main halo_solver_main proc~halo_solver_main->interface~eclipse_optimize

Source Code

    subroutine row_columns(iseg, full2red, row)

    integer,intent(in) :: iseg
    integer,dimension(:),intent(in) :: full2red
    type(eclipse_row),intent(inout) :: row

    integer :: irev, l, js, ks, k, fc

    irev = (iseg-1)/8
    l    = iseg - 8*irev
    js   = 4*irev + start_node(l)
    ks   = 4*irev + tf_node(l)
    row%tf_with_t0 = ks == js
    row%ncol = 0
    do k = 1, 7
        fc = 7*(js-1) + k
        if (full2red(fc) > 0) then
            row%ncol = row%ncol + 1
            row%col(row%ncol)  = full2red(fc)
            row%kind(row%ncol) = k - 1
        end if
    end do

    end subroutine row_columns