util_mod_cpts_real Module



Contents


Interfaces

public interface arr_2d_dims

  • private function arr_2d_dims_real(arr) result(dims)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=sp), intent(in) :: arr(:,:)

    Return Value integer(kind=int64), (2)

public interface arr_2d_ptr

  • private function arr_2d_ptr_real(arr) result(cptr)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=sp), intent(inout), target :: arr(:,:)

    Return Value type(c_ptr)

public interface ptr_abuse_1d

  • private subroutine ptr_abuse_1d_real(arr, ptr)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=sp), intent(in), target :: arr(:)
    integer(kind=int32), intent(inout), pointer :: ptr(:)

public interface ptr_abuse_2d

  • private subroutine ptr_abuse_2d_real(arr, ptr)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=sp), intent(in), target :: arr(:,:)
    integer(kind=int32), intent(inout), pointer :: ptr(:,:)

public interface ptr_abuse_scalar

  • private subroutine ptr_abuse_scalar_real(elem, ptr)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=sp), intent(in), target :: elem
    integer(kind=int32), intent(inout), pointer :: ptr

Functions

private function arr_2d_dims_real(arr) result(dims)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in) :: arr(:,:)

Return Value integer(kind=int64), (2)

private function arr_2d_ptr_real(arr) result(cptr)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(inout), target :: arr(:,:)

Return Value type(c_ptr)


Subroutines

private subroutine ptr_abuse_1d_real(arr, ptr)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in), target :: arr(:)
integer(kind=int32), intent(inout), pointer :: ptr(:)

private subroutine ptr_abuse_2d_real(arr, ptr)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in), target :: arr(:,:)
integer(kind=int32), intent(inout), pointer :: ptr(:,:)

private subroutine ptr_abuse_scalar_real(elem, ptr)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in), target :: elem
integer(kind=int32), intent(inout), pointer :: ptr