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 1457 for trunk/NEMO/TOP_SRC/PISCES/p4zlys.F90 – NEMO

Ignore:
Timestamp:
2009-05-23T10:16:38+02:00 (15 years ago)
Author:
cetlod
Message:

distribution of iom_put in TOP routines, see ticket:437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/PISCES/p4zlys.F90

    r1329 r1457  
    2222   USE sms_pisces 
    2323   USE prtctl_trc 
     24   USE iom 
    2425 
    2526   IMPLICIT NONE 
     
    6162      REAL(wp) ::   zomegaca, zexcess, zexcess0 
    6263      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zco3 
     64#if defined key_trc_dia3d && defined key_iomput 
     65      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zw3d 
     66#endif 
    6367      CHARACTER (len=25) :: charout 
    6468      !!--------------------------------------------------------------------- 
     
    151155 
    152156# if defined key_trc_diaadd &&  defined key_trc_dia3d 
    153       DO jk = 1, jpk 
    154          DO jj = 1, jpj 
    155             DO ji = 1, jpi 
    156                trc3d(ji,jj,jk,jp_pcs0_3d    ) = hi  (ji,jj,jk)          * tmask(ji,jj,jk) 
    157                trc3d(ji,jj,jk,jp_pcs0_3d + 1) = zco3(ji,jj,jk)          * tmask(ji,jj,jk) 
    158                trc3d(ji,jj,jk,jp_pcs0_3d + 2) = aksp(ji,jj,jk) / calcon * tmask(ji,jj,jk) 
    159             ENDDO 
    160          ENDDO 
    161       ENDDO 
     157#  if ! defined key_iomput 
     158      trc3d(:,:,:,jp_pcs0_3d    ) = hi  (:,:,:)          * tmask(:,:,:) 
     159      trc3d(:,:,:,jp_pcs0_3d + 1) = zco3(:,:,:)          * tmask(:,:,:) 
     160      trc3d(:,:,:,jp_pcs0_3d + 2) = aksp(:,:,:) / calcon * tmask(:,:,:) 
     161#  else 
     162      zw3d(:,:,:) = hi  (:,:,:)          * tmask(:,:,:) 
     163      CALL iom_put( "PH", zw3d ) 
     164      zw3d(:,:,:) = zco3(:,:,:)          * tmask(:,:,:) 
     165      CALL iom_put( "CO3", zw3d ) 
     166      zw3d(:,:,:) = aksp(:,:,:) / calcon * tmask(:,:,:) 
     167      CALL iom_put( "CO3sat", zw3d ) 
     168#  endif 
    162169# endif 
    163170      ! 
Note: See TracChangeset for help on using the changeset viewer.