(git:c5411e0)
Loading...
Searching...
No Matches
cp_array_utils::cp_guarantee_size Interface Reference

Public Member Functions

subroutine cp_1d_r_guarantee_size (array, n)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
 
subroutine cp_2d_r_guarantee_size (array, n_rows, n_cols)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
 
subroutine cp_1d_c_guarantee_size (array, n)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
 
subroutine cp_2d_c_guarantee_size (array, n_rows, n_cols)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
 
subroutine cp_1d_i_guarantee_size (array, n)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
 
subroutine cp_2d_i_guarantee_size (array, n_rows, n_cols)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
 
subroutine cp_1d_logical_guarantee_size (array, n)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
 
subroutine cp_2d_logical_guarantee_size (array, n_rows, n_cols)
 If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).
 

Detailed Description

Definition at line 79 of file cp_array_utils.F.

Member Function/Subroutine Documentation

◆ cp_1d_r_guarantee_size()

subroutine cp_array_utils::cp_guarantee_size::cp_1d_r_guarantee_size ( real(kind=dp), dimension(:), pointer  array,
integer, intent(in)  n 
)

If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).

The data is NOT preserved (if you want to preserve the data see the realloc in the module memory_utilities)

Parameters
arraythe array to reallocate if necessary
nthe wanted size
History
12.2001 first version [fawzi] 3.2002 templatized [fawzi]
Author
Fawzi Mohamed
Note
this is a different behaviour than the realloc in the module memory_utilities. It is quite low level

Definition at line 440 of file cp_array_utils.F.

◆ cp_2d_r_guarantee_size()

subroutine cp_array_utils::cp_guarantee_size::cp_2d_r_guarantee_size ( real(kind=dp), dimension(:, :), pointer  array,
integer, intent(in)  n_rows,
integer, intent(in)  n_cols 
)

If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).

The data is NOT preserved (if you want to preserve the data see the realloc in the module memory_utilities)

Parameters
arraythe array to reallocate if necessary
n_rowsthe wanted number of rows
n_colsthe wanted number of cols
History
5.2001 first version [fawzi]
Author
Fawzi Mohamed
Note
this is a different behaviour than the realloc in the module memory_utilities. It is quite low level

Definition at line 473 of file cp_array_utils.F.

◆ cp_1d_c_guarantee_size()

subroutine cp_array_utils::cp_guarantee_size::cp_1d_c_guarantee_size ( complex(kind=dp), dimension(:), pointer  array,
integer, intent(in)  n 
)

If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).

The data is NOT preserved (if you want to preserve the data see the realloc in the module memory_utilities)

Parameters
arraythe array to reallocate if necessary
nthe wanted size
History
12.2001 first version [fawzi] 3.2002 templatized [fawzi]
Author
Fawzi Mohamed
Note
this is a different behaviour than the realloc in the module memory_utilities. It is quite low level

Definition at line 630 of file cp_array_utils.F.

◆ cp_2d_c_guarantee_size()

subroutine cp_array_utils::cp_guarantee_size::cp_2d_c_guarantee_size ( complex(kind=dp), dimension(:, :), pointer  array,
integer, intent(in)  n_rows,
integer, intent(in)  n_cols 
)

If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).

The data is NOT preserved (if you want to preserve the data see the realloc in the module memory_utilities)

Parameters
arraythe array to reallocate if necessary
n_rowsthe wanted number of rows
n_colsthe wanted number of cols
History
5.2001 first version [fawzi]
Author
Fawzi Mohamed
Note
this is a different behaviour than the realloc in the module memory_utilities. It is quite low level

Definition at line 663 of file cp_array_utils.F.

◆ cp_1d_i_guarantee_size()

subroutine cp_array_utils::cp_guarantee_size::cp_1d_i_guarantee_size ( integer(kind=int_4), dimension(:), pointer  array,
integer, intent(in)  n 
)

If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).

The data is NOT preserved (if you want to preserve the data see the realloc in the module memory_utilities)

Parameters
arraythe array to reallocate if necessary
nthe wanted size
History
12.2001 first version [fawzi] 3.2002 templatized [fawzi]
Author
Fawzi Mohamed
Note
this is a different behaviour than the realloc in the module memory_utilities. It is quite low level

Definition at line 821 of file cp_array_utils.F.

◆ cp_2d_i_guarantee_size()

subroutine cp_array_utils::cp_guarantee_size::cp_2d_i_guarantee_size ( integer(kind=int_4), dimension(:, :), pointer  array,
integer, intent(in)  n_rows,
integer, intent(in)  n_cols 
)

If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).

The data is NOT preserved (if you want to preserve the data see the realloc in the module memory_utilities)

Parameters
arraythe array to reallocate if necessary
n_rowsthe wanted number of rows
n_colsthe wanted number of cols
History
5.2001 first version [fawzi]
Author
Fawzi Mohamed
Note
this is a different behaviour than the realloc in the module memory_utilities. It is quite low level

Definition at line 854 of file cp_array_utils.F.

◆ cp_1d_logical_guarantee_size()

subroutine cp_array_utils::cp_guarantee_size::cp_1d_logical_guarantee_size ( logical, dimension(:), pointer  array,
integer, intent(in)  n 
)

If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).

The data is NOT preserved (if you want to preserve the data see the realloc in the module memory_utilities)

Parameters
arraythe array to reallocate if necessary
nthe wanted size
History
12.2001 first version [fawzi] 3.2002 templatized [fawzi]
Author
Fawzi Mohamed
Note
this is a different behaviour than the realloc in the module memory_utilities. It is quite low level

Definition at line 1011 of file cp_array_utils.F.

◆ cp_2d_logical_guarantee_size()

subroutine cp_array_utils::cp_guarantee_size::cp_2d_logical_guarantee_size ( logical, dimension(:, :), pointer  array,
integer, intent(in)  n_rows,
integer, intent(in)  n_cols 
)

If the size of the array is changes reallocate it. Issues a warning when the size changes (but not on allocation and deallocation).

The data is NOT preserved (if you want to preserve the data see the realloc in the module memory_utilities)

Parameters
arraythe array to reallocate if necessary
n_rowsthe wanted number of rows
n_colsthe wanted number of cols
History
5.2001 first version [fawzi]
Author
Fawzi Mohamed
Note
this is a different behaviour than the realloc in the module memory_utilities. It is quite low level

Definition at line 1044 of file cp_array_utils.F.


The documentation for this interface was generated from the following file: