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 3231 for branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90 – NEMO

Ignore:
Timestamp:
2011-12-21T10:11:11+01:00 (12 years ago)
Author:
smasson
Message:

dev_NEMO_MERGE_2011: supress TARGET attribute for tsa and use work arrays

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90

    r3186 r3231  
    7777      !! Reference  : Leclair, M., and G. Madec, 2009, Ocean Modelling. 
    7878      !!---------------------------------------------------------------------- 
    79       USE oce     , ONLY: tsa             ! tsa used as 2 3D workspace 
    80       !! 
    8179      INTEGER, INTENT(in) ::   kt   ! time step 
    8280      ! 
     
    232230      IF( lk_diaar5 ) THEN                            ! vertical mass transport & its square value 
    233231         ! Caution: in the VVL case, it only correponds to the baroclinic mass transport. 
    234          z3d => tsa(:,:,:,1) 
     232         CALL wrk_alloc( jpi,jpj,jpk, z3d ) 
    235233         z2d(:,:) = rau0 * e1t(:,:) * e2t(:,:) 
    236234         DO jk = 1, jpk 
     
    239237         CALL iom_put( "w_masstr" , z3d                     )   
    240238         CALL iom_put( "w_masstr2", z3d(:,:,:) * z3d(:,:,:) ) 
     239         CALL wrk_dealloc( jpi,jpj,jpk, z3d ) 
    241240      ENDIF 
    242241      ! 
Note: See TracChangeset for help on using the changeset viewer.