version 0.6.0
Loading...
Searching...
No Matches
mod_reallocate Module Reference

Generic routines to reallocate arrays. More...

Detailed Description

Example:

integer, dimension(:), allocatable :: array
allocate(array(2))
array = [0,1]
! Append an integer to the array
call reallocate(array)
array(3) = 2
! Or, in short format:
call reallocate(array, 2)