!-------------------------------------- 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 v4d_ctcab - Change of variable associated with the canonical * inner product * #include "model_macros_f.h"*
subroutine v4d_ctcab (Ndim,F_py,F_px,F_izs,F_rzs,F_dzs_8) * #include "impnone.cdk"
* integer Ndim real F_px(Ndim), F_py(Ndim) * integer F_izs(1) real F_rzs(1) real*8 F_dzs_8(1) * *author * M.Tanguay * *revision * v2_10 - Tanguay M. - initial MPI version * *object * To compute F_px = L(-1) * F_py with L related to the inner product * <F_px,F_py> = F_px Trans L Trans L F_py * (See MODULOPT documentation about ctcab) * *arguments * Name I/O Description *---------------------------------------------------------------- * Ndim I Dimension * F_py I Control variable 2 * F_px O Control variable 1 * F_izs - M1QN3 parameter (not used) * F_rzs - M1QN3 parameter (not used) * F_dzs_8 - M1QN3 parameter (not used) *---------------------------------------------------------------- * *implicits #include "v4dc.cdk"
* integer jdim * do jdim = 1, Ndim * if(V4dc_scalp(jdim).ne.0.) then F_px(jdim) = F_py(jdim)/sqrt(V4dc_scalp(jdim)) else F_px(jdim) = 0. endif * end do * return end