Index: branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/DYN/dynvor.F90
===================================================================
--- branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/DYN/dynvor.F90	(revision 2618)
+++ branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/DYN/dynvor.F90	(revision 2633)
@@ -204,5 +204,5 @@
       !! References : Sadourny, r., 1975, j. atmos. sciences, 32, 680-689.
       !!----------------------------------------------------------------------
-      USE wrk_nemo, ONLY: wrk_use, wrk_release
+      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released
       USE wrk_nemo, ONLY: zwx => wrk_2d_1, zwy => wrk_2d_2, zwz => wrk_2d_3
       !!
@@ -218,5 +218,5 @@
       !!----------------------------------------------------------------------
 
-      IF(.NOT. wrk_use(2, 1,2,3))THEN
+      IF(wrk_in_use(2, 1,2,3))THEN
          CALL ctl_stop('dyn:vor_ene: requested workspace arrays unavailable.')
          RETURN
@@ -286,5 +286,5 @@
       END DO                                           !   End of slab
       !                                                ! ===============
-      IF(.NOT. wrk_release(2, 1,2,3))THEN
+      IF(wrk_not_released(2, 1,2,3))THEN
          CALL ctl_stop('dyn:vor_ene: failed to release workspace arrays.')
       END IF
@@ -324,5 +324,5 @@
       !! References : Sadourny, r., 1975, j. atmos. sciences, 32, 680-689.
       !!----------------------------------------------------------------------
-      USE wrk_nemo, ONLY: wrk_use, wrk_release
+      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released
       USE wrk_nemo, ONLY: zwx => wrk_2d_4, zwy => wrk_2d_5, &
                           zwz => wrk_2d_6, zww => wrk_2d_7
@@ -335,5 +335,5 @@
       !!----------------------------------------------------------------------
 
-      IF(.NOT. wrk_use(2, 4,5,6,7))THEN
+      IF(wrk_in_use(2, 4,5,6,7))THEN
          CALL ctl_stop('dyn:vor_mix: requested workspace arrays unavailable.')
          RETURN
@@ -410,5 +410,5 @@
       END DO                                           !   End of slab
       !                                                ! ===============
-      IF(.NOT. wrk_release(2, 4,5,6,7))THEN
+      IF(wrk_not_released(2, 4,5,6,7))THEN
          CALL ctl_stop('dyn:vor_mix: failed to release workspace arrays.')
       END IF
@@ -443,5 +443,5 @@
       !! References : Sadourny, r., 1975, j. atmos. sciences, 32, 680-689.
       !!----------------------------------------------------------------------
-      USE wrk_nemo, ONLY: wrk_use, wrk_release
+      USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released
       USE wrk_nemo, ONLY: zwx => wrk_2d_4, zwy => wrk_2d_5, zwz => wrk_2d_6
       !!
@@ -456,5 +456,5 @@
       !!----------------------------------------------------------------------
       
-      IF(.NOT. wrk_use(2, 4,5,6))THEN
+      IF(wrk_in_use(2, 4,5,6))THEN
          CALL ctl_stop('dyn:vor_ens : requested workspace arrays unavailable.')
          RETURN
@@ -532,5 +532,5 @@
       END DO                                           !   End of slab
       !                                                ! ===============
-      IF(.NOT. wrk_release(2, 4,5,6))THEN
+      IF(wrk_not_released(2, 4,5,6))THEN
          CALL ctl_stop('dyn:vor_ens : failed to release workspace arrays.')
       END IF
@@ -558,5 +558,5 @@
       !! References : Arakawa and Lamb 1980, Mon. Wea. Rev., 109, 18-36
       !!----------------------------------------------------------------------
-      USE wrk_nemo, ONLY:   wrk_use, wrk_release
+      USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released
       USE wrk_nemo, ONLY:   zwx  => wrk_2d_1 , zwy  => wrk_2d_2 ,  zwz => wrk_2d_3 
       USE wrk_nemo, ONLY:   ztnw => wrk_2d_4 , ztne => wrk_2d_5 
@@ -580,5 +580,5 @@
       !!----------------------------------------------------------------------
 
-      IF(.NOT. wrk_use(2, 1,2,3,4,5,6,7) .AND. .NOT. wrk_use(3, 1) ) THEN
+      IF(wrk_in_use(2, 1,2,3,4,5,6,7) .OR. wrk_in_use(3, 1) ) THEN
          CALL ctl_stop('dyn:vor_een : requested workspace arrays unavailable.')   ;   RETURN
       END IF
@@ -681,6 +681,6 @@
       END DO                                           !   End of slab
       !                                                ! ===============
-      IF(.NOT. wrk_release(2, 1,2,3,4,5,6,7) .AND.   &
-         .NOT. wrk_release(3, 1)  )   CALL ctl_stop('dyn:vor_een : failed to release workspace arrays')
+      IF(wrk_not_released(2, 1,2,3,4,5,6,7) .OR.   &
+         wrk_not_released(3, 1)  )   CALL ctl_stop('dyn:vor_een : failed to release workspace arrays')
       !
    END SUBROUTINE vor_een
