read_slice Program

example of Fortran reading smaller array into slice of larger array via subroutine

should print -1 -1 -1 -1 -1 -1 1 2 -1 -1 3 4 -1 -1 -1 -1


Calls

program~~read_slice~~CallsGraph program~read_slice read_slice proc~getter getter program~read_slice->proc~getter

Contents


Variables

Type AttributesNameInitial
integer :: i
integer :: bigA(4,4)
type(T) :: B

Derived Types

type :: T

Components

TypeVisibility AttributesNameInitial
integer, public :: i44(4,4)

Subroutines

subroutine getter(A)

Arguments

Type IntentOptional AttributesName
integer, intent(out) :: A(2,2)