I saw this post about making a ragged array.
when I try to do that everything work until I want to access this array.
type :: vector
integer, dimension(:), allocatable :: elements
end type vector
type :: ragged_array
type(vector), dimension(:), allocatable :: vectors
end type ragged_array
type(ragged_array) :: ragarr
allocate(ragarr%vectors(1)%elements(3))
allocate(ragarr%vectors(2)%elements(4))
!PROBLEM HERE :
raggar(1,1:3)=0
raggar(2,1:4)=1
It give me error :
The assigment operation or the binary expression operation is invalid for the data type of two operands
It's still unclear for me how to manipulate this ragged array, how do I access a specific value... thanks for any help !