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