1 !WRF:MEDIATION_LAYER:INTERPOLATIONFUNCTION
4 SUBROUTINE interp_fcn ( cfld, & ! CD field
5 cids, cide, ckds, ckde, cjds, cjde, &
6 cims, cime, ckms, ckme, cjms, cjme, &
7 cits, cite, ckts, ckte, cjts, cjte, &
9 nids, nide, nkds, nkde, njds, njde, &
10 nims, nime, nkms, nkme, njms, njme, &
11 nits, nite, nkts, nkte, njts, njte, &
12 nri, nrj ) ! nest ratios
16 INTEGER, INTENT(IN) :: cids, cide, ckds, ckde, cjds, cjde, &
17 cims, cime, ckms, ckme, cjms, cjme, &
18 cits, cite, ckts, ckte, cjts, cjte, &
19 nids, nide, nkds, nkde, njds, njde, &
20 nims, nime, nkms, nkme, njms, njme, &
21 nits, nite, nkts, nkte, njts, njte, &
24 REAL, DIMENSION ( cims:cime, ckms:ckme, cjms:cjme ) :: cfld
25 REAL, DIMENSION ( nims:nime, nkms:nkme, njms:njme ) :: nfld
29 INTEGER ci, cj, ck, ni, nj, nk, ip, jp
31 ! Iterate over the ND tile and comtute the values
35 cj = cjts + nj / nrj ! coord of CD point
36 jp = cjts + mod ( nj , nrj ) ! coord of ND w/i CD point
40 ci = cits + ni / nri ! coord of CD point
41 ip = cits + mod ( ni , nri ) ! coord of ND w/i CD point
43 ! This is a trivial implementation of the interp_fcn; just copies
44 ! the values from the CD into the ND
46 nfld( ni, nk, nj ) = cfld( ci , ck , cj )
54 END SUBROUTINE interp_fcn