SURFEX v8.1
General documentation of Surfex
Surfex_Git2
src
LIB
XRD44
utilities
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
parkind1::jpim
integer, parameter jpim
Definition:
parkind1.F90:13
pack21
subroutine pack21(KWRDS, PIN, PPACKED, KDUM1, KDUM2)
Definition:
pack21.F:3
parkind1
Definition:
parkind1.F90:1
Generated on Tue Jan 16 2018 16:23:22 for SURFEX v8.1 by
1.8.13