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 9125 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/C14/trcwri_c14.F90 – NEMO

Ignore:
Timestamp:
2017-12-19T09:47:17+01:00 (7 years ago)
Author:
timgraham
Message:

Removed wrk_arrays from whole code. No change in SETTE results from this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/C14/trcwri_c14.F90

    r7068 r9125  
    3636      INTEGER              :: ji,jj,jk,jn   ! dummy loop indexes 
    3737      REAL(wp)             :: zage,zarea,ztemp   ! temporary 
    38       REAL(wp), POINTER, DIMENSION(:,:)   :: zres, z2d ! temporary storage 2D 
    39       REAL(wp), POINTER, DIMENSION(:,:,:) :: z3d , zz3d ! temporary storage 3D 
     38      REAL(wp), ALLOCATABLE, DIMENSION(:,:)   :: zres, z2d ! temporary storage 2D 
     39      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) :: z3d , zz3d ! temporary storage 3D 
    4040      !!--------------------------------------------------------------------- 
    4141  
     
    5050      IF( iom_use("DeltaC14") .OR. iom_use("C14Age") .OR. iom_use("RAge")   ) THEN 
    5151         ! 
    52          CALL wrk_alloc( jpi, jpj     , z2d, zres ) 
    53          CALL wrk_alloc( jpi, jpj, jpk, z3d, zz3d ) 
     52         ALLOCATE( z2d(jpi,jpj), zres(jpi,jpj) ) 
     53         ALLOCATE( z3d(jpi,jpj,jpk), zz3d(jpi,jpj,jpk) ) 
    5454         ! 
    5555         zage = -1._wp / rlam14 / rsiyea  ! factor for radioages in year 
     
    8787         CALL iom_put( "RAge" , zage * z2d(:,:) )                     ! Reservoir age [yr] 
    8888         ! 
    89          CALL wrk_dealloc( jpi, jpj     , z2d, zres ) 
    90          CALL wrk_dealloc( jpi, jpj, jpk, z3d, zz3d ) 
     89         DEALLOCATE( z2d, zres, z3d, zz3d ) 
    9190         ! 
    9291      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.