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 10288 for NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/TOP/PISCES/SED/sedsfc.F90 – NEMO

Ignore:
Timestamp:
2018-11-07T18:25:49+01:00 (5 years ago)
Author:
francesca
Message:

reduce global communications, see #2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/TOP/PISCES/SED/sedsfc.F90

    r5215 r10288  
    44   !!    Sediment : Data at sediment surface 
    55   !!===================================================================== 
    6 #if defined key_sed && ! defined key_sed_off 
    76   !! * Modules used 
    87   USE sed     ! sediment global variable 
     
    3231 
    3332      !------------------------------------------------------------------------ 
     33      ! reading variables 
    3434 
    35       IF( kt == nitsed000 ) THEN 
    36          WRITE(numsed,*) ' sed_sfc : Give data from sediment model to tracer model  ' 
    37          WRITE(numsed,*) ' ' 
    38       ENDIF 
    39  
    40       ! reading variables 
     35      IF( ln_timing )  CALL timing_start('sed_sfc') 
    4136 
    4237      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,1), iarroce(1:jpoce), pwcp(1:jpoce,1,jwalk) ) 
     
    4641      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,5), iarroce(1:jpoce), pwcp(1:jpoce,1,jwoxy) ) 
    4742      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,6), iarroce(1:jpoce), pwcp(1:jpoce,1,jwsil) ) 
     43      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,7), iarroce(1:jpoce), pwcp(1:jpoce,1,jwnh4) ) 
     44      CALL unpack_arr ( jpoce, trc_data(1:jpi,1:jpj,8), iarroce(1:jpoce), pwcp(1:jpoce,1,jwfe2) ) 
    4845 
    4946 
     
    5249            ikt = mbkt(ji,jj) 
    5350            IF ( tmask(ji,jj,ikt) == 1 ) THEN 
    54                trn(ji,jj,ikt,jptal) = trc_data(ji,jj,1) 
    55                trn(ji,jj,ikt,jpdic) = trc_data(ji,jj,2) 
    56                trn(ji,jj,ikt,jpno3) = trc_data(ji,jj,3) * 7.6 
    57                trn(ji,jj,ikt,jppo4) = trc_data(ji,jj,4) * 122. 
    58                trn(ji,jj,ikt,jpoxy) = trc_data(ji,jj,5) 
    59                trn(ji,jj,ikt,jpsil) = trc_data(ji,jj,6) 
     51               trb(ji,jj,ikt,jptal) = trc_data(ji,jj,1) 
     52               trb(ji,jj,ikt,jpdic) = trc_data(ji,jj,2) 
     53               trb(ji,jj,ikt,jpno3) = trc_data(ji,jj,3) * 7.625 
     54               trb(ji,jj,ikt,jppo4) = trc_data(ji,jj,4) * 122. 
     55               trb(ji,jj,ikt,jpoxy) = trc_data(ji,jj,5) 
     56               trb(ji,jj,ikt,jpsil) = trc_data(ji,jj,6) 
     57               trb(ji,jj,ikt,jpnh4) = trc_data(ji,jj,7) * 7.625 
     58               trb(ji,jj,ikt,jpfer) = trc_data(ji,jj,8) 
    6059            ENDIF 
    6160         ENDDO 
    6261      ENDDO 
    6362 
     63      IF( ln_timing )  CALL timing_stop('sed_sfc') 
     64 
    6465   END SUBROUTINE sed_sfc 
    6566 
    66 #else 
    67    !!====================================================================== 
    68    !! MODULE sedsfc  :   Dummy module  
    69    !!====================================================================== 
    70    !! $Id$ 
    71 CONTAINS 
    72    SUBROUTINE sed_sfc ( kt ) 
    73       INTEGER, INTENT(in) :: kt 
    74       WRITE(*,*) 'sed_sfc: You should not have seen this print! error?', kt 
    75    END SUBROUTINE sed_sfc 
    76 #endif 
    77  
    7867END MODULE sedsfc 
Note: See TracChangeset for help on using the changeset viewer.