SURFEX v8.1
General documentation of Surfex
expand21.F
Go to the documentation of this file.
1 !OPTIONS NODOUBLE
2  SUBROUTINE expand21(KWRDS,PPACKED,POUT,KDUM1,KDUM2)
3 
4 !**** *PACK21 * - Unpack data by a factor 2 to 1
5 
6 ! Purpose.
7 ! --------
8 ! Unpack data by a factor 2 to 1. Packing is done
9 ! in order to save memory.
10 ! Simple version to be used on Fujitsu VPP.
11 
12 !** Interface.
13 ! ----------
14 ! *CALL* *EXPAND21(...)*
15 
16 ! Explicit arguments : KWRDS - number of words to unpack (copy)
17 ! -------------------- PPACKED - buffer containing (packed) data
18 ! POUT - array containing unpacked data
19 ! KDUM1 - not used
20 ! KDUM2 - not used
21 
22 ! Implicit arguments : None
23 ! --------------------
24 
25 ! Method.
26 ! -------
27 ! See documentation
28 
29 ! Externals.
30 ! ----------
31 ! None
32 
33 ! Reference.
34 ! ----------
35 ! ECMWF Research Department documentation of the IFS
36 
37 ! Author.
38 ! -------
39 ! Lars Isaksen *ECMWF*
40 
41 ! Modifications.
42 ! --------------
43 ! Original : 98-01-01
44 ! ------------------------------------------------------------------
45 
46  USE parkind1, ONLY : jpim
47 ! IMPLICIT LOGICAL (L)
48  IMPLICIT NONE
49  INTEGER(KIND=JPIM), INTENT(IN) :: KWRDS
50  INTEGER(KIND=JPIM), INTENT(IN) :: KDUM1
51  INTEGER(KIND=JPIM), INTENT(IN) :: KDUM2
52  REAL (KIND=4) :: PPACKED(kwrds)
53  REAL (KIND=8) :: POUT(kwrds)
54 
55 ! ------------------------------------------------------------------
56 
57  pout(:)=REAL(PPACKED(:),KIND=8)
58 
59  RETURN
60  END SUBROUTINE expand21
integer, parameter jpim
Definition: parkind1.F90:13
subroutine expand21(KWRDS, PPACKED, POUT, KDUM1, KDUM2)
Definition: expand21.F:3