New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2715 for trunk/NEMOGCM/NEMO/OPA_SRC/DYN/dynldf.F90 – NEMO

Ignore:
Timestamp:
2011-03-30T17:58:35+02:00 (13 years ago)
Author:
rblod
Message:

First attempt to put dynamic allocation on the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/DYN/dynldf.F90

    r2528 r2715  
    4141   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    4242   !! $Id$ 
    43    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    44    !!---------------------------------------------------------------------- 
    45  
     43   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     44   !!---------------------------------------------------------------------- 
    4645CONTAINS 
    4746 
     
    5251      !! ** Purpose :   compute the lateral ocean dynamics physics. 
    5352      !!---------------------------------------------------------------------- 
     53      USE wrk_nemo, ONLY:   wrk_in_use, wrk_not_released 
     54      USE wrk_nemo, ONLY:   ztrdu => wrk_3d_1 , ztrdv => wrk_3d_2 
     55      ! 
    5456      INTEGER, INTENT(in) ::   kt   ! ocean time-step index 
    55       !! 
    56       REAL(wp), DIMENSION(jpi,jpj,jpk) ::   ztrdu, ztrdv   ! 3D workspace 
    57       !!---------------------------------------------------------------------- 
    58  
     57      !!---------------------------------------------------------------------- 
     58 
     59      IF( wrk_in_use(3, 1,2) ) THEN 
     60         CALL ctl_stop('dyn_ldf: requested workspace arrays unavailable')   ;   RETURN 
     61      ENDIF 
     62      ! 
    5963      IF( l_trddyn )   THEN                      ! temporary save of ta and sa trends 
    6064         ztrdu(:,:,:) = ua(:,:,:)  
     
    106110         &                       tab3d_2=va, clinfo2=       ' Va: ', mask2=vmask, clinfo3='dyn' ) 
    107111      ! 
     112      IF( wrk_not_released(3, 1,2) )   CALL ctl_stop('dyn_ldf: failed to release workspace arrays') 
     113      ! 
    108114   END SUBROUTINE dyn_ldf 
    109115 
Note: See TracChangeset for help on using the changeset viewer.