ROMS
Loading...
Searching...
No Matches
nrutil::array_copy Interface Reference

Public Member Functions

subroutine array_copy_r (src, dest, n_copied, n_not_copied)
 
subroutine array_copy_d (src, dest, n_copied, n_not_copied)
 
subroutine array_copy_i (src, dest, n_copied, n_not_copied)
 

Detailed Description

Definition at line 29 of file nrutil.F.

Member Function/Subroutine Documentation

◆ array_copy_d()

subroutine nrutil::array_copy::array_copy_d ( real(dp), dimension(:), intent(in) src,
real(dp), dimension(:), intent(out) dest,
integer(i8b), intent(out) n_copied,
integer(i8b), intent(out) n_not_copied )

Definition at line 96 of file nrutil.F.

97!
98!=======================================================================
99! !
100! Copy double precision array where size of source not known in !
101! advance. !
102! !
103!=======================================================================
104!
105! Imported variable declarations.
106!
107 real(dp), intent(in) :: src(:)
108 real(dp), intent(out) :: dest(:)
109
110 integer(i8b), intent(out) :: n_copied, n_not_copied
111!
112!-----------------------------------------------------------------------
113! Copy double precision array.
114!-----------------------------------------------------------------------
115!
116 n_copied=min(SIZE(src), SIZE(dest))
117 n_not_copied=size(src)-n_copied
118 dest(1:n_copied)=src(1:n_copied)
119
120 RETURN

◆ array_copy_i()

subroutine nrutil::array_copy::array_copy_i ( integer(i8b), dimension(:), intent(in) src,
integer(i8b), dimension(:), intent(out) dest,
integer(i8b), intent(out) n_copied,
integer(i8b), intent(out) n_not_copied )

Definition at line 123 of file nrutil.F.

124!
125!=======================================================================
126! !
127! Copy integer array where size of source not known in advance. !
128! !
129!=======================================================================
130!
131! Imported variable declarations.
132!
133 integer(i8b), intent(in) :: src(:)
134 integer(i8b), intent(out) :: dest(:)
135
136 integer(i8b), intent(out) :: n_copied, n_not_copied
137!
138!-----------------------------------------------------------------------
139! Copy integer array.
140!-----------------------------------------------------------------------
141!
142 n_copied=min(size(src),size(dest))
143 n_not_copied=size(src)-n_copied
144 dest(1:n_copied)=src(1:n_copied)
145
146 RETURN

◆ array_copy_r()

subroutine nrutil::array_copy::array_copy_r ( real(r4), dimension(:), intent(in) src,
real(r4), dimension(:), intent(out) dest,
integer(i8b), intent(out) n_copied,
integer(i8b), intent(out) n_not_copied )

Definition at line 69 of file nrutil.F.

70!
71!=======================================================================
72! !
73! Copy single precision array where size of source not known in !
74! advance. !
75! !
76!=======================================================================
77!
78! Imported variable declarations.
79!
80 real(r4), intent(in) :: src(:)
81 real(r4), intent(out) :: dest(:)
82
83 integer(i8b), intent(out) :: n_copied, n_not_copied
84!
85!-----------------------------------------------------------------------
86! Copy single precision array.
87!-----------------------------------------------------------------------
88!
89 n_copied=min(SIZE(src), SIZE(dest))
90 n_not_copied=SIZE(src)-n_copied
91 dest(1:n_copied)=src(1:n_copied)
92
93 RETURN

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