SURFEX v8.1
General documentation of Surfex
gather.F
Go to the documentation of this file.
1  SUBROUTINE gather(N,A,B,IND)
2 !
3  USE parkind1, ONLY : jpim, jprb
4 !
5  IMPLICIT NONE
6 !
7  INTEGER(KIND=JPIM) :: N
8  INTEGER(KIND=JPIM) :: IND(n)
9  INTEGER(KIND=JPIM) :: I
10  REAL(KIND=JPRB) :: A(n)
11  REAL(KIND=JPRB) :: B(*)
12 !
13 ! GATHER - Gathers a vector from a source vector
14 !
15  DO 100 i=1,n
16  a(i)=b(ind(i))
17  100 CONTINUE
18 !
19  ENDSUBROUTINE gather
integer, parameter jpim
Definition: parkind1.F90:13
integer, parameter jprb
Definition: parkind1.F90:32
subroutine gather(N, A, B, IND)
Definition: gather.F:2