!-------------------------------------- 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 -------------------------------------- ***s/r pospers_ad - ADJ of pospers_tl * #include "model_macros_f.h"*
subroutine pospers_ad 1 * #include "impnone.cdk"
* *author * M.Tanguay * *revision * v2_10 - Tanguay M. - initial MPI version * v2_31 - Tanguay M. - adapt ADJ for new advection code * *object * see id section * *arguments * none * *implicits #include "glb_ld.cdk"
#include "geomg.cdk"
#include "vth.cdk"
* *modules integer vmmlod,vmmget,vmmuld external vmmlod,vmmget,vmmuld * integer pnerr, pnlkey1(6),i, j, k, ijk, nij, pnlod ** nij = l_ni * l_nj * pnlkey1(1) = VMM_KEY(xth) pnlkey1(2) = VMM_KEY(yth) pnlkey1(3) = VMM_KEY(zth) pnlkey1(4) = VMM_KEY(xcth) pnlkey1(5) = VMM_KEY(ycth) pnlkey1(6) = VMM_KEY(zcth) pnlod = 6 * pnerr = vmmlod(pnlkey1,pnlod) pnerr = VMM_GET_VAR(xth) pnerr = VMM_GET_VAR(yth) pnerr = VMM_GET_VAR(zth) pnerr = VMM_GET_VAR(xcth) pnerr = VMM_GET_VAR(ycth) pnerr = VMM_GET_VAR(zcth) * do k = 1, l_nk do j = 1, l_nj do i = 1, l_ni * ijk=(k-1)*nij+(j-1)*l_ni+i * * ADJ * --- xth(ijk) = 0. yth(ijk) = 0. zth(ijk) = 0. * zcth(ijk) = 0. xcth(ijk) = 0. ycth(ijk) = 0. * end do end do end do * pnerr = vmmuld(-1,0) * * --------------------------------------------------------------- * return end