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 3184 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/NST_SRC/agrif_top_update.F90 – NEMO

Ignore:
Timestamp:
2011-11-25T16:42:54+01:00 (12 years ago)
Author:
cetlod
Message:

New dynamic allocation in NST modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/NST_SRC/agrif_top_update.F90

    r2715 r3184  
    99   USE agrif_oce 
    1010   USE trc 
     11   USE wrk_nemo_2 
    1112 
    1213   IMPLICIT NONE 
     
    2930      !!   *** ROUTINE Agrif_Update_Trc *** 
    3031      !!--------------------------------------------- 
    31       USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 
    32       USE wrk_nemo, ONLY: wrk_4d_1 
    3332      !! 
    3433      INTEGER, INTENT(in) :: kt 
     
    3938 
    4039#if defined TWO_WAY 
    41       IF( wrk_in_use(4, 1) ) THEN 
    42          CALL ctl_stop('Agrif_Update_trc : requested workspace arrays unavailable') 
    43          RETURN 
    44       ENDIF 
    45       ztra =>  wrk_4d_1(:,:,:,jptra) 
     40      CALL wrk_alloc( jpi, jpj, jpk, jpts, ztra ) 
    4641 
    4742      Agrif_UseSpecialValueInUpdate = .TRUE. 
     
    5752      nbcline_trc = nbcline_trc + 1 
    5853 
    59       IF( wrk_not_released(4, 1) ) THEN 
    60          CALL ctl_stop('Agrif_Update_trc : failed to release workspace arrays.') 
    61          RETURN 
    62       ENDIF 
     54      CALL wrk_dealloc( jpi, jpj, jpk, jpts, ztra ) 
    6355#endif 
    6456 
Note: See TracChangeset for help on using the changeset viewer.