Index: trunk/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90
===================================================================
--- trunk/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90	(revision 7698)
+++ trunk/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90	(revision 7753)
@@ -47,5 +47,5 @@
    !!----------------------------------------------------------------------
    !! NEMO/OPA 3.2 , LODYC-IPSL  (2009)
-   !! $Id$
+   !! $Id$ 
    !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
    !!----------------------------------------------------------------------
@@ -137,14 +137,5 @@
       ! ----------------------------
       !
-!$OMP PARALLEL
-!$OMP DO schedule(static) private(jk, jj, ji)
-      DO jk = 1, jpk
-         DO jj = 1, jpj
-            DO ji = 1, jpi
-               tmask(ji,jj,jk) = 0._wp
-            END DO
-         END DO
-      END DO
-!$OMP DO schedule(static) private(jj, ji, iktop, ikbot)
+      tmask(:,:,:) = 0._wp
       DO jj = 1, jpj
          DO ji = 1, jpi
@@ -156,5 +147,4 @@
          END DO  
       END DO  
-!$OMP END PARALLEL
 !SF  add here lbc_lnk: bug not still understood : cause now domain configuration is read !
 !!gm I don't understand why...  
@@ -171,5 +161,4 @@
       ! ------------------------
       IF ( ln_bdy .AND. ln_mask_file ) THEN
-!$OMP PARALLEL DO schedule(static) private(jk, jj, ji)
          DO jk = 1, jpkm1
             DO jj = 1, jpj
@@ -184,5 +173,4 @@
       ! ----------------------------------------
       ! NB: at this point, fmask is designed for free slip lateral boundary condition
-!$OMP PARALLEL DO schedule(static) private(jk, jj, ji)
       DO jk = 1, jpk
          DO jj = 1, jpjm1
@@ -204,24 +192,12 @@
       ! Ocean/land mask at wu-, wv- and w points    (computed from tmask)
       !-----------------------------------------
-!$OMP PARALLEL
-!$OMP DO schedule(static) private(jj, ji)
-      DO jj = 1, jpj
-         DO ji = 1, jpi
-            wmask (ji,jj,1) = tmask(ji,jj,1)     ! surface
-            wumask(ji,jj,1) = umask(ji,jj,1)
-            wvmask(ji,jj,1) = vmask(ji,jj,1)
-         END DO
+      wmask (:,:,1) = tmask(:,:,1)     ! surface
+      wumask(:,:,1) = umask(:,:,1)
+      wvmask(:,:,1) = vmask(:,:,1)
+      DO jk = 2, jpk                   ! interior values
+         wmask (:,:,jk) = tmask(:,:,jk) * tmask(:,:,jk-1)
+         wumask(:,:,jk) = umask(:,:,jk) * umask(:,:,jk-1)   
+         wvmask(:,:,jk) = vmask(:,:,jk) * vmask(:,:,jk-1)
       END DO
-!$OMP DO schedule(static) private(jk,jj,ji)
-      DO jk = 2, jpk                   ! interior values
-         DO jj = 1, jpj
-            DO ji = 1, jpi
-               wmask (ji,jj,jk) = tmask(ji,jj,jk) * tmask(ji,jj,jk-1)
-               wumask(ji,jj,jk) = umask(ji,jj,jk) * umask(ji,jj,jk-1)   
-               wvmask(ji,jj,jk) = vmask(ji,jj,jk) * vmask(ji,jj,jk-1)
-            END DO
-         END DO
-      END DO
-!$OMP END PARALLEL
 
 
@@ -240,10 +216,5 @@
       !
       !                          ! halo mask : 0 on the halo and 1 elsewhere
-!$OMP PARALLEL DO schedule(static) private(jj, ji)
-      DO jj = 1, jpj
-         DO ji = 1, jpi
-            tmask_h(ji,jj) = 1._wp                  
-         END DO
-      END DO
+      tmask_h(:,:) = 1._wp                  
       tmask_h( 1 :iif,   :   ) = 0._wp      ! first columns
       tmask_h(iil:jpi,   :   ) = 0._wp      ! last  columns (including mpp extra columns)
@@ -270,10 +241,5 @@
       !
       !                          ! interior mask : 2D ocean mask x halo mask 
-!$OMP PARALLEL DO schedule(static) private(jj, ji)
-      DO jj = 1, jpj
-         DO ji = 1, jpi
-            tmask_i(ji,jj) = ssmask(ji,jj) * tmask_h(ji,jj)
-         END DO
-      END DO
+      tmask_i(:,:) = ssmask(:,:) * tmask_h(:,:)
 
 
@@ -284,13 +250,6 @@
          CALL wrk_alloc( jpi,jpj,   zwf )
          !
-!$OMP PARALLEL
          DO jk = 1, jpk
-!$OMP DO schedule(static) private(jj, ji)
-            DO jj = 1, jpj
-               DO ji = 1, jpi
-                  zwf(ji,jj) = fmask(ji,jj,jk)         
-               END DO
-            END DO
-!$OMP DO schedule(static) private(jj, ji)
+            zwf(:,:) = fmask(:,:,jk)         
             DO jj = 2, jpjm1
                DO ji = fs_2, fs_jpim1   ! vector opt.
@@ -301,5 +260,4 @@
                END DO
             END DO
-!$OMP DO schedule(static) private(jj)
             DO jj = 2, jpjm1
                IF( fmask(1,jj,jk) == 0._wp ) THEN
@@ -310,5 +268,4 @@
                ENDIF
             END DO         
-!$OMP DO schedule(static) private(ji)
             DO ji = 2, jpim1
                IF( fmask(ji,1,jk) == 0._wp ) THEN
@@ -320,5 +277,4 @@
             END DO
          END DO
-!$OMP END PARALLEL
          !
          CALL wrk_dealloc( jpi,jpj,   zwf )
