fs_divide Function

public function fs_divide(p1, real_scalar) result(p3)

Defines how to divide EMFields types by a scalar

Arguments

Type IntentOptional AttributesName
type(EMFields), intent(in) :: p1
real(kind=Float64), intent(in) :: real_scalar

Return Value type(EMFields)


Called by

proc~~fs_divide~~CalledByGraph proc~fs_divide fs_divide interface~operator(SLASH) operator(/) interface~operator(SLASH)->proc~fs_divide

Contents

Source Code


Source Code

function fs_divide(p1, real_scalar) result (p3)
    !+ Defines how to divide [[EMFields]] types by a scalar
    type(EMFields), intent(in) :: p1
    real(Float64), intent(in)  :: real_scalar
    type(EMFields)             :: p3

    p3 = p1*(1.d0/real_scalar)

end function fs_divide