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

Generic routines to reallocate arrays. More...

Data Types

interface  reallocate
 

Functions/Subroutines

subroutine reallocate_integer_array (array, new_value)
 
subroutine reallocate_integer_array_list (array, length, new_values)
 
subroutine reallocate_double_array (array, new_value)
 
subroutine reallocate_double_array_list (array, length, new_values)
 
subroutine reallocate_logical_array (array, new_value)
 
subroutine reallocate_logical_array_list (array, length, new_values)
 

Detailed Description

Generic routines to reallocate arrays.

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)

Function/Subroutine Documentation

◆ reallocate_double_array()

subroutine mod_reallocate::reallocate_double_array ( double precision, dimension(:), intent(inout), allocatable array,
double precision, intent(in), optional new_value )
private

◆ reallocate_double_array_list()

subroutine mod_reallocate::reallocate_double_array_list ( double precision, dimension(:), intent(inout), allocatable array,
integer, intent(in) length,
double precision, dimension(:), intent(in) new_values )
private

◆ reallocate_integer_array()

subroutine mod_reallocate::reallocate_integer_array ( integer, dimension(:), intent(inout), allocatable array,
integer, intent(in), optional new_value )
private

◆ reallocate_integer_array_list()

subroutine mod_reallocate::reallocate_integer_array_list ( integer, dimension(:), intent(inout), allocatable array,
integer, intent(in) length,
integer, dimension(:), intent(in) new_values )
private

◆ reallocate_logical_array()

subroutine mod_reallocate::reallocate_logical_array ( logical, dimension(:), intent(inout), allocatable array,
logical, intent(in), optional new_value )
private

◆ reallocate_logical_array_list()

subroutine mod_reallocate::reallocate_logical_array_list ( logical, dimension(:), intent(inout), allocatable array,
integer, intent(in) length,
logical, dimension(:), intent(in) new_values )
private