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 12759 for NEMO/branches/2019/dev_r11708_aumont_PISCES_QUOTA/src/TOP/PISCES/P4Z/p4zsms.F90 – NEMO

Ignore:
Timestamp:
2020-04-17T00:17:29+02:00 (4 years ago)
Author:
aumont
Message:

make parameterizations in PISCES-operationnal more similar to thos of PISCES-QUOTA (prey switching, optimal allocation, size, ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11708_aumont_PISCES_QUOTA/src/TOP/PISCES/P4Z/p4zsms.F90

    r12537 r12759  
    320320         ENDIF 
    321321         ! 
     322         ! PISCES size proxy 
     323         IF( iom_varid( numrtr, 'sized', ldstop = .FALSE. ) > 0 ) THEN 
     324            CALL iom_get( numrtr, jpdom_autoglo, 'sized' , sized(:,:,:)  ) 
     325         ELSE 
     326            sized(:,:,:) = 1. 
     327         ENDIF 
     328         IF( iom_varid( numrtr, 'sizen', ldstop = .FALSE. ) > 0 ) THEN 
     329            CALL iom_get( numrtr, jpdom_autoglo, 'sizen' , sizen(:,:,:)  ) 
     330         ELSE 
     331            sizen(:,:,:) = 1. 
     332         ENDIF 
     333 
    322334         ! PISCES-QUOTA specific part 
    323335         IF( ln_p5z ) THEN 
    324336            ! Read the size of the different phytoplankton groups 
    325337            ! If not in the restart file, they are set to 1 
    326             IF( iom_varid( numrtr, 'sized', ldstop = .FALSE. ) > 0 ) THEN 
     338            IF( iom_varid( numrtr, 'sizep', ldstop = .FALSE. ) > 0 ) THEN 
    327339               CALL iom_get( numrtr, jpdom_autoglo, 'sizep' , sizep(:,:,:)  ) 
    328                CALL iom_get( numrtr, jpdom_autoglo, 'sizen' , sizen(:,:,:)  ) 
    329                CALL iom_get( numrtr, jpdom_autoglo, 'sized' , sized(:,:,:)  ) 
    330340            ELSE 
    331341               sizep(:,:,:) = 1. 
    332                sizen(:,:,:) = 1. 
    333                sized(:,:,:) = 1. 
    334342            ENDIF 
    335343        ENDIF 
     
    346354         CALL iom_rstput( kt, nitrst, numrtw, 'Silicamax', xksimax(:,:) ) ! Si max concentration 
    347355         CALL iom_rstput( kt, nitrst, numrtw, 'tcflxcum', t_oce_co2_flx_cum ) ! Cumulative CO2 flux 
     356         CALL iom_rstput( kt, nitrst, numrtw, 'sizen', sizen(:,:,:) )  ! Size of nanophytoplankton 
     357         CALL iom_rstput( kt, nitrst, numrtw, 'sized', sized(:,:,:) )  ! Size of diatoms 
    348358         IF( ln_p5z ) THEN 
    349359            CALL iom_rstput( kt, nitrst, numrtw, 'sizep', sizep(:,:,:) )  ! Size of picophytoplankton 
    350             CALL iom_rstput( kt, nitrst, numrtw, 'sizen', sizen(:,:,:) )  ! Size of nanophytoplankton 
    351             CALL iom_rstput( kt, nitrst, numrtw, 'sized', sized(:,:,:) )  ! Size of diatoms 
    352360         ENDIF 
    353361      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.