!-------------------------------------- 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 sulapxy 1 ! !s/r sulapxy: Prepare arrays for computing Laplacian and inverse Laplacian for Euclidean case. ! ! AUTHOR: Luc Fillion - ARMA/EC - 15 Jun 2009. ! ! Revision: ! ! IN/OUT: ! IN: ! IMPLICIT NONE ! #include "taglam4d.cdk"
#include "comdim.cdk"
#include "comcst.cdk"
#include "comfftla.cdk"
#include "comlun.cdk"
#include "comsp.cdk"
#include "comgrd_param.cdk"
#include "comgemla.cdk"
#include "comlap.cdk"
! ! integer jla real*8 zcon,zfac,zdlon,zdx2,zp,zq,za,zb ! !! zdlon=rdlon_an(1,1) zdx2=(ra*zdlon)**2 zfac = 2./zdx2 rlapxy(:) = 0. rilapxy(:) = 0. ! do jla = 1,nla za = 2.*rpi*mwvnbx(jla) zp = cos(za/ni) zb = 2.*rpi*mwvnby(jla) zq = cos(zb/nj) zcon = zfac*(zp+zq-2.) rlapxy(jla) = zcon if(zcon.ne.0.) then rilapxy(jla) = 1./zcon endif enddo ! return end