!-------------------------------------- LICENCE BEGIN ------------------------------------
!Environment Canada - Atmospheric Science and Technology License/Disclaimer,
! version 3; Last Modified: May 7, 2008.
!This is free but copyrighted software; you can use/redistribute/modify it under the terms
!of the Environment Canada - Atmospheric Science and Technology License/Disclaimer
!version 3 or (at your option) any later version that should be found at:
!http://collaboration.cmc.ec.gc.ca/science/rpn.comm/license.html
!
!This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
!without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
!See the above mentioned License/Disclaimer for more details.
!You should have received a copy of the License/Disclaimer along with this software;
!if not, you can write to: EC-RPN COMM Group, 2121 TransCanada, suite 500, Dorval (Quebec),
!CANADA, H9P 1J3; or send e-mail to service.rpn@ec.gc.ca
!-------------------------------------- LICENCE END --------------------------------------
!
subroutine innerfld(pvar2,pvar1,kni1,knj1,kni2,knj2) 11,1
#if defined (DOC)
*
***s/r innerfld: Extract the field from LAM4D analysis to GEM inner computational domain
* i.e. exclude Machenhauer's extension.
*
*Author: Z. Liu - ARMA/MSC - Nov 2005.
*Revision:
!
*Arguments
*
#endif
IMPLICIT NONE
#include "taglam4d.cdk"
#include "comlun.cdk"
!
integer kni1,knj1,kni2,knj2
real*8 pvar1(kni1,knj1),pvar2(kni2,knj2)
!
integer ji,jj
if(kni1.lt.kni2.or.knj1.lt.knj2)then
call abort3d
(nulout,'INNERFLD: Dimension problem')
else
do jj=1,knj2
do ji=1,kni2
pvar2(ji,jj)=pvar1(ji,jj)
enddo
enddo
endif
!
return
end