|
PartMC
2.4.0
|
The integer_varray_t structure and assocated subroutines. More...
Data Types | |
| type | integer_varray_t |
| A variable-length 1D array of integers. More... | |
Functions/Subroutines | |
| elemental integer function | integer_varray_n_entry (integer_varray) |
| Return the current number of entries. More... | |
| subroutine | integer_varray_realloc (integer_varray, new_length) |
| Changes the given integer_varray to exactly the given new_length. More... | |
| elemental subroutine | integer_varray_zero (integer_varray) |
| Resets an integer_varray to have zero entries. More... | |
| subroutine | integer_varray_enlarge (integer_varray, n) |
| Enlarges the given array so that it is at least of size n. More... | |
| subroutine | integer_varray_shrink (integer_varray) |
| Possibly shrinks the storage of the given array, ensuring that it can still store the used entries. More... | |
| subroutine | integer_varray_append (integer_varray, val) |
| Adds the given number to the end of the array. More... | |
| subroutine | integer_varray_remove_entry (integer_varray, index) |
| Removes the entry at the given index, repacking values to maintain contiguous data. More... | |
| integer function | pmc_mpi_pack_size_integer_varray (val) |
| Determines the number of bytes required to pack the given value. More... | |
| subroutine | pmc_mpi_pack_integer_varray (buffer, position, val) |
| Packs the given value into the buffer, advancing position. More... | |
| subroutine | pmc_mpi_unpack_integer_varray (buffer, position, val) |
| Unpacks the given value from the buffer, advancing position. More... | |
The integer_varray_t structure and assocated subroutines.
| subroutine pmc_integer_varray::integer_varray_append | ( | type(integer_varray_t), intent(inout) | integer_varray, |
| integer, intent(in) | val | ||
| ) |
Adds the given number to the end of the array.
| [in,out] | integer_varray | Array to add to. |
| [in] | val | Value to add. |
Definition at line 132 of file integer_varray.F90.
| subroutine pmc_integer_varray::integer_varray_enlarge | ( | type(integer_varray_t), intent(inout) | integer_varray, |
| integer, intent(in) | n | ||
| ) |
Enlarges the given array so that it is at least of size n.
| [in,out] | integer_varray | Array to enlarge. |
| [in] | n | Minimum new size of array. |
Definition at line 91 of file integer_varray.F90.
| elemental integer function pmc_integer_varray::integer_varray_n_entry | ( | type(integer_varray_t), intent(in) | integer_varray | ) |
Return the current number of entries.
| [in] | integer_varray | Array. |
Definition at line 31 of file integer_varray.F90.
| subroutine pmc_integer_varray::integer_varray_realloc | ( | type(integer_varray_t), intent(inout) | integer_varray, |
| integer, intent(in) | new_length | ||
| ) |
Changes the given integer_varray to exactly the given new_length.
This function should not be called directly, but rather use integer_varray_enlarge(), integer_varray_shrink().
| [in,out] | integer_varray | Array to reallocate. |
| [in] | new_length | New length of the array. |
Definition at line 50 of file integer_varray.F90.
| subroutine pmc_integer_varray::integer_varray_remove_entry | ( | type(integer_varray_t), intent(inout) | integer_varray, |
| integer, intent(in) | index | ||
| ) |
Removes the entry at the given index, repacking values to maintain contiguous data.
| [in,out] | integer_varray | Array to remove from. |
| [in] | index | Index of entry to remove. |
Definition at line 152 of file integer_varray.F90.
| subroutine pmc_integer_varray::integer_varray_shrink | ( | type(integer_varray_t), intent(inout) | integer_varray | ) |
Possibly shrinks the storage of the given array, ensuring that it can still store the used entries.
| [in,out] | integer_varray | Array to shrink. |
Definition at line 113 of file integer_varray.F90.
| elemental subroutine pmc_integer_varray::integer_varray_zero | ( | type(integer_varray_t), intent(inout) | integer_varray | ) |
Resets an integer_varray to have zero entries.
| [in,out] | integer_varray | Structure to zero. |
Definition at line 76 of file integer_varray.F90.
| subroutine pmc_integer_varray::pmc_mpi_pack_integer_varray | ( | character, dimension(:), intent(inout) | buffer, |
| integer, intent(inout) | position, | ||
| type(integer_varray_t), intent(in) | val | ||
| ) |
Packs the given value into the buffer, advancing position.
| [in,out] | buffer | Memory buffer. |
| [in,out] | position | Current buffer position. |
| [in] | val | Value to pack. |
Definition at line 200 of file integer_varray.F90.
| integer function pmc_integer_varray::pmc_mpi_pack_size_integer_varray | ( | type(integer_varray_t), intent(in) | val | ) |
Determines the number of bytes required to pack the given value.
| [in] | val | Value to pack. |
Definition at line 177 of file integer_varray.F90.
| subroutine pmc_integer_varray::pmc_mpi_unpack_integer_varray | ( | character, dimension(:), intent(inout) | buffer, |
| integer, intent(inout) | position, | ||
| type(integer_varray_t), intent(inout) | val | ||
| ) |
Unpacks the given value from the buffer, advancing position.
| [in,out] | buffer | Memory buffer. |
| [in,out] | position | Current buffer position. |
| [in,out] | val | Value to pack. |
Definition at line 230 of file integer_varray.F90.