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 8062 for branches/UKMO/dev_r5518_medusa_chg_trc_bio_medusa/NEMOGCM/NEMO/TOP_SRC/MEDUSA/phytoplankton.F90 – NEMO

Ignore:
Timestamp:
2017-05-24T10:03:18+02:00 (7 years ago)
Author:
marc
Message:

Fixes to do with tmask(ji,jj,1) and mbathy(ji,jj) outside DO loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_medusa_chg_trc_bio_medusa/NEMOGCM/NEMO/TOP_SRC/MEDUSA/phytoplankton.F90

    r8039 r8062  
    121121      DO jj = 2,jpjm1 
    122122         DO ji = 2,jpim1 
    123             if (tmask(ji,jj,1) == 1) then 
     123            if (tmask(ji,jj,jk) == 1) then 
    124124               !!---------------------------------------------------------- 
    125125               !! Phytoplankton light limitation 
     
    197197      DO jj = 2,jpjm1 
    198198         DO ji = 2,jpim1 
    199             if (tmask(ji,jj,1) == 1) then 
     199            if (tmask(ji,jj,jk) == 1) then 
    200200               !!---------------------------------------------------------- 
    201201               !! Phytoplankton nutrient limitation 
     
    233233      DO jj = 2,jpjm1 
    234234         DO ji = 2,jpim1 
    235             if (tmask(ji,jj,1) == 1) then 
     235            if (tmask(ji,jj,jk) == 1) then 
    236236               !!---------------------------------------------------------- 
    237237               !! Primary production (non-diatoms) 
     
    254254      DO jj = 2,jpjm1 
    255255         DO ji = 2,jpim1 
    256             if (tmask(ji,jj,1) == 1) then 
     256            if (tmask(ji,jj,jk) == 1) then 
    257257               !!---------------------------------------------------------- 
    258258               !! Primary production (diatoms) 
     
    348348      DO jj = 2,jpjm1 
    349349         DO ji = 2,jpim1 
    350             if (tmask(ji,jj,1) == 1) then 
     350            if (tmask(ji,jj,jk) == 1) then 
    351351               !!---------------------------------------------------------- 
    352352               !! Mixed layer primary production 
     
    379379      DO jj = 2,jpjm1 
    380380         DO ji = 2,jpim1 
    381             if (tmask(ji,jj,1) == 1) then 
     381            if (tmask(ji,jj,jk) == 1) then 
    382382               !!---------------------------------------------------------- 
    383383               !! Vertical Integral -- 
     
    407407      DO jj = 2,jpjm1 
    408408         DO ji = 2,jpim1 
    409             if (tmask(ji,jj,1) == 1) then 
     409            if (tmask(ji,jj,jk) == 1) then 
    410410               !!---------------------------------------------------------- 
    411411               !! More chlorophyll calculations 
Note: See TracChangeset for help on using the changeset viewer.