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 6945 for trunk/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsbc.F90 – NEMO

Ignore:
Timestamp:
2016-09-23T12:31:28+02:00 (8 years ago)
Author:
cetlod
Message:

trunk: bugfixes on PISCES carbon chemistry, see ticket #1774

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zsbc.F90

    r6140 r6945  
    155155      IF( ln_ndepo ) THEN 
    156156         IF( kt == nit000 .OR. ( kt /= nit000 .AND. ntimes_ndep > 1 ) ) THEN 
    157             CALL fld_read( kt, 1, sf_ndepo ) 
    158             DO jj = 1, jpj 
    159                DO ji = 1, jpi 
    160                   nitdep(ji,jj) = sf_ndepo(1)%fnow(ji,jj,1) / rno3 / ( 14E6 * ryyss * e3t_n(ji,jj,1) + rtrn ) 
    161                END DO 
    162             END DO 
     157             zcoef = rno3 * 14E6 * ryyss 
     158             CALL fld_read( kt, 1, sf_ndepo ) 
     159             nitdep(:,:) = sf_ndepo(1)%fnow(:,:,1) / zcoef / e3t_n(:,:,1)  
     160         ENDIF 
     161         IF( lk_vvl ) THEN 
     162           zcoef = rno3 * 14E6 * ryyss 
     163           nitdep(:,:) = sf_ndepo(1)%fnow(:,:,1) / zcoef / e3t_n(:,:,1)  
    163164         ENDIF 
    164165      ENDIF 
     
    461462         ironsed(:,:,jpk) = 0._wp 
    462463         DO jk = 1, jpkm1 
    463             ironsed(:,:,jk) = sedfeinput * zcmask(:,:,jk) / ( e3t_n(:,:,jk) * rday ) 
     464            ironsed(:,:,jk) = sedfeinput * zcmask(:,:,jk) / ( e3t_0(:,:,jk) * rday ) 
    464465         END DO 
    465466         DEALLOCATE( zcmask) 
     
    479480         CALL iom_close( numhydro ) 
    480481         ! 
    481          hydrofe(:,:,:) = ( hydrofe(:,:,:) * hratio ) / ( cvol(:,:,:) * ryyss + rtrn ) / 1000._wp 
     482         DO jk = 1, jpk 
     483            hydrofe(:,:,jk) = ( hydrofe(:,:,jk) * hratio ) / ( e1e2t(:,:) * e3t_0(:,:,jk) * ryyss + rtrn ) / 1000._wp 
     484         ENDDO 
    482485         ! 
    483486      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.