sourcery_array_functions_m Module

Functionally pure array utilities Because the Fortran standard requires that operator dummy arguments have the intent(in) attribute exposing only the operator and not the function names communicates more information in the public interface and in code using this interface.


Used by

  • module~~sourcery_array_functions_m~~UsedByGraph module~sourcery_array_functions_m sourcery_array_functions_m module~sourcery_array_functions_s sourcery_array_functions_s module~sourcery_array_functions_s->module~sourcery_array_functions_m

Interfaces

public interface operator(.catColumns.)

public interface operator(.catRows.)

public interface operator(.columnVectors.)

interface

  • private pure module function column_vectors(vector_field) result(array_of_3D_column_vectors)

    Result is array of 3D column vectors of dimension (space_dim,nxnynz) reshaped from vector-field argument of dimension (nx,ny,nz,space_dim)

    Arguments

    Type IntentOptional Attributes Name
    real, intent(in), dimension(:,:,:,:) :: vector_field

    Return Value real, dimension(:,:), allocatable

interface

  • private pure module function concatenate_columns(a, b) result(concatenated)

    Result contains the concatenation of the columns of argument a with the columns of argument b

    Arguments

    Type IntentOptional Attributes Name
    real, intent(in), dimension(:,:) :: a
    real, intent(in), dimension(:,:) :: b

    Return Value real, dimension(:,:), allocatable

interface

  • private pure module function concatenate_rows(a, b) result(concatenated)

    Result contains the concatenation of the rows of argument a with the rows of argument b

    Arguments

    Type IntentOptional Attributes Name
    real, intent(in), dimension(:,:) :: a
    real, intent(in), dimension(:,:) :: b

    Return Value real, dimension(:,:), allocatable