|
subroutine | copyptr_int1d (aint, name, mem_path, mem_path_copy) |
| Make a copy of a 1-dimensional integer array. More...
|
|
subroutine | copyptr_int2d (aint, name, mem_path, mem_path_copy) |
| Make a copy of a 2-dimensional integer array. More...
|
|
subroutine | copyptr_dbl1d (adbl, name, mem_path, mem_path_copy) |
| Make a copy of a 1-dimensional real array. More...
|
|
subroutine | copyptr_dbl2d (adbl, name, mem_path, mem_path_copy) |
| Make a copy of a 2-dimensional real array. More...
|
|
Definition at line 104 of file MemoryManager.f90.
◆ copyptr_dbl1d()
subroutine memorymanagermodule::mem_copyptr::copyptr_dbl1d |
( |
real(dp), dimension(:), intent(inout), pointer, contiguous |
adbl, |
|
|
character(len=*), intent(in) |
name, |
|
|
character(len=*), intent(in) |
mem_path, |
|
|
character(len=*), intent(in), optional |
mem_path_copy |
|
) |
| |
|
private |
- Parameters
-
[in,out] | adbl | returned copy of 1d real array |
[in] | name | variable name |
[in] | mem_path | path where variable is stored |
[in] | mem_path_copy | optional path where the copy will be stored, if passed then the copy is added to the memory manager |
Definition at line 1818 of file MemoryManager.f90.
1819 real(DP),
dimension(:),
pointer,
contiguous,
intent(inout) :: adbl
1820 character(len=*),
intent(in) :: name
1821 character(len=*),
intent(in) :: mem_path
1822 character(len=*),
intent(in),
optional :: mem_path_copy
1826 type(MemoryType),
pointer :: mt
1827 logical(LGP) :: found
1830 call get_from_memorylist(name, mem_path, mt, found)
1833 if (
present(mem_path_copy))
then
1834 call allocate_dbl1d(adbl,
size(mt%adbl1d), mt%name, mem_path_copy)
1837 allocate (adbl(
size(mt%adbl1d)))
1839 do n = 1,
size(mt%adbl1d)
1840 adbl(n) = mt%adbl1d(n)
◆ copyptr_dbl2d()
subroutine memorymanagermodule::mem_copyptr::copyptr_dbl2d |
( |
real(dp), dimension(:, :), intent(inout), pointer, contiguous |
adbl, |
|
|
character(len=*), intent(in) |
name, |
|
|
character(len=*), intent(in) |
mem_path, |
|
|
character(len=*), intent(in), optional |
mem_path_copy |
|
) |
| |
|
private |
- Parameters
-
[in,out] | adbl | returned copy of 2d real array |
[in] | name | variable name |
[in] | mem_path | path where variable is stored |
[in] | mem_path_copy | optional path where the copy will be stored, if passed then the copy is added to the memory manager |
Definition at line 1849 of file MemoryManager.f90.
1850 real(DP),
dimension(:, :),
pointer,
contiguous,
intent(inout) :: adbl
1851 character(len=*),
intent(in) :: name
1852 character(len=*),
intent(in) :: mem_path
1853 character(len=*),
intent(in),
optional :: mem_path_copy
1857 type(MemoryType),
pointer :: mt
1858 logical(LGP) :: found
1861 integer(I4B) :: ncol
1862 integer(I4B) :: nrow
1864 call get_from_memorylist(name, mem_path, mt, found)
1866 ncol =
size(mt%adbl2d, dim=1)
1867 nrow =
size(mt%adbl2d, dim=2)
1869 if (
present(mem_path_copy))
then
1870 call allocate_dbl2d(adbl, ncol, nrow, mt%name, mem_path_copy)
1873 allocate (adbl(ncol, nrow))
1877 adbl(j, i) = mt%adbl2d(j, i)
◆ copyptr_int1d()
subroutine memorymanagermodule::mem_copyptr::copyptr_int1d |
( |
integer(i4b), dimension(:), intent(inout), pointer, contiguous |
aint, |
|
|
character(len=*), intent(in) |
name, |
|
|
character(len=*), intent(in) |
mem_path, |
|
|
character(len=*), intent(in), optional |
mem_path_copy |
|
) |
| |
|
private |
- Parameters
-
[in,out] | aint | returned copy of 1d integer array |
[in] | name | variable name |
[in] | mem_path | path where variable is stored |
[in] | mem_path_copy | optional path where the copy will be stored, if passed then the copy is added to the memory manager |
Definition at line 1749 of file MemoryManager.f90.
1750 integer(I4B),
dimension(:),
pointer,
contiguous,
intent(inout) :: aint
1751 character(len=*),
intent(in) :: name
1752 character(len=*),
intent(in) :: mem_path
1753 character(len=*),
intent(in),
optional :: mem_path_copy
1757 type(MemoryType),
pointer :: mt
1758 logical(LGP) :: found
1761 call get_from_memorylist(name, mem_path, mt, found)
1764 if (
present(mem_path_copy))
then
1765 call allocate_int1d(aint,
size(mt%aint1d), mt%name, mem_path_copy)
1768 allocate (aint(
size(mt%aint1d)))
1770 do n = 1,
size(mt%aint1d)
1771 aint(n) = mt%aint1d(n)
◆ copyptr_int2d()
subroutine memorymanagermodule::mem_copyptr::copyptr_int2d |
( |
integer(i4b), dimension(:, :), intent(inout), pointer, contiguous |
aint, |
|
|
character(len=*), intent(in) |
name, |
|
|
character(len=*), intent(in) |
mem_path, |
|
|
character(len=*), intent(in), optional |
mem_path_copy |
|
) |
| |
|
private |
- Parameters
-
[in,out] | aint | returned copy of 2d integer array |
[in] | name | variable name |
[in] | mem_path | path where variable is stored |
[in] | mem_path_copy | optional path where the copy will be stored, if passed then the copy is added to the memory manager |
Definition at line 1780 of file MemoryManager.f90.
1781 integer(I4B),
dimension(:, :),
pointer,
contiguous,
intent(inout) :: aint
1782 character(len=*),
intent(in) :: name
1783 character(len=*),
intent(in) :: mem_path
1784 character(len=*),
intent(in),
optional :: mem_path_copy
1788 type(MemoryType),
pointer :: mt
1789 logical(LGP) :: found
1792 integer(I4B) :: ncol
1793 integer(I4B) :: nrow
1795 call get_from_memorylist(name, mem_path, mt, found)
1797 ncol =
size(mt%aint2d, dim=1)
1798 nrow =
size(mt%aint2d, dim=2)
1800 if (
present(mem_path_copy))
then
1801 call allocate_int2d(aint, ncol, nrow, mt%name, mem_path_copy)
1804 allocate (aint(ncol, nrow))
1808 aint(j, i) = mt%aint2d(j, i)
The documentation for this interface was generated from the following file: