!-------------------------------------- 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 mvprod (n,a_not_use,v,av,izs,rzs,dzs_8),1
*
#if defined (DOC)
*
***s/r MVPROD * - Evaluate Av = GRAD(v) + b for N1CG1
*     --------
*
*Author: M. Tanguay *ARMN/MSC Jan. 2005
*Revision: S. Pellerin, Jan. 2009
*           . Call to new simulator (simvar)
*Arguments:
*     -----------------------------
*     o: av        (Result Av)
*     i: v         (Vector)
*     i: n         (Dimension of v)
*     -----------------------------
*     i: a_not_use (Not used)
*     i: izs       (Not used)
*     i: rzs       (Not used)
*     i: dzs_8     (Not used)
*     -----------------------------
*
#endif
*
      implicit none
*
*arguments
*
      integer n
      real*8 v(n),av(n),a_not_use
      integer izs(1)
      real rzs(1)
      real*8 dzs_8(1)
*
#include "comdim.cdk"
#include "comcva.cdk"
*
*modules
*
      integer indic
*
      real*8 zjsp
*
*        Call 3D-Var simulator with gradient
*        -----------------------------------
         indic =2
         call simvar(indic,n,v,zjsp,av)
*
*        Evaluate Av = GRAD(v) + b
*        -------------------------
         av = av + vazb
*
*     ---------------------------------------------------------------
*
      return
      end