dpsi_side_first Module Function

pure elemental module function dpsi_side_first(self, i, j, r) result(dpsi)

Arguments

Type IntentOptional Attributes Name
class(type_side_first), intent(in) :: self
integer(kind=int32), intent(in) :: i
integer(kind=int32), intent(in) :: j
type(type_dp_vector_3d), intent(in) :: r

Return Value real(kind=real64)


Called by

proc~~dpsi_side_first~~CalledByGraph proc~dpsi_side_first dpsi_side_first interface~dpsi_side_first type_side_first%dpsi_side_first interface~dpsi_side_first->proc~dpsi_side_first

Source Code

    module pure elemental function dpsi_side_first(self, i, j, r) result(dpsi)
        implicit none
        class(type_side_first), intent(in) :: self
        type(type_dp_vector_3d), intent(in) :: r
        integer(int32), intent(in) :: i
        integer(int32), intent(in) :: j
        real(real64) :: dpsi

        select case (j)
        case (1)
            select case (i)
            case (1)
                dpsi = -0.5d0
            case (2)
                dpsi = 0.5d0
            case default
                dpsi = 0.0d0
            end select
        end select
    end function dpsi_side_first