Index: branches/2014/dev_r4650_UKMO3_masked_damping/NEMOGCM/TOOLS/DMP_TOOLS/src/zoom.F90
===================================================================
--- branches/2014/dev_r4650_UKMO3_masked_damping/NEMOGCM/TOOLS/DMP_TOOLS/src/zoom.F90	(revision 4738)
+++ branches/2014/dev_r4650_UKMO3_masked_damping/NEMOGCM/TOOLS/DMP_TOOLS/src/zoom.F90	(revision 4739)
@@ -18,10 +18,14 @@
       !! ** Action  : - resto, the damping coeff. for T and S
       !!----------------------------------------------------------------------
-      REAL(8), DIMENSION(jpi,jpj), INTENT(inout)  ::   presto   ! restoring coeff. (s-1)
-      REAL(8), DIMENSION(jpi,jpj), INTENT(in)  ::   mask   ! restoring coeff. (s-1)
+      REAL(wp), DIMENSION(jpi,jpj), INTENT(inout)  ::   presto   ! restoring coeff. (s-1)
+      REAL(wp), DIMENSION(jpi,jpj), INTENT(in)  ::   mask   ! restoring coeff. (s-1)
       !
       INTEGER  ::   ji, jj, jn   ! dummy loop indices
-      REAL(8) ::   zlat, zlat0, zlat1, zlat2, z1_5d   ! local scalar
-      REAL(8), DIMENSION(6)  ::   zfact               ! 1Dworkspace
+      REAL(wp) ::   zlat, zlat0, zlat1, zlat2, z1_5d   ! local scalar
+      REAL(wp), DIMENSION(6)  ::   zfact               ! 1Dworkspace
+
+      !Namelist variables
+      LOGICAL :: lzoom_w, lzoom_e, lzoom_n, lzoom_s 
+      NAMELIST/nam_zoom_dmp/lzoom_n,lzoom_e,lzoom_w,lzoom_s
       !!----------------------------------------------------------------------
       !
@@ -29,14 +33,18 @@
       !
       
+      ! Read namelist
+      OPEN( UNIT=numnam, FILE='namelist', FORM='FORMATTED', STATUS='OLD' )
+      READ( numnam, nam_dmp_create )
+      CLOSE( numnam )
 
-      zfact(1) =  1.
-      zfact(2) =  1.
-      zfact(3) = 11. / 12.
-      zfact(4) =  8. / 12.
-      zfact(5) =  4. / 12.
-      zfact(6) =  1. / 12.
-      zfact(:) = zfact(:) / ( 5. * rday )    ! 5 days max restoring time scale
+      zfact(1) =  1._wp
+      zfact(2) =  1._wp
+      zfact(3) = 11._wp / 12._wp
+      zfact(4) =  8._wp / 12._wp
+      zfact(5) =  4._wp / 12._wp
+      zfact(6) =  1._wp / 12._wp
+      zfact(:) = zfact(:) / ( 5._wp * rday )    ! 5 days max restoring time scale
 
-      presto(:,:) = 0.
+      presto(:,:) = 0._wp
 
       ! damping along the forced closed boundary over 6 grid-points
@@ -51,15 +59,15 @@
       IF( cp_cfz == "arctic" .OR. cp_cfz == "antarctic" ) THEN   !  ORCA configuration : arctic or antarctic zoom
          !                                        ! ====================================================
-         IF(lwp) WRITE(numout,*)
-         IF(lwp .AND. cp_cfz == "arctic" ) WRITE(numout,*) '              dtacof_zoom : ORCA    Arctic zoom'
-         IF(lwp .AND. cp_cfz == "antarctic" ) WRITE(numout,*) '           dtacof_zoom : ORCA Antarctic zoom'
-         IF(lwp) WRITE(numout,*)
+         WRITE(numout,*)
+         IF(cp_cfz == "arctic" ) WRITE(numout,*) '              dtacof_zoom : ORCA    Arctic zoom'
+         IF(cp_cfz == "antarctic" ) WRITE(numout,*) '           dtacof_zoom : ORCA Antarctic zoom'
+         WRITE(numout,*)
          !
          !                          ! Initialization : 
-         presto(:,:) = 0.
-         zlat0 = 10.                     ! zlat0 : latitude strip where resto decreases
-         zlat1 = 30.                     ! zlat1 : resto = 1 before zlat1
+         presto(:,:) = 0._wp
+         zlat0 = 10._wp                     ! zlat0 : latitude strip where resto decreases
+         zlat1 = 30._wp                     ! zlat1 : resto = 1 before zlat1
          zlat2 = zlat1 + zlat0              ! zlat2 : resto decreases from 1 to 0 between zlat1 and zlat2
-         z1_5d = 1. / ( 5. * rday )   ! z1_5d : 1 / 5days
+         z1_5d = 1._wp / ( 5._wp * rday )   ! z1_5d : 1 / 5days
 
          DO jj = 1, jpj
@@ -67,5 +75,5 @@
                zlat = ABS( gphit(ji,jj) )
                IF( zlat1 <= zlat .AND. zlat <= zlat2 ) THEN
-                  presto(ji,jj) = 0.5 * z1_5d * (  1. - COS( rpi*(zlat2-zlat)/zlat0 )  ) 
+                  presto(ji,jj) = 0.5_wp * z1_5d * (  1._wp - COS( rpi*(zlat2-zlat)/zlat0 )  ) 
                ELSEIF( zlat < zlat1 ) THEN
                   presto(ji,jj) = z1_5d
