array_operations_allocate_submod Submodule

a submodule for allocate subroutines


Uses

  • module~~array_operations_allocate_submod~~UsesGraph module~array_operations_allocate_submod array_operations_allocate_submod module~array_operations_mod array_operations_mod module~array_operations_allocate_submod->module~array_operations_mod iso_fortran_env iso_fortran_env module~array_operations_mod->iso_fortran_env

Contents


Module Subroutines

pure module subroutine allocate_1d_dp(array_, size_)

allocate a 1d array and fill it with 0s (double precision version)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout), allocatable :: array_(:)
integer(kind=int32), intent(in) :: size_

pure module subroutine allocate_1d_int32(array_, size_)

allocate a 1d array and fill it with 0s (intger version)

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(inout), allocatable :: array_(:)
integer(kind=int32), intent(in) :: size_

pure module subroutine allocate_1d_sp(array_, size_)

allocate a 1d array and fill it with 0s (single precision version)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(inout), allocatable :: array_(:)
integer(kind=int32), intent(in) :: size_

pure module subroutine allocate_2d_dp(array_, size1_, size2_)

allocate a 2d array and fill it with 0s (double precision version)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout), allocatable :: array_(:,:)
integer(kind=int32), intent(in) :: size1_
integer(kind=int32), intent(in) :: size2_

pure module subroutine allocate_2d_int32(array_, size1_, size2_)

allocate a 2d array and fill it with 0s (intger version)

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(inout), allocatable :: array_(:,:)
integer(kind=int32), intent(in) :: size1_
integer(kind=int32), intent(in) :: size2_

pure module subroutine allocate_2d_sp(array_, size1_, size2_)

allocate a 2d array and fill it with 0s (single precision version)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(inout), allocatable :: array_(:,:)
integer(kind=int32), intent(in) :: size1_
integer(kind=int32), intent(in) :: size2_

pure module subroutine allocate_3d_dp(array_, size1_, size2_, size3_)

allocate a 3d array and fill it with 0s (double precision version)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout), allocatable :: array_(:,:,:)
integer(kind=int32), intent(in) :: size1_
integer(kind=int32), intent(in) :: size2_
integer(kind=int32), intent(in) :: size3_

pure module subroutine allocate_3d_int32(array_, size1_, size2_, size3_)

allocate a 3d array and fill it with 0s (intger version)

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(inout), allocatable :: array_(:,:,:)
integer(kind=int32), intent(in) :: size1_
integer(kind=int32), intent(in) :: size2_
integer(kind=int32), intent(in) :: size3_

pure module subroutine allocate_3d_sp(array_, size1_, size2_, size3_)

allocate a 3d array and fill it with 0s (single precision version)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(inout), allocatable :: array_(:,:,:)
integer(kind=int32), intent(in) :: size1_
integer(kind=int32), intent(in) :: size2_
integer(kind=int32), intent(in) :: size3_